Ubaled to start apache. no listening sockets available, shutting down Unable to open
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ubaled to start apache. no listening sockets available, shutting down Unable to open
I´m new in Linux & need some help to restart apache.
I stoped apache usind command # /etc/init.d/apache2 stop
and apache stopped well.
The problem is when i try to start o restart apache we have the following messages:
command:~# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 10.70.220.1 for ServerName
httpd (no pid file) not running
apache2: Could not reliably determine the server's fully qualified domain name, using 10.70.220.1 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]: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
If i take a look for another process using the port 80:
#lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sh 1784 root 3u IPv6 27593263 TCP *:www (LISTEN)
Version od apache used in this server.
APACHE VERSION #:
================
It is showing someone has a shell session open listing on port 80:
Quote:
lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sh 1784 root 3u IPv6 27593263 TCP *:www (LISTEN)
Since web service by default listen on port 80 it can't open it.
Type "ps -ef |grep 1784" and see what it is. If it shows you a tty/pty (e.g. tty1, pts/6) you can run ps -ft on that tty/pty to see what else is running there. My guess is someone was doing a test to see if they could make port 80 work and forgot to ctrl-c out after they did it. You can use "kill 1784" to stop process 1784 (or kill -1 and finally kill -9) on the PID if the basic kill doesn't work but should check to make sure it wasn't something important first.
No problem. Please go to thread tools and mark this as Solved. It helps others with similar issues find solutions more quickly in web searches.
Also when people help you might consider click "yes" on the question about whether this was helpful or clicking on the scales to add reputation points.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.