Author Topic: Error in httpd syntax after CWP update  (Read 214 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error in httpd syntax after CWP update
« 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 *
« Last Edit: June 09, 2017, 08:05:12 PM by Nirvak »

Offline
*
Re: Error in httpd syntax after CWP update
« Reply #1 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