Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
(98)Address already in use: make_sock: could not bind to address 192.168.1.101:8080
no listening sockets available, shutting down.
Unable to open logs
so 192.168.1.102 is the specific machine running the server, 8080 is the port, using 80 gives me the same error. also, i tried: 'service httpd restart' this looks successful saying all is [OK], but gets me nowhere. any help would be great. thanks in advance.
netstat -lnp | grep :80
This command should return the name of the running program that hsa port 80 or 8080 open as well as it's process ID. Then you will at least know what is bound to those ports.
You don't by chance have both apache 1.3 and apache 2.x installed on your machine do you ? possibly apache 1.3 is running and that why apache2 can't start..
You can also look to the running processess to see if you see apache, apache2, or httpd running
ps -aux | grep httpd
ps -aux | grep apache
maybe try the following to check versions.. httpd -v
apachectl -v
First trick is to find out what is bound to those ports so you can move forward..
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625
Rep:
Generally yes, although there are other httpd programs httpd is the Apache2 program. You could do a ps aux and look for process 4766 to see exactly what it is, or just kill it.
alright, i ran ps -aux, i found 4766, it said /usr/sbin was the command. i killed it and it freed up a load of processes that were "apache2". in the clear now right? nope. i ran 'apachectl start' but i get a similar error:
(99)Cannot assign requested address: make_sock: could not bind to address to 192.168.1.101:80
no listening sockets available, shutting down
Unabke to open logs
Pyre, I'm having the same problem, except my box is not showing any other process using that port or IP.
What are the lines in your httpd.conf file for the following:
Listen
ServerName
It used to work fine locally for me when I specified a host name in the Listen part, but remote machines would get nothing back. But as soon as I replaced the host.domain.com with an IP address, apache started barfing when I try to start it. This is the configuration that worked locally for me:
Code:
Listen host.domain.com:80
#SeverName <-- left commented out
Last edited by fedoraDrew; 10-07-2008 at 10:18 PM.
Reason: clarify behavior of my config
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.