LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-10-2009, 08:20 AM   #1
CCTVGuru
LQ Newbie
 
Registered: Jun 2009
Posts: 13

Rep: Reputation: 1
Red face Apache Webserver on Slackware - Failed to Start Apache - 'no listening sockets .."


Hi, Everyone,

Can I ask for documentation and help for resolving my problem to start Apache Webserver on Slackware 12;

The module has been installed successfully and one virtual host created / listed, but at the point of trying "Apache Start" the reply is referring to "no sockets available"..


Quote:
Module Index
Error

--------------------------------------------------------------------------------

Failed to start apache :
/usr/local/apache2/bin/apachectl start :
(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
Logically, somewhere in teh setting procedures I have omitted to specify the binding IP address and most probably this causes the problem.

If somewhere in the forum the same issue has been dealt with, I would appreciate directions to topics and tuitorials.

I have kept the default server as generated during the installation, and created 2 virtual hosts (one is per DNS name, the other is per IP address (matching the registered DNS name)).

Thank you in advance,

 
Old 10-10-2009, 10:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Quote:
Originally Posted by CCTVGuru View Post
Code:
(98)Address already in use: make_sock: could not bind to address [::]:80
"In use" means something is listening on port TCP/80 already. Could be a remnant of earlier experimentation to get Apache to run, could be something else. Kill it before starting Apache. If unsure, as root, check with 'lsof -i tcp:80' or 'fuser -n tcp 80' to see what's listening on the port and needs to be killed.
 
Old 10-10-2009, 08:41 PM   #3
millergroup
Member
 
Registered: Oct 2009
Posts: 39

Rep: Reputation: 15
Do this. The PID for httpd is still running even though apache looks dead.

From the command line ~# killall -9 httpd
~# apachectl start
or ~# /etc/init.d/httpd start



Hope this helps.
 
Old 10-10-2009, 11:54 PM   #4
CCTVGuru
LQ Newbie
 
Registered: Jun 2009
Posts: 13

Original Poster
Rep: Reputation: 1
Thank yo millergroup and unSpawn,

Noted. In meantime I have been reading related topics and changed the listening port to 8080 instead standard 80.
Now, by typing my IP address http://123.456.789.123 and http://123.456.789.123:8080 I can open up the test index file ("It Works") but the next task for me is to open the www.servername.com in the browser.
By doing that it gives me a search page.
Of course, I have not uploaded any content as yet, but I will make a test html page and upload it to the related content folder.

I hope to resolve this stage successfully, if any pointing to sequence of procedures and pointing to topics is given to me I would be grateful!

Best Regards!
 
Old 10-11-2009, 01:14 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
There is no need to change to 8080. As unSpawn indicated, the address is already in use. You can stop Apache in Slackware with /etc/rc.d/rc.httpd stop and start it with /etc/rc.d/rc.httpd start; do this as root.

With regards to access via the domain name. You can add the domain to /etc/hosts

Last edited by Wim Sturkenboom; 10-11-2009 at 01:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 doesn't start after upgrade to confixx 3.2.1 "no listening sockets available" simon_haas Linux - Server 0 12-26-2006 08:07 AM
Cannot start Apache Webserver 2... myfokkinnick@yahoo.i Linux - Networking 9 08-19-2006 08:31 AM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
Apache Webserver Help on Slackware 9.1 Corallis Linux - Newbie 1 01-28-2004 04:40 PM
Should I start over? Webserver, Apache Questions ?? sillyputty Linux - General 5 11-26-2002 03:22 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration