• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

websrvmng: Service httpd failed to gracefully restart

F

franklaval

Guest
websrvmng: Service httpd failed to gracefully restart


Cant restart Httpd ??

PLesk 7.5.2 ES3
PLease help
 
and what does:

/usr/local/psa/apache/bin/apachectl start

.. say? (or wherever it is on ES3)
 
/etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs!
 
Apache is half-running..

Do this a few times:

/usr/local/psa/apache/bin/apachectl stop

... then start it back up:

/usr/local/psa/apache/bin/apachectl start
 
There is no apache directory in my psa folder do you no where it is ??
 
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs!


when a try to start it??
 
and when i do

/usr/sbin/apachectl stop
httpd (no pid file) not running



but i tryed 5 times and still nothing
 
Originally posted by jshanley
Apache is half-running..

Do this a few times:

/usr/local/psa/apache/bin/apachectl stop

... then start it back up:

/usr/local/psa/apache/bin/apachectl start

No, wrong folder, it's in

/usr/sbin/

so,

# /usr/sbin/apachectl stop
# /usr/sbin/apachectl start
 
I run FreeBSD, so I didn't know where it was for Plesk on Linux. heh. Well, good to know.
 
Yes i no now but i ave this error



/usr/sbin/apachectl start


(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs!
 
Just reboot your machine. I would say just manually kill any leftover apache processes, but given you are not familiar with the commandline, I suggest rebooting the box instead. It should fix the issue.
 
OK thanks


but worked to


login su in server

#fuser 443/tcp
443/tcp: xxxx yyyy zzzz <- proceses using 443

#kill -9 xxxx yyyy xxxx
#service httpd start
 
It worked like a charm for me also. Thanks for the great info!

I'm not sure what caused it but that solved it.
 
Hi.
I recently had the same issue and a reboot fixed it.

Could someone please shed some light on what the message means? What may be causing it...and what can be done to prevent it in the future?

Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs!

Thanks in advance.
 
One of two things:

1) You're trying to start plesk as a non-root user.

2) Plesk (or maybe just Apache) is already running, and you're trying to start it again.
 
After a reboot I get the same error message when I do 'apachectl --restart' or 'apachectl --stop' as root.

This started happening with no changes to anything on the server.

I understand what you are saying...but it seems in this case it doesn't apply. Could there be anything else causing this?
 
Originally posted by jshanley
# find / -name "apachectl"

-J

Did a find, but nothing showed up, could you tell me what may be wrong with plesk/apache since it's not there?
httpd component also shows as not installed.

Br,
MrBister
 
I get this error every once in awhile myself.

Code:
up2date httpd-devel
service httpd restart

That should work.

The issue stems from the fact that apache hangs in a 'running' state, so a graceful start/restart won't work because apache is already bound to the socket. Doing a forceful stop/start (restart) will unbind apache from the port and re-bind it.

Seems to work for me anyhow.
 
Back
Top