No input file specified

配置网站myid.cookie.com后打开出现 No input file specified

nginx报错:

2018/11/17 16:37:47 [error] 9899#0: *27 FastCGI sent in stderr: "Unable to open primary script: /web/cookie.com/myid.cookie.com/htdocs/index.php (Operation not permitted)" while reading response header from upstream, client: 175.100.206.221, server: myid.cookie.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "myid.cookie.com"

 

解决方案:

修改php.ini文件内容

vim /srv/php-5.5.17/etc/php.ini

找到

open_basedir = /www/:/tmp/:/var/tmp/:/srv/php-5.5.17/lib/php/:/srv/php-5.5.17/bin/

修改为↓↓↓↓↓↓↓↓↓↓↓↓,即添加/web/

open_basedir = /www/:/tmp/:/var/tmp/:/srv/php-5.5.17/lib/php/:/srv/php-5.5.17/bin/:/web/
 

修改保存,重启php即可。

你可能感兴趣的:(PHP)