Apache cannot start
Apache cannot start
I run ASL -u and than ASL -f today and Apache would not start anymore:
Starting httpd: Syntax error on line 910 of /etc/httpd/modsecurity.d/10_asl_rules.conf:
Error creating rule: Could not open phrase file "/etc/httpd/modsecurity.d/sql.txt": No such file or directory
[FAILED]
This is what Plesk say's:
Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/httpd failed to start
0: /usr/local/psa/admin/plib/common_func.php3:158
psaerror(string 'Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/httpd failed to start')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28
How to solve this?
Starting httpd: Syntax error on line 910 of /etc/httpd/modsecurity.d/10_asl_rules.conf:
Error creating rule: Could not open phrase file "/etc/httpd/modsecurity.d/sql.txt": No such file or directory
[FAILED]
This is what Plesk say's:
Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/httpd failed to start
0: /usr/local/psa/admin/plib/common_func.php3:158
psaerror(string 'Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/httpd failed to start')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28
How to solve this?
I just ran asl -u and noticed the following:
Error: There is a problem with the apache config - I wonder if this is related/similar to BerArt's problem? Apache/Sites are running OK, but think I'll avoid running asl -f for now...
Code: Select all
Checking for updates..
ASL version is current: [1.9.8]
APPINV rules are current: [200709171131]
CLAMAV rules are current: [200804071524]
GRSEC rules are current: [0]
Updating MODSEC to 200804141855: [200804141855]
Error: There is a problem with the apache config
OSSEC rules are current: [200709191233]
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
I guess so, since mod_security and mod_evasive are Apache modules.BerArt wrote:Is it notmal that if Apache is not running the modules ModSecurity and ModEvasive are on RED in the WebGUI??
Lemonbit Internet Dedicated Server Management
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Send an e-mail to support@atomicorp.com for ASL support and/or file a bug report in the bug tracker. Looks like the problem is that the sql.txt file is missing. Maybe touching it so it exists (though empty) is a temporary fix.
Last edited by breun on Tue Apr 15, 2008 5:15 am, edited 1 time in total.
Lemonbit Internet Dedicated Server Management
OK, Please realize I'm at least 2 levels below you guys in knowledge - was 4 or 5 before meeting Scott. I have the exact same issue and exact same error message. I did the ASL updates except for Tomcat. It's not installed. When you say the installer needs to be updated, how? Updater? Yum? Other? I'm not going to play and F$%$# it more than it already is.
Thanks as always.
Howard J. Brubaker
Thanks as always.
Howard J. Brubaker
OK, did the yum update even tomcat. On ASL-u got
Updating CLAMAV to clamav: [FAILED]
ran ASL-F. Lots of fixed but only 2 fails
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
Rebooted server. Saw Apache was still down, tried to restart got:
0: /usr/local/psa/admin/plib/common_func.php3:158
psaerror(string 'Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/httpd failed to start')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28
Thoughts?
Howard
Updating CLAMAV to clamav: [FAILED]
ran ASL-F. Lots of fixed but only 2 fails
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
Rebooted server. Saw Apache was still down, tried to restart got:
0: /usr/local/psa/admin/plib/common_func.php3:158
psaerror(string 'Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/httpd failed to start')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28
Thoughts?
Howard
Umm... updated ASL via YUM then ran ASL -u (no `Error: There is a problem with the apache config` this time) then ran ASL -f and update fell over on line 910 of /etc/httpd/modsecurity.d/10_asl_rules.conf - the file sql.txt exists in same dir...
To fix it (and keep sites up!) I've commented out the troublesome rule (on lines 909+910) in 10_asl_rules.conf and reran asl -f then disabled ASL updates via cron.daily.
wizcom - if Apache is still down, do this to at least bring the web service back up.
UPDATE: Reran asl -u and then reran asl -f and it seems OK this time... So I suppose the order is to YUM update, asl -f then asl -u?
To fix it (and keep sites up!) I've commented out the troublesome rule (on lines 909+910) in 10_asl_rules.conf and reran asl -f then disabled ASL updates via cron.daily.
wizcom - if Apache is still down, do this to at least bring the web service back up.
UPDATE: Reran asl -u and then reran asl -f and it seems OK this time... So I suppose the order is to YUM update, asl -f then asl -u?
Last edited by Kalimari on Tue Apr 15, 2008 2:37 pm, edited 1 time in total.
Kalimari wrote
"etc/httpd/modsecurity.d/10_asl_rules.conf - the file sql.txt exists in same dir...
To fix it (and keep sites up!) I've commented out the troublesome rule (on lines 909+910) in 10_asl_rules.conf and reran asl -f then disabled ASL updates via cron.daily."
That would work fine but my 10_asl_rules.conf has only 888 lines. Can you give me some other idea on what the rule to comment out is?
Thanks
Howard
"etc/httpd/modsecurity.d/10_asl_rules.conf - the file sql.txt exists in same dir...
To fix it (and keep sites up!) I've commented out the troublesome rule (on lines 909+910) in 10_asl_rules.conf and reran asl -f then disabled ASL updates via cron.daily."
That would work fine but my 10_asl_rules.conf has only 888 lines. Can you give me some other idea on what the rule to comment out is?
Thanks
Howard