Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php AH01797:客户端被服务器配置拒绝Apache Web服务器中的Wordpress插件JS文件_Php_Wordpress_Apache_Suexec - Fatal编程技术网

Php AH01797:客户端被服务器配置拒绝Apache Web服务器中的Wordpress插件JS文件

Php AH01797:客户端被服务器配置拒绝Apache Web服务器中的Wordpress插件JS文件,php,wordpress,apache,suexec,Php,Wordpress,Apache,Suexec,我在尝试向Wordpress网站添加帖子时遇到问题。此站点使用fastcgi在一个子域(如email.medialab.ufg.br)中进行原理图工作。这些问题似乎与从Wordpress插件访问.js和.css文件有关。以下是报告的错误: [Fri Jun 08 13:45:44.000087 2018] [access_compat:error] [pid 32401] [client 200.137.195.149:63863] AH01797: client denied by serve

我在尝试向Wordpress网站添加帖子时遇到问题。此站点使用fastcgi在一个子域(如email.medialab.ufg.br)中进行原理图工作。这些问题似乎与从Wordpress插件访问.js和.css文件有关。以下是报告的错误:

[Fri Jun 08 13:45:44.000087 2018] [access_compat:error] [pid 32401] [client 200.137.195.149:63863] AH01797: client denied by server configuration: /home/l3p/apache_sites/email.medialab.ufg.br/web/wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.min.js, referer: https://email.medialab.ufg.br/wp-admin/post-new.php?gutenberg-demo
站点的.htaccess文件具有以下配置: **


重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
并且virtualhost文件具有以下配置:

<VirtualHost *:80>

                                DocumentRoot /home/l3p/apache_sites/email.medialab.ufg.br/web

    ServerName email.medialab.ufg.br
    ServerAlias www.email.medialab.ufg.br
    ServerAdmin webmaster@email.medialab.ufg.br

    ErrorLog /var/log/ispconfig/httpd/email.medialab.ufg.br/error.log

    Alias /error/ "/home/l3p/apache_sites/email.medialab.ufg.br/web/error/"
    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 502 /error/502.html
    ErrorDocument 503 /error/503.html


    <Directory /home/l3p/apache_sites/email.medialab.ufg.br/web>
            # Clear PHP settings of this website
            <FilesMatch ".+\.ph(p[345]?|t|tml)$">
                    SetHandler None
            </FilesMatch>
            Options +FollowSymLinks  +Indexes +Multiviews
            AllowOverride All
                            Require all granted
                    </Directory>







    <Directory /home/l3p/apache_sites/clients/client1/web73/web>
            # Clear PHP settings of this website
            <FilesMatch ".+\.ph(p[345]?|t|tml)$">
                    SetHandler None
            </FilesMatch>
            Options +FollowSymLinks
            AllowOverride All
                            Require all granted
                    </Directory>




    # suexec enabled
    <IfModule mod_suexec.c>
        SuexecUserGroup web73 client1
    </IfModule>
    # php as fast-cgi enabled
# For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
    <IfModule mod_fcgid.c>
            FcgidIdleTimeout 300
            FcgidProcessLifeTime 3600
            # FcgidMaxProcesses 1000
            FcgidMaxRequestsPerProcess 5000
            FcgidMinProcessesPerClass 0
            FcgidMaxProcessesPerClass 10
            FcgidConnectTimeout 3
            FcgidIOTimeout 600
            FcgidBusyTimeout 3600
            FcgidMaxRequestLen 1073741824
    </IfModule>
    <Directory /home/l3p/apache_sites/email.medialab.ufg.br/web>
            <FilesMatch "\.php[345]?$">
                SetHandler fcgid-script
            </FilesMatch>
            FCGIWrapper /var/www/php-fcgi-scripts/web73/.php-fcgi-starter .php
            FCGIWrapper /var/www/php-fcgi-scripts/web73/.php-fcgi-starter .php3
            FCGIWrapper /var/www/php-fcgi-scripts/web73/.php-fcgi-starter .php4
            FCGIWrapper /var/www/php-fcgi-scripts/web73/.php-fcgi-starter .php5
            Options +ExecCGI
            AllowOverride All
                            Require all granted
                    </Directory>
    <Directory /home/l3p/apache_sites/clients/client1/web73/web>
            <FilesMatch "\.php[345]?$">
                SetHandler fcgid-script
            </FilesMatch>
            FCGIWrapper /var/www/php-fcgi-scripts/web73/.php-fcgi-starter .php
            FCGIWrapper /var/www/php-fcgi-scripts/web73/.php-fcgi-starter .php3
            FCGIWrapper /var/www/php-fcgi-scripts/web73/.php-fcgi-starter .php4
            FCGIWrapper /var/www/php-fcgi-scripts/web73/.php-fcgi-starter .php5
            Options +ExecCGI
            AllowOverride All
                            Require all granted
                    </Directory>




    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
        AssignUserId web73 client1
    </IfModule>

    <IfModule mod_dav_fs.c>
    # Do not execute PHP files in webdav directory
        <Directory /home/l3p/apache_sites/clients/client1/web73/webdav>
            <ifModule mod_security2.c>
                SecRuleRemoveById 960015
                SecRuleRemoveById 960032
            </ifModule>
            <FilesMatch "\.ph(p3?|tml)$">
                SetHandler None
            </FilesMatch>
        </Directory>
        DavLockDB /home/l3p/apache_sites/clients/client1/web73/tmp/DavLock
        # DO NOT REMOVE THE COMMENTS!
        # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
  # WEBDAV BEGIN
        # WEBDAV END
    </IfModule>

DocumentRoot/home/l3p/apache_sites/email.medialab.ufg.br/web
ServerName email.medialab.ufg.br
ServerAlias www.email.medialab.ufg.br
服务器管理员webmaster@email.medialab.ufg.br
ErrorLog/var/log/ispconfig/httpd/email.medialab.ufg.br/error.log
别名/error/“/home/l3p/apache_sites/email.medialab.ufg.br/web/error/”
ErrorDocument 400/error/400.html
ErrorDocument 401/error/401.html
ErrorDocument 403/error/403.html
ErrorDocument 404/error/404.html
ErrorDocument 405/error/405.html
ErrorDocument 500/error/500.html
ErrorDocument 502/error/502.html
ErrorDocument 503/error/503.html
#清除此网站的PHP设置
SetHandler无
选项+FollowSymLinks+索引+多视图
允许超越所有
要求所有授权
#清除此网站的PHP设置
SetHandler无
选项+FollowSymLinks
允许超越所有
要求所有授权
#suexec已启用
SuexecUserGroup web73客户端1
#启用快速cgi的php
#有关配置选项,请参阅:http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
FcgidIdleTimeout 300
FcgidProcessLifeTime 3600
#fcgidmax1000
FcgidMaxRequestsPerProcess 5000
FCGidMinProcessPerClass 0
FCGidMaxProcessPerClass 10
FcgidConnectTimeout 3
FcgidIOTimeout 600
FcgidBusyTimeout 3600
FcgidMaxRequestLen 1073741824
SetHandler fcgid脚本
FCGIWrapper/var/www/php-fcgi-scripts/web73/.php-fcgi-starter.php
FCGIWrapper/var/www/php-fcgi-scripts/web73/.php-fcgi-starter.php3
FCGIWrapper/var/www/php-fcgi-scripts/web73/.php-fcgi-starter.php4
FCGIWrapper/var/www/php-fcgi-scripts/web73/.php-fcgi-starter.php5
选项+执行CGI
允许超越所有
要求所有授权
SetHandler fcgid脚本
FCGIWrapper/var/www/php-fcgi-scripts/web73/.php-fcgi-starter.php
FCGIWrapper/var/www/php-fcgi-scripts/web73/.php-fcgi-starter.php3
FCGIWrapper/var/www/php-fcgi-scripts/web73/.php-fcgi-starter.php4
FCGIWrapper/var/www/php-fcgi-scripts/web73/.php-fcgi-starter.php5
选项+执行CGI
允许超越所有
要求所有授权
#添加对apache mpm_itk的支持
AssignUserId web73客户端1
#不要在webdav目录中执行PHP文件
SecRuleRemoveById 960015
SecRuleRemoveById 960032
SetHandler无
DavLockDB/home/l3p/apache_sites/client1/web73/tmp/DavLock
#不要删除评论!
#如果删除它们,WEBDAV将不再工作!
#WEBDAV开始
#WEBDAV端

知道会发生什么吗?
如何解决此问题?

我建议您在日志中查看更多信息。我也有类似的问题。当我刚刚搜索503错误时,我只得到了您的错误消息。当我看到它周围的信息时,我看到:

mod_lsapi: [host <domain_name>] [req GET / HTTP/1.1]
    Could not connect to lsphp backend: connect to lsphp failed: 110
mod_lsapi:[host][req-GET/HTTP/1.1]
无法连接到lsphp后端:连接到lsphp失败:110
我的服务器使用cPanel进行管理。进入cpanel并手动选择PHP版本修复了这个问题。我不确定同样的情况是否适用于您,但错误消息可能会帮助您缩小问题的范围

mod_lsapi: [host <domain_name>] [req GET / HTTP/1.1]
    Could not connect to lsphp backend: connect to lsphp failed: 110