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.
- Configuration errors in 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 corrupted.
Resolution
-
Connect to the server via SSH
-
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