重装了之后今天想起把nginx+fastcgi php装上,遇到了一些小问题.记录如下,以后遇到问题了也会不定时更新. No input file specified 看了看error log是说: Unknown: open_basedir restriction in effect. File(/usr/share/nginx/html/index.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/) in Unknown on line 0 修改了一下nginx的root dir或者把现有的路径写进php.ini就可以了.