LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2004, 03:17 PM   #1
Philter
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10.0 and Gentoo
Posts: 10

Rep: Reputation: 0
Problems getting Apache started


Well I managed to install Slackware 10.0 and I've compiled and installed Apache 2.0.5 and PHP 5. But when I try to start Apache up I get this error message
Code:
(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
I'm not too sure what it means. But I'm guessing its having problems with ports and a firewall or something.
 
Old 11-27-2004, 03:42 PM   #2
RJARRRPCGP
Member
 
Registered: Feb 2004
Location: USA (Springfield, Windsor County, Vermont)
Posts: 57

Rep: Reputation: 15
With an error message mentioning "0.0.0.0" it's likely that you're not even connected to the internet.

Make sure you're able to stay connected to the internet.
 
Old 11-28-2004, 12:32 AM   #3
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
It's telling you that something is already listening on port 80, therefore it can't bind to the port. Slackware 10 ships with Apache 1.x and my guess is that it is running. Shut it down (/etc/rc.d/rc.httpd stop) and then try o start Apache 2.x. If it is running, then it's likely being started at boot. To stop that from happening, remove the execute permission on rc.httpd (chmod a-x /etc/rc.d/rc.httpd) 0.0.0.0 just means that it's listening on all available IPs on that machine.
 
Old 11-28-2004, 04:38 AM   #4
|2ainman
Member
 
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
DaHammer has most likely nailed this one.
If all that doesnt help ... then well make sure ur running as root to start up apache
 
Old 11-28-2004, 06:54 PM   #5
Philter
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10.0 and Gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks alot, that worked perfectly. Is there anyway I can get my version of apache to start up with the machine?
 
Old 11-28-2004, 08:53 PM   #6
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Rep: Reputation: 30
chmod 755 /etc/rc.d/rc.httpd


read my signature!!!

I found your answere in the slackware forum by using search for "apache startup"
 
Old 11-29-2004, 12:06 AM   #7
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Quote:
Originally posted by Philter
Thanks alot, that worked perfectly. Is there anyway I can get my version of apache to start up with the machine?
You'll need to modify the startup script /etc/rc.d/rc.httpd so that it starts the new version instead of the default one. Basically, all that should be required would be for you to change the path to either the httpd executable or the apachectl script, whichever way you perfer to start it. Then just reset the executable permission on /etc/rc.d/rc.httpd.


Edit: BTW, you may also want to backup /etc/rc.d/rc.httpd and then remove the version of Apache installed with Slackware, since you're not using it.

Last edited by DaHammer; 11-29-2004 at 12:08 AM.
 
Old 11-29-2004, 03:54 PM   #8
Philter
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10.0 and Gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
Yeah thats what I figured out. I now have a box that starts the new version of Apache when it boots up. Thanks for all the help.
 
  


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
Apache warning when started mhykhh Linux - Software 4 12-17-2005 06:36 AM
Getting started with Apache shazam75 Linux - Software 4 09-26-2005 09:48 PM
Getting Started with Apache, PHP and MYSQL jammyjames Linux - Newbie 23 09-02-2005 10:58 AM
Help getting started with Apache and Proftp jimhe Mandriva 5 08-18-2004 12:04 AM
Apache 1.3 started but not working ? Devboy *BSD 0 08-16-2004 07:29 AM


All times are GMT -5. The time now is 06:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration