Concrete5 + nginx 1.1.5

Permalink
Hi how i can install concrete5 with nginx i have already setup it with php5-fpm i keep getting Support for C5 Request URLs
concrete5 cannot parse the PATH_INFO or ORIG_PATH_INFO information provided by your server.

here is my conf for my concrete5 site.

thanks in advance

1 Attachment

 
mkly replied on at Permalink Reply
mkly
Not an expert but maybe you need to look at fastcgi.conf instead?
alexistkd replied on at Permalink Reply
u know what i have to change?
thanks
hwatkins replied on at Permalink Reply
http://wiki.nginx.org/HttpFcgiModule#fastcgi_split_path_info


Make sure the location block for your server looks something like this:
location ~ ^.+\.php {
(...)
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
(...)
}
Mofforg replied on at Permalink Reply
I have the same problem.

My settings:

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_cache_min_uses 3;
fastcgi_cache_valid 200 301 302 304 5m;
fastcgi_cache_key "$request_method|$host|$request_uri";
fastcgi_hide_header "Set-Cookie";
fastcgi_ignore_headers "Cache-Control" "Expires";

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
mulp replied on at Permalink Reply
found solution here

http://www.justasysadmin.net/en/practical/configuration-concrete-5-...

please change/add

location ~\.php($|/) {
set $script $uri;
set $path_info "";
if ($uri ~ "^(.+\.php)(/.+)") {
set $script $1;
set $path_info $2;
}
...


and that should work :-)
nXqd replied on at Permalink Reply
More comprehensive post :
http://kbeezie.com/view/php-self-path-nginx/...

Tested by me !
vipkilla replied on at Permalink Reply
http://www.concrete5.org/documentation/how-tos/developers/nginx-with-fastcgi_cache-php5-fpm/
theget replied on at Permalink Reply
theget
yep, this tuto works for me with nginx php-fcgi and froxlor :D