Setting up Concrete5 with Nginx (PATH_INFO / ORIG_PATH_INFO issues)

When setting up Concrete5, it throws this error and this error only: "concrete5 cannot parse the PATH_INFO or ORIG_PATH_INFO information provided by your server."

After many hours of googling I'd found that a majority of users managed to solve this issue by adding this line of code to index.php:

Which accomplishes the same end results as doing this line of code within Nginx's config:
fastcgi_param PATH_INFO $request_uri;

Neither of these work for me.

In addition, I've added this line to PHP's .ini:
cgi.fix_pathinfo = 1

That didn't work either.

After failing all of those things, I moved on to http rewriting, "Perhaps I'm giving it the wrong URL format" I think to myself. So I added this to my Nginx config:
location /testbed/concrete5/ {
    try_files $uri $uri/ /testbed/concrete5/index.php?$args;

Sadly, that did not work either.

When I print out PATH_INFO by editing the index.php to echo it before dispatcher.php is included, it returns /testbed/concrete5/, so what's the problem?

At this point I have no clue what could be wrong. What kind of URL format is Concrete5 expecting? Is there something wrong with my installation, or is this a bug? How can I fix this? Is NATO a conspiracy?

View Replies: View Best Answer
Erratus replied on at Permalink Best Answer Reply
Erm, it seems to have resolved itself. Nevermind!
JoostRijneveld replied on at Permalink Reply
It would be great if you could share how you resolved this. ;)
sudarshan replied on at Permalink Reply
If you're trying to get C5 to work on your local system using LAMP/ MAMP middleware installation, assigning write permissions to 'User' or 'MAMP' or 'LAMP' will resolve this issue. Be sure to revert to 'Read Only' once you deploy the site to your remote server to ensure you're not vulnerable to the network though.
vipkilla replied on at Permalink Reply