Apache cannot start

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Apache cannot start

Unread post by BerArt »

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?
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Is it notmal that if Apache is not running the modules ModSecurity and ModEvasive are on RED in the WebGUI??
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

I just ran asl -u and noticed the following:

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]
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...
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

I think it is related, must be! when I run ASL -f it it restarting Apache but this fails :( and give the erro above. So now all sites are down on one server. I will NOT run ASL -f or ASL -u till this is solved on my other three servers :(
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

BerArt wrote:Is it notmal that if Apache is not running the modules ModSecurity and ModEvasive are on RED in the WebGUI??
I guess so, since mod_security and mod_evasive are Apache modules.
Lemonbit Internet Dedicated Server Management
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Ah, ok thx breun :)

Kalimari noticed this in the update chanel: (ASL via YUM)

`update asl 1.9.8-12 to channel [asl-2.0] in archive [atomicorp] - Update to manage updates for the new sql.txt config file used in mod_security.`

I hope that this will solve the problem, can Scott confirm this please?
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

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
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

I already did before I opened this topic, thx anyway :)
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

I updated to 1.9.8-12 and Apache is running again, but I still received the same error when running asl -f ?? but I see the file sql.txt in the right folder now :) pffff
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yep the updates routine (which lives in the asl core utilities) had to be updated for something that the rules had a new dependency on (sql.txt). So that needed to be updated first, before the rule updates ran.
wizcom
Forum User
Forum User
Posts: 12
Joined: Tue Dec 27, 2005 3:13 pm

Unread post by wizcom »

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
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

You have to update ASL via YUM then run ASL -u and ASL -f that fixed it for me :)
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
wizcom
Forum User
Forum User
Posts: 12
Joined: Tue Dec 27, 2005 3:13 pm

Unread post by wizcom »

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
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

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?
Last edited by Kalimari on Tue Apr 15, 2008 2:37 pm, edited 1 time in total.
wizcom
Forum User
Forum User
Posts: 12
Joined: Tue Dec 27, 2005 3:13 pm

Unread post by wizcom »

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
Post Reply