Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM No input file specified.

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by FAPM, Jan 18, 2016.

  1. FAPM

    FAPM Member

    58
    4
    8
    Jul 16, 2015
    Ratings:
    +6
    Local Time:
    2:05 PM
    1.9.2
    10.0.20
    Hi ALL :),
    I tried to install an application like this:

    cd /usr/var/xxx
    chown -R nginx:nginx /usr/share/xxx
    ln -s /usr/share/xx /home/nginx/domains/a.aa.com/public/xx

    Result : No input file specified.


    =>
    #fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root/:/usr/local/lib/php/:/tmp/; ?
    Or
    fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root/:/usr/local/lib/php/:/tmp/:/usr/share/xx; ?

    Thank :)
     
  2. FAPM

    FAPM Member

    58
    4
    8
    Jul 16, 2015
    Ratings:
    +6
    Local Time:
    2:05 PM
    1.9.2
    10.0.20
    fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root/:/usr/local/lib/php/:/tmp/:/usr/share/xx; => OK ;)
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:05 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes that's the one :)

    see FAQ item 26 on how to set it on a per vhost basis