Every update makes HTTPD go down.. Look.

chris8lunch

Well-Known Member
May 27, 2006
160
0
166
...Syntax error on line 380 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'mod_security.c': not in list of loaded modules
/etc/rc.d/init.d/httpd start: httpd could not be started
The default audit log is located at /user/local/apache/logs/audit_log
All pages that are prevented from loading by mod_security will have a 406 error

Could someone please tell me how to fix this? Thanks.
 

DTmonk

Member
Jul 31, 2006
13
0
151
South Africa
try this

login as root,,
then type> vim /usr/local/apache/conf/httpd.conf
Comment out that line mod_security.c

then type> service httpd restart

that worked for me yesterday.
 

chris8lunch

Well-Known Member
May 27, 2006
160
0
166
DTmonk said:
login as root,,
then type> vim /usr/local/apache/conf/httpd.conf
Comment out that line mod_security.c

then type> service httpd restart

that worked for me yesterday.
Doesn't that just delete the line? Once cPanel does its next update, it will do it again!
 

DTmonk

Member
Jul 31, 2006
13
0
151
South Africa
Mmmm

Yes, that was a quick fix,,,, but I was worryd that your server was down like my server was for 3hours. :eek:

DTmonk
----------
----------
 

chris8lunch

Well-Known Member
May 27, 2006
160
0
166
Yes, that was a quick fix,,,, but I was worryd that your server was down like my server was for 3hours. :eek:

DTmonk
----------
----------
Yes mine did the same, but I'm asking HOW DO I FIX THIS so when cPanel updates again it won't no longer do that?? Am I missing something I should have in the server??
 

consultorpc

Well-Known Member
PartnerNOC
Jun 18, 2003
51
0
156
This is weird, we have a lot of errors also:

# /scripts/restartsrv_httpd
Syntax error on line 241 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'mod_rewrite.c': not in list of loaded modules
/etc/rc.d/init.d/httpd start: httpd could not be started

Any cPanel FIX yet ?
 

chris8lunch

Well-Known Member
May 27, 2006
160
0
166
This is weird, we have a lot of errors also:

# /scripts/restartsrv_httpd
Syntax error on line 241 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'mod_rewrite.c': not in list of loaded modules
/etc/rc.d/init.d/httpd start: httpd could not be started

Any cPanel FIX yet ?
The only way I find a fix is to edit /usr/local/apache/conf/httpd.conf and delete mod_rewrite.c from the line.
 

consultorpc

Well-Known Member
PartnerNOC
Jun 18, 2003
51
0
156
If it's help:

httpd was failing because the LoadModule entries for mod_rewrite and
mod_expires were missing from httpd.conf. I recreated these entries, and was
successfully able to start httpd after doing so.