Control Web Panel

WebPanel => CentOS 6 Problems => Topic started by: Nirvak on June 09, 2017, 08:00:43 PM

Title: Error in httpd syntax after CWP update
Post by: Nirvak on June 09, 2017, 08:00:43 PM
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:


Quote
Starting 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:

Quote
Starting 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:

Quote
ServerName *
Title: Re: Error in httpd syntax after CWP update
Post by: Nirvak on June 09, 2017, 08:14:41 PM
Excuse me for the multiple post, but I solved with this modification in file /usr/local/apache/conf.d/mod_security.conf:

from
Quote
ServerName *

to
Quote
ServerName my.ServerHostname.com