LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2010, 09:58 PM   #1
shaynej
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
apache2-mpm-itk will not successfully restart


Hey guys,

I am having some problems after installing apache2-mpm-itk on my Debian 5.4 server. From my understanding apache2-mpm-itk will run child processes as root until a http request is received. It then suid's to the username in the VirtualHost directive. This is all working fine, as I can see a few apache processes started by a specific user.

However, the problem is when I try to restart apache. It will kill all the processes running by root but wont kill any of the processes that have been suid'ed to another username.

When i attempt to restart I get this error:
Code:
charged:/etc/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting (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
 failed!
If I do a "ps aux | grep apache" before and after I see all the root processes killed, but processes running as specified users from VritualHost directive remaining.

Now I am not an extreme linux power user, but I know a bit. So could you please post detail reponses.

regards,
Shayne
 
Old 06-17-2010, 12:55 PM   #2
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
Hi Shayne,

You should be able to find the pid of whatever is running on port 80. Use:

netstat -nlp | grep :80

That should show you what is bound to that port so that you can kill it and get things started up again. Where it says number/httpd or number/apache2 is the pid that you need to kill.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Running Vhosts Under Separate UIDs/GIDs With Apache2 mpm-itk On Ubuntu 9.04 LXer Syndicated Linux News 0 06-10-2009 08:10 PM
Force remove apache2-mpm-prefork jchambers Linux - Newbie 4 04-20-2009 02:19 PM
LXer: Running Vhosts With Apache2 mpm-itk On Debian LXer Syndicated Linux News 0 09-07-2008 11:00 AM
LXer: Running Vhosts Under Separate UIDs/GIDs With Apache2 mpm-itk On Debian Etch LXer Syndicated Linux News 0 08-15-2008 05:00 PM
Replacing apache2-mpm-prefork iNeo Debian 1 02-06-2006 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration