我的服务器上安装了Wordpress,我使用的是Virtualmin版本PHP7(主版本)和PHP56(辅助版)。我面临的问题是xmlrpc.php:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: https://example.com/xmlrpc.php?for=jetpack&token=sometokenhere
End of script output before headers: xmlrpc.php, referer: https://example.com/xmlrpc.php?for=jetpack&token=sometokenhere
自从我升级到PHP版本7以来,这种情况一直在发生。如果我切换回5.6,对xmlrpc的调用就可以了。
当我使用非sudo用户运行httpd -V
时,出现以下错误:
SuexecUserGroup configured, but suEXEC is disabled: Invalid owner or file mode for /usr/sbin/suexec
...而且由于权限不正确而发生这种情况,这是510.我已将suexec
的权限更改为4755
,现在它看起来像-rwsr-xr-x 1 root apache 15352 Jul 19 2016 /usr/sbin/suexec
,错误是走了。
在此更改之后,如果我使用非sudo用户运行httpd -V
,则会收到新错误:
AH00112: Warning: DocumentRoot [/home/mydomain_com/public_html] does not exist
AH00526: Syntax error on line 378 of /etc/httpd/conf/httpd.conf:
Wrapper /home/mydomain_com/fcgi-bin/php5.6.fcgi cannot be accessed: (13)Permission denied
/home/mydomain_com/public_html
存在FCGIWrapper /home/mydomain_com/fcgi-bin/php7.1.fcgi .php
-rwxr-xr-x 1 mydomain_com mydomain_com 241 May 3 09:29 /home/butcaru_com/fcgi-bin/php5.6.fcgi
当我与未与域关联的用户运行httpd -V
时,会发生此错误。如果我使用mydomain_com
用户登录并运行httpd -V
,则错误不再是mydomain.com
,而是关于另一个托管域(没有任何Wordpress安装)物)。
因此,这不是与特定域/ CMS相关的事情。我认为这是PHP7的错误配置。
您对此有何看法?