News:

SMF - Just Installed!

Main Menu

Plesk error: Invalid command 'ProxyTimeout'

Started by Suhitha, Sep 04, 2025, 03:23 AM

Previous topic - Next topic

Suhitha

Question: Plesk error: Invalid command 'ProxyTimeout'


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

1.Connect to the server via SSH

2.Open the /etc/httpd/conf.modules.d/00-proxy.conf file to edit:

# vi /etc/httpd/conf.modules.d/00-proxy.conf
1.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

1.Restart the Apache service:

# systemctl restart httpd
Note: Only if the issue persists or the modules weren't commented out, please proceed as follows.

1.Create a backup of the corrupted files:

## mv /etc/httpd/modules/mod_proxy.so{,.old}
## mv /etc/httpd/modules/mod_proxy_fcgi.so{,.old}
1.Reinstall the httpd package to fix the files:
# yum reinstall httpd