LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems getting Apache started (https://www.linuxquestions.org/questions/linux-newbie-8/problems-getting-apache-started-259926/)

Philter 11-27-2004 03:17 PM

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.

RJARRRPCGP 11-27-2004 03:42 PM

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.

DaHammer 11-28-2004 12:32 AM

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.

|2ainman 11-28-2004 04:38 AM

DaHammer has most likely nailed this one.
If all that doesnt help ... then well make sure ur running as root to start up apache

Philter 11-28-2004 06:54 PM

Thanks alot, that worked perfectly. Is there anyway I can get my version of apache to start up with the machine?

H2O-linux 11-28-2004 08:53 PM

chmod 755 /etc/rc.d/rc.httpd


read my signature!!!

I found your answere in the slackware forum by using search for "apache startup"

DaHammer 11-29-2004 12:06 AM

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.

Philter 11-29-2004 03:54 PM

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.


All times are GMT -5. The time now is 05:12 PM.