英文:
Error 500 after php upgrade to 7.2(WordPress/Virtualmin)
问题
我让我的主机升级 PHP 版本到 7.2 后,我的 WordPress 页面出现了错误 500(内部服务器错误)消息。
我使用的是 Virtualmin。
在打开错误日志时,我看到以下内容:
[Mon Jan 06 16:04:41 2020] [error] (13)Permission denied: exec of '/etc/httpd/bin/suexec' failed
[Mon Jan 06 16:04:41 2020] [error] Premature end of script headers: php7.2.cgi
我在其他地方搜索了解决方案,但没有找到任何解决方案。
我该如何解决这个问题?
英文:
I let my host upgrade php version to 7.2 and after that I am getting error 500 message(Internal Server Error) on my wordpress page.
I am using Virtualmin.
When opening error log I get the following:
[Mon Jan 06 16:04:41 2020] [error] (13)Permission denied: exec of '/etc/httpd/bin/suexec' failed
[Mon Jan 06 16:04:41 2020] [error] Premature end of script headers: php7.2.cgi
I searched for the solution elsewhere but didn't find any solution.
How can I solve this?
答案1
得分: 1
你可以前往 >>> virtualmin >>> 服务器配置 >>> 网站选项
然后进行更改为
FCGI、fpm 或者你的系统可用的选项。
英文:
You can go to >>> virtualmin >>> serve configuration >> website options
And make the change to
FCGI, fpm or what your system is available
答案2
得分: 1
无法找到确切的解决方案,但网络主机告诉我,由于此服务器某种方式被恶意软件访问,必须关闭整个事物并将域名移到新地址。
将域名移到新服务器解决了这个问题。
英文:
I can't figure out the exact solution, but the web host told me that because this server had somehow been accessed by malware, this whole thing had to be closed down and the domain moved to a new address.
Moving domain to a new server solved this problem.
答案3
得分: 0
这可能需要咨询您的托管提供商,他们可能已更改了PHP处理程序(例如从suPHP到FastCGI)。
英文:
This would be something to ask your Hosting Provider, Potentially they have changed the PHP Handler (Eg from suPHP to FastCGI)
答案4
得分: 0
你已经升级了PHP,但是你的Virtualmin没有正确配置以使用它。
在Virtualmin中,转到系统设置 -> 重新检查配置,Virtualmin将检测到新的PHP版本并配置它以在你的服务器上使用。
英文:
you have upgraded PHP, but your Virtualmin is not configured to use it correctly.
On Virtualmin go to system settings -> Re-check configuration, Virtualmin will detect new PHP version and configure it to use on your server.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论