LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-10-2010, 01:33 AM   #1
comonsiddu
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
Question (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.
 
Old 03-10-2010, 01:43 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
why /usr/local/apache/bin/apachectl ?
"/etc/init.d/apache2 start" is better
"Address already in use" - no comments. lsof -i -n|grep http
 
Old 03-11-2010, 11:13 PM   #3
comonsiddu
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
thanks man that worked i understood the mistake
 
Old 03-18-2010, 08:18 AM   #4
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by comonsiddu View Post
(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
 
Old 11-16-2011, 01:48 AM   #5
prabhas4
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Rep: Reputation: Disabled
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
 
Old 02-07-2013, 04:17 AM   #6
john.akash
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by comonsiddu View Post
(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.
 
Old 02-07-2013, 04:29 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
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.
 
Old 02-10-2013, 01:45 AM   #8
notsure
Member
 
Registered: Jun 2012
Location: Detroit
Distribution: Arch x86_64
Posts: 112

Rep: Reputation: 10
So is this solved?


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


Reply



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
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 bruvajon Linux - Software 34 11-30-2011 03:08 PM
service httpd (98)Address already in use: make_sock av.dubey Linux - Newbie 6 11-03-2009 06:21 AM
[crit] (98) Address already in use: make_sock could not bind to port 3339. ForumKid Linux - Networking 4 06-10-2008 02:38 AM
make_sock: could not bind to address why i cant start my apache instance rajamanickam Linux - Newbie 1 06-09-2008 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:12 AM.

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
Open Source Consulting | Domain Registration