Error in httpd syntax after CWP update

Started by Nirvak, June 09, 2017, 08:00:43 PM

Previous topic - Next topic

Nirvak

Hello,

I followed this guide http://forum.centos-webpanel.com/centos-6-problems/centos6-upgrade/ to update from version 0.9.8.154, but I got this error:


QuoteStarting httpd: AH00526: Syntax error on line 66 of /usr/local/apache/conf/httpd.conf:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]

Can you help me?

EDIT: After rebuilding Apache the error changed in:

QuoteStarting httpd: AH00526: Syntax error on line 11 of /usr/local/apache/conf.d/mod_security.conf:
Invalid ServerName "*" use ServerAlias to set multiple server names.
                                                           [FAILED]

On line 11 I have:

QuoteServerName *

Nirvak

Excuse me for the multiple post, but I solved with this modification in file /usr/local/apache/conf.d/mod_security.conf:

from
QuoteServerName *

to
QuoteServerName my.ServerHostname.com