搭建nginx+php环境时遇到”file not found"的问题
来源:互联网 发布:dijkstra算法图解 编辑:程序博客网 时间:2024/05/19 23:59
不熟悉linux和后端的我,折腾了一天,终于找到问题原因和解决办法了!
问题原因:
fastcgi_param SCRIPT_FILENAME scripts$fastcgi_script_name;
解决办法:改成
fastcgi_param SCRIPT_FILENAME /Users/linchen/Sites$fastcgi_script_name;
其中,/Users/linchen/Sites 是网站的根目录
最终内容如下:
location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /Users/linchen/Sites$fastcgi_script_name; include fastcgi_params; fastcgi_intercept_errors on;}
0 0
- 搭建nginx+php环境时遇到”file not found"的问题
- nginx php file not found
- nginx php file not found 错误
- nginx php-fpm file not found错误
- nginx php-fpm file not found错误
- hadoop环境搭建遇到的问题:-bash: jps: command not found
- 硬盘安装ubuntu遇到的问题:File not found
- 集成环信时遇到的问题file not found: libEaseMobClientSDK.a
- 配置php/nginx环境遇到的问题
- file not found. nginx php nginx 如何开启解析 PHP 的功能
- nginx File not found.
- nginx File not found!
- nginx File not found
- PHP环境搭建中遇到的问题
- 开机时遇到Error 15 file not found的解决方法
- 搭建nginx+php-fpm+php服务遇到的问题
- nginx对PHP文件报File not found.错
- nginx+php-fpm出现file not found错误
- php数组排序函数大全
- Tomcat的安装和使用
- WifiP2pService的启动以及P2P的连接 -转载
- Android 监听Home
- ArcGIS教程:在 ArcMap 中查找最佳路径
- 搭建nginx+php环境时遇到”file not found"的问题
- hdu 5150 Sum Sum Sum
- [程序员面试题精选100 题]17.把字符串转换成整数
- lsof的注意事项
- IntelliJ IDEA如何修改版权信息
- 利用fiddler给android模拟器抓包
- MAC下bash配置文件的加载顺序
- IntelliJ IDEA如何修改文件头的注释
- ArcGIS教程:路径分析(一)