• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue httpd Error

Jacob Kelly

New Pleskian
I am getting the following error when I try 'rebuild all' in the 'Webserver Configuration Troubleshooter' extension.

New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00526: Syntax error on line 104 of /etc/httpd/conf/httpd.conf: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration


In my /etc/httpd/conf/httpd.conf file:

102 <Directory />
103 AllowOverride None
104 </Directory>


Any help would be appreciated.
 
Try to find mention of this "Require" with something like:

# grep -R Require /etc/httpd/conf/*
 
I removed all the lines specific to vhosts.


Does this assist at all in troubleshooting the issue?



/etc/httpd/conf/httpd.conf: Require all granted

/etc/httpd/conf/httpd.conf: Require all granted

/etc/httpd/conf/httpd.conf: Require all denied

/etc/httpd/conf/httpd.conf: Require all granted

/etc/httpd/conf/modsecurity.d/rules/modsecurity_crs-plesk/modsecurity_crs_20_protocol_violations.conf:# Require Content-Length to be provided with every POST request.

/etc/httpd/conf/plesk.conf.d/horde.conf.bak: Require all granted

/etc/httpd/conf/plesk.conf.d/horde.conf.bak: SSLRequireSSL

/etc/httpd/conf/plesk.conf.d/horde.conf.bak: Require all granted

/etc/httpd/conf/plesk.conf.d/horde.conf: Require all granted

/etc/httpd/conf/plesk.conf.d/horde.conf: SSLRequireSSL

/etc/httpd/conf/plesk.conf.d/horde.conf: Require all granted

/etc/httpd/conf/plesk.conf.d/server.conf.bak: Require all granted

/etc/httpd/conf/plesk.conf.d/server.conf.bak: Require all granted

/etc/httpd/conf/plesk.conf.d/server.conf.bak: Require all granted

/etc/httpd/conf/plesk.conf.d/server.conf.bak: Require all granted

/etc/httpd/conf/plesk.conf.d/roundcube.conf: Require all granted

/etc/httpd/conf/plesk.conf.d/roundcube.conf: Require all granted

/etc/httpd/conf/plesk.conf.d/server.conf: Require all granted

/etc/httpd/conf/plesk.conf.d/server.conf: Require all granted

/etc/httpd/conf/plesk.conf.d/server.conf: Require all granted

/etc/httpd/conf/plesk.conf.d/server.conf: Require all granted
 
Back
Top