nginx php No input file specified 怎样处理?
2017-06-12 13:44
661 查看
配置nginx支持php 出现了No input file specified ?
仅仅要改动下安装文件夹下的 nginx.conf下的
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
改动成
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/$fastcgi_script_name; #安装的绝对路径
include fastcgi_params;
}
重新启动nginx
/usr/local/nginx/sbin/nginx -s reload
成功执行php脚本
仅仅要改动下安装文件夹下的 nginx.conf下的
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
改动成
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/$fastcgi_script_name; #安装的绝对路径
include fastcgi_params;
}
重新启动nginx
/usr/local/nginx/sbin/nginx -s reload
成功执行php脚本
相关文章推荐
- Nginx执行php显示no input file specified的处理方法
- Nginx执行php,显示“No input file specified. ”的处理方法
- nginx php No input file specified 如何处理?
- Nginx执行php,显示“No input file specified. ”的处理方法
- Nginx执行php,显示“No input file specified. ”的处理方法
- Nginx执行php,显示“No input file specified. ”的处理方法
- 配置Nginx支持php,出现No input file specified错误的解决方法
- 访问不存在的php文件时为啥nginx会报“No input file specified.”这句话
- nginx 服务器经常出现No input file specified.但是重启php后正常
- nginx运行php"No input file specified"错误的解决方法
- NGINX PHP "No input file specified"
- 解决nginx服务器访问不存在的php页面显示No input file specified.问题
- windows nginx+php 显示no input file specified的解决方法
- Centos 6.5 Nginx,php 提示 No input file specified
- 解决NGINX PHP "No input file specified"
- 解决NGINX PHP "No input file specified"
- Nginx执行php,No input file specified的解决方法
- NGINX PHP FastCGI “No input file specified”错误
- nginx 跑php时找不到文件报no input file specified.
- Windows下 NGINX PHP 以及 "No input file specified"