LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-13-2009, 11:46 AM   #1
slvfx
LQ Newbie
 
Registered: Sep 2009
Posts: 29

Rep: Reputation: 15
Apache2 error message won't restart


I restarted my apache2 server and it failed. Websites won't come up

13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
 
Old 12-13-2009, 11:55 AM   #2
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
Hi
try:
netstat -ant |grep LISTEN and see who hold the port :80 and after that find httpd folder or apache2 usually it is located in
/etc/httpd/conf and open httpd.conf with any text editor and find string listen :80 and change it to IP you need .
Adn restart /etc/init.d/httpd restart.
 
Old 12-13-2009, 12:01 PM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

The netstat is a good starting point to find out if something is using port 80. But judging from the icon below the OP's username he's using a Debian based distro (Ubuntu). Hence the configuration files are different:

Global configuration = /etc/apache2/apache2.conf
Listen directives = /etc/apache2/ports.conf

(if I'm not mistaking).

Restarting should be on Debian based:
Code:
/etc/init.d/apache2 restart
Kind regards,

Eric
 
Old 12-14-2009, 06:50 AM   #4
slvfx
LQ Newbie
 
Registered: Sep 2009
Posts: 29

Original Poster
Rep: Reputation: 15
Websites came up but I am getting the same error messages.

bob@bob-desktop:~$ netstat -ant |grep LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
 
Old 12-14-2009, 09:18 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
tcp6 0 0 :::80 :::* LISTEN
it seems there is another apache running

is there two apache?
 
Old 12-14-2009, 04:29 PM   #6
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
Smile apache2 second module

yes, This is another module of apache2 you can find in /etc directory and file by listen.conf there you can bind to another IP. and restart apache again should be ok.
 
  


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
Apache2 - have to restart apache2 process every 10 mins to clear /tmp directory.... levi dehaan Linux - Software 8 09-01-2009 06:34 PM
Apache2 under Ubuntu - Virtual Host error on restart MJWhiteDerm Linux - Server 10 09-23-2007 07:36 PM
apache2 error message display problem SUSE 10.1 hufemj Linux - Software 0 11-07-2006 07:19 AM
Restart apache2 in Debian 3.1r2 swmok Debian 4 06-15-2006 12:43 AM
apache2 error message in run level hiplainsdrifter Linux - Networking 3 04-21-2004 01:18 PM

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

All times are GMT -5. The time now is 04:39 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