LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 (https://www.linuxquestions.org/questions/linux-server-73/98-address-already-in-use-make_sock-could-not-bind-to-address-0-0-0-0-80-a-794380/)

comonsiddu 03-10-2010 01:33 AM

(98)Address already in use: make_sock: could not bind to address 0.0.0.0: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

hi folks i am new to apache2 server i have been trying to start the server using the default httpd.conf file provided in the source code but when i give the following command sudo /usr/local/apache/bin/apachectl start i receive the above error and the server shuts down. any kind of help will be highly appreciated.

troop 03-10-2010 01:43 AM

why /usr/local/apache/bin/apachectl ?
"/etc/init.d/apache2 start" is better
"Address already in use" - no comments. lsof -i -n|grep http

comonsiddu 03-11-2010 11:13 PM

thanks man that worked i understood the mistake

deadeyes 03-18-2010 08:18 AM

Quote:

Originally Posted by comonsiddu (Post 3892519)
(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

hi folks i am new to apache2 server i have been trying to start the server using the default httpd.conf file provided in the source code but when i give the following command sudo /usr/local/apache/bin/apachectl start i receive the above error and the server shuts down. any kind of help will be highly appreciated.

What you were doing was probably starting another httpd process while there was already one running and used port 80.
You might want to try with apachectl restart

prabhas4 11-16-2011 01:48 AM

error in starting apache2
 
error in starting apache2

error in starting service "service apache2 start"
i was tried to install apache2 in my ubuntu 11.10 using the command "sudo apt-get install apache2". It was installed successfully and pops message failed when

* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(9Address 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
Action 'start' failed.
The Apache error log may have more information.
[fail]
invoke-rc.d: initscript apache2, action "start" failed.
Setting up apache2 (2.2.20-1ubuntu1.1) ...

after that i tried
apt-get install httpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package httpd is a virtual package provided by:
apache2-mpm-itk 2.2.20-1ubuntu1.1
apache2-mpm-worker 2.2.20-1ubuntu1.1
apache2-mpm-prefork 2.2.20-1ubuntu1.1
apache2-mpm-event 2.2.20-1ubuntu1.1
yaws 1.90-2
webfs 1.21+ds1-8
tntnet 1.6.3-4.1
thttpd 2.25b-11
ocsigen 1.3.4-2
nginx-light 1.0.5-1
nginx-full 1.0.5-1
nginx-extras 1.0.5-1
monkey 0.9.3-1ubuntu1
mini-httpd 1.19-9.2build1
micro-httpd 20051212-13
mathopd 1.5p6-1.1
lighttpd 1.4.28-2ubuntu2
ebhttpd 1:1.0.dfsg.1-4.2
dhttpd 1.02a-18
cherokee 1.2.2-2build1
bozohttpd 20100920-1
boa 0.94.14rc21-3.1
aolserver4-daemon 4.5.1-15
aolserver4-core 4.5.1-15
You should explicitly select one to install.

E: Package 'httpd' has no installation candidate
root@# service apache2 start
* Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(9Address 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
Action 'start' failed.
The Apache error log may have more information.
[fail]

i want to install apache2 and php to do my project.
i was installed mysql.

thanks
prabhas

john.akash 02-07-2013 04:17 AM

Quote:

Originally Posted by comonsiddu (Post 3892519)
(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

hi folks i am new to apache2 server i have been trying to start the server using the default httpd.conf file provided in the source code but when i give the following command sudo /usr/local/apache/bin/apachectl start i receive the above error and the server shuts down. any kind of help will be highly appreciated.

Please check which are the process running in the apache port (80 or which custom port you are using) using netstat -nlp | grep 80, check the process which is running in the same port. Kill that process (using kill -9 PID) and restart the apache.

TenTenths 02-07-2013 04:29 AM

It may occasionally be required to kill -15 apache processes that refuse to die.

I've also had some strange situations where shared memory segments and semaphores have been left and had to be removed.

notsure 02-10-2013 01:45 AM

So is this solved?


Also, holy shyte this thread has 12K+ views.


All times are GMT -5. The time now is 06:35 PM.