Symptoms
- Plesk shows the following error:
AN00526: Syntax error on line 112 of /etc/httpd/conf/plesk.conf.d/server.conf: Invalid command 'ProxyTimeout', perhaps, misspelled or defined by module not included in the server configuration.
- There are configuration errors in the Plesk database like:
# plesk db -e"select * from Configurations where status='error'G"
httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.modules.d/00-proxy.conf: Cannot load modules/mod_proxy.so into server: /etc/httpd/modules/mod_proxy.so: file too short
Cannot load modules/mod_proxy.so into server: /etc/httpd/modules/mod_proxy_fcgi.so: file too short
- Some websites do not work:
File Not found
Some websites show webmail pages instead of web content.
PHP files are downloaded by the web browser instead of being opened.
Cause
The mentioned Apache modules are disabled or corrupted.
Resolution
Connect to the server via SSH
Open the
/etc/httpd/conf.modules.d/00-proxy.conffile to edit:
# vi /etc/httpd/conf.modules.d/00-proxy.conf
- Uncomment the modules from the error if required. For example, change:
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_module modules/mod_proxy_fcgi.so
into:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_module modules/mod_proxy_fcgi.so
- Restart the Apache service:
# systemctl restart httpd
Note: Only if the issue persists or the modules weren't commented out, please proceed as follows.
- Create a backup of the corrupted files:
# # mv /etc/httpd/modules/mod_proxy.so{,.old}
# # mv /etc/httpd/modules/mod_proxy_fcgi.so{,.old}
- Reinstall the httpd package to fix the files:
# yum reinstall httpd