Symptoms
-
Multiple errors in Apache error log file from Plesk when trying to access
/usr/share/plesk-service.localdomain/
path:# egrep AH01797 /var/log/httpd/error_log
[access_compat:error] [pid 3313:tid 140032808830720] [client 127.0.0.1:38228] AH01797: client denied by server configuration: /usr/share/plesk-service.localdomain/ -
The IP
127.0.0.1
is not included in the restriction applied in/etc/httpd/conf/plesk.conf.d/server.conf
configuration file:# egrep -A7 “Directory “/usr/share/plesk-service.localdomain”” /etc/httpd/conf/plesk.conf.d/server.conf
<Directory “/usr/share/plesk-service.localdomain”>
AllowOverride None
Options None
Require host localhost
Order deny,allow
Deny from all
Allow from localhost
</Directory>
Cause
Product issue:
-
#PPPM-11377 “The /var/log/httpd/error_log file no longer contains the following multiple error messages: “client denied by server configuration: /usr/share/plesk-service.localdomain/”.”
Fixed in:- Plesk Obsidian 23 June 2020 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
As a workaround:
-
Back up the file
/usr/local/psa/admin/conf/templates/default/server/pleskServiceLocaldomain.php
running the following commands:# mkdir /root/KB360010965519
# cp -a /usr/local/psa/admin/conf/templates/default/server/pleskServiceLocaldomain.php /root/KB360010965519/.
-
Fix the configuration by running this command:
# sed -ri ‘s/(Allow from localhost)/1 127.0.0.1/g; s/(Require host localhost)/1 nRequire ip 127.0.0.1/g’ /usr/local/psa/admin/conf/templates/default/server/pleskServiceLocaldomain.php
-
Apply the new configuration:
# plesk repair web -server