store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Fri Sep 19, 2014 1:51 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [SOLVED] asl-lite error message
Unread postPosted: Thu Jun 02, 2011 11:41 am 
Offline
Forum User
Forum User

Joined: Fri Feb 18, 2011 11:33 am
Posts: 16
Location: uk
Hi, I have started to receive the following from cron when asl-lite -u is executed
Code:
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
What is asl-lite calling to restart Apache ?


Last edited by organicspider on Thu Jun 02, 2011 3:16 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: asl-lite error message
Unread postPosted: Thu Jun 02, 2011 1:47 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7901
Location: earth
Whatever you told it to. :-)

I normally use /etc/init.d/httpd


Top
 Profile  
 
 Post subject: Re: asl-lite error message
Unread postPosted: Thu Jun 02, 2011 1:51 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3631
Location: Chantilly, VA
That directive is stored in:

/etc/asl/config

The command it will call is whatever you configured it to be, and is stored in the variable:

APACHE_RESTART_COMMAND

The default in ASL, for example, is "/etc/init.d/httpd restart"

Which contains the full command you want it to run, along with any arguments. So you could put anything in that.

Quote:
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs


That is an apache error. Apache is complaining that when you tried to start apache something was already running on port 80 and it cant bind to the port. asl-lite will run whatever command you configure to restart apache, so Id check the command you configured and your system to see whats running on port 80. If apache is running (and nothing else), then your restart command is either not shutting down apache (if thats happening, you should contact your apache vendor to see why thats not working). With a standard redhat or centos apache install and set of init scripts, you would normally use the command above to restart apache.

Or, if thats not the problem then it sounds like you either have something else listening on port 80 or maybe you have a tool that restarts apache (like psmon) if its down and you are running into a race condition when your restart does not complete before your process watchdog restarts apache itself.

Id definitely get to the bottom of whats on port 80 though and confirm that this is just a restart issue and not something more severe. Ive seen malware that will hijack port 80, even down on the thread level.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: asl-lite error message
Unread postPosted: Thu Jun 02, 2011 3:16 pm 
Offline
Forum User
Forum User

Joined: Fri Feb 18, 2011 11:33 am
Posts: 16
Location: uk
Thanks Michael; problem was due to running a custom Apache install.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group