You are running nginx, but your current configuration prevents a successful installation. Please fix the PATH_INFO support for PHP

  • I keep seeing this error:


    "You are running nginx, but your current configuration prevents a successful installation. Please fix the PATH_INFO support for PHP, guides can be found here"


    I really wish you had given something more than a Google search, because all Google keeps telling me repeatedly is that "nginx consider PATH_INFO depreciated and that the application should do it's magic based upon the request url instead".

  • PATH_INFO


    Maybe, this helps. Btw... I havent found any informations, that PATH_INFO is deprecated.


    This is why you may want something more than a Google search (Google tailors the search results based upon previous searches).


    I believe I already have that


    Edited 2 times, last by Aslan ().

  • For fun let me share my whole configuration (because why not)


    nginx.conf


    Which also calls upon /etc/nginx/conf.d/*.conf
    Now I have several domains listed in there and I'll use sociallyuncensored.eu.conf as an example


    You'll notice this also calls up both
    /etc/nginx/php.confand/etc/nginx/staticfiles.conf


    php.conf


    staticfiles.conf

    Edited once, last by Aslan ().

  • Here's mine



    And here's the PATH_INFO and fastcgi stuff:


    PHP
    location ~ \.php(/.*)?$ {
        fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_pass "unix:/var/run/php-fpm.sock";
        include /etc/nginx/fastcgi.conf;
    }
  • Still no joy...


    /etc/php5/fpm/php-fpm.conf



    /etc/php5/fpm/php.ini


    Message is too long, must be below 10,000 characters. ---- --- See attached

    • Official Post

    Hi,


    in case you still run into troubles here is mine:


    Code
    [root@~]nginx -v
    nginx version: nginx/1.6.0




  • Use the configuration posted there: wbb ngnix path info and set cgi.fix_pathinfo=1. Profit.


    Your configuration that you recommended is invalid


    Code
    nginx: [emerg] invalid number of arguments in "location" directive in /etc/nginx/php.conf:1
    nginx: configuration file /etc/nginx/nginx.conf test failed


    I'll try @TimWolla config later tonight. But thank you anyways for your willing to help @Alexander Ebert I do very much appreciate it. :)

  • What version of nginx are you using? Did you copy the code 1:1?


    YES, I copied and pasted the code directly.


    I've not yet used TimWolla configuration yet. As I said, I'll try that tonight. It's only Alexander Ebert configuration that didn't work.


    I am using the only nginx version that matters
    nginx -vnginx version: nginx/1.7.4

  • 1.7.4 is mainline and not stable. However... You may try not to select and copy the post itself. Use the "Copy content" button at the top of the code box instead. Maybe, you copied an invisible character or something. If that still fails, you should consider switching to nginx stable ;)

  • 1.7.4 is mainline and not stable. However... You may try not to select and copy the post itself. Use the "Copy content" button at the top of the code box instead. Maybe, you copied an invisible character or something. If that still fails, you should consider switching to nginx stable ;)


    1.7.4 is the current version ;)


    I like current, but as noted I believe PHP_INFO is being phased out (at least that is what I keep reading). Which is why I requested this Suggest you Remove PATH_INFO dependency

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!