复制代码 代码如下: log_errors = On error_log = log/php_error_log error_reporting=E_ALL&~E_NOTICE error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT 3.重启php-fpm systemctl restart php-fpm 这时,就可以访问php了
针对你提出的“windows nginx php an error occurred”问题,以下是一些详细的步骤和建议,帮助你诊断和解决这个问题: 询问具体的错误信息: 首先,请提供具体的错误信息或错误代码。这将有助于更准确地定位问题。 检查Nginx和PHP服务状态: 确保Nginx和PHP服务都在Windows上正常运行。你可以通过任务管理器或命令行工具来检...
一般情况下的错误,都是fpm或者程序本身暴露出来,一般Nginx出现这样的情况,说明Nginx的请求没有得到正常的反馈,很有可能是请求超时,或者内存不够而溢出。可以通过如下方式尝试解决,在请求的PHP方法开头加入以下代码。 代码如下: @set_time_limit(0);//设置时间不超时@ini_set('memory_limit','1024M');//设置方法...
解决了 重新启动php-cgi才会生成新的php.ini php-cgi.exe -b 127.0.0.1:9000 -c php.ini 0 回复 keryz #1 解决就好,可以看到nginx+php是通过 fastcgi协议来交互的,默认的端口是 9000。 回复 2020-04-18 10:09:57 keryz #2 建议使用主流的 linux 系统来玩 回复 2020-04-18 10:16:53 提问...
静态页面还正常,就ssh上,检查php-fpm进程是正常的,没有僵局。算了,杀死,连nginx一起杀死,虽然这是很不优雅的行为,所不齿的行为。然而结果是没用。随手查了下df -h ,分区满了,怪不得,查了下,删除几个备份文件,然后一切恢复正常了。空间不够,还是个问题,要进一步清理了。希望我的回答...
当前页面不存在,请核对好在试。大概就是这个意思!!错误
It re-directed me to index.php, so that part works, but index.php then threw up the default “an error occurred.” page that comes with nginx. I checked the nginx error log at /var/log/nginx/error.log, but there was no entry for that error. As far as I can tell, I edited ...
An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource then you should check the error log for details. Faithfully yours, nginx. 解决: 1.找到php-fpm配置文件 php-fpm -t 2.修改配置文件 ...
An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource then you should check theerror log for details. Faithfully yours, nginx. 如上,刚老徐正打算上简书平台,写文章,出现如上错误,应该持续了几...
就是FastCGI Process Manager,是一种可选的PHP FastGCI执行模式,有一点很有特点的应用,尤其是一个繁忙的网站中: (1)可适应的进行再生(NEW!) (2)基本的统计功能(Apache's mod_status) (3)高级进程管理功能,能够优雅的停止/开始 (4)能够使用不同的工作用户和不同的php.ini (5)输入,输出日志记录... 开启...