Apache won’t restart: [crit] (98)Address already in use: make_sock: could not bind to port 8090
by admin on Sep.07, 2009, under DirectAdmin
Note this is an old guide. It was for apache 1.3 with customapache. The current boot script we provide shouldn’t have this issue.
If apache is not completely shutting down, consider trying graceful restarts (see related link below) and also ensure your system is updated such that you don’t have any outdated php scripts on the server.
[crit] (98)Address already in use: make_sock: could not bind to port 8090
or
[crit] (98)Address already in use: make_sock: could not bind to port 443
or
[crit] (98)Address already in use: make_sock: could not bind to port 80
If you see this error in your /var/log/httpd/error_log, it would mean that apache isn’t shutting down completely before trying to restart. This means that the new process won’t be able to bind to the given ports because they’re still being used by the old copy of apache that wasn’t completely shut down.
To solve this, use a different boot script that will wait for all apache processes to stop before starting the new one:
cd /usr/local/directadmin/customapache
rm -f httpd*
./build update
Once you have the new scripts downloaded, you need to install them:
RedHat:
cp httpd /etc/init.d/httpd
chmod 755 /etc/init.d/httpd
chkconfig httpd reset
FreeBSD:
cp httpd_freebsd /usr/local/etc/rc.d/httpd
chmod 755 /usr/local/etc/rc.d/httpd
Incoming search terms:
(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 [::]:443,(98)Address already in use: make_sock: could not bind to address [::]:8888,could not bind to address 80,error: system error 98: address already in use,port 80 already in use,problem with apache 2 make_sock windows 7,when restart apache2 error address already in useRelated posts:
- Updating Apache to the latest version You can check the current version of apache by running...
- Apache won’t start and there is nothing in the logs Chance are, if apache isn’t starting and isn’t logging anything,...
- Apache stops responding but is running A few things that could cause that are: Possible Causes:...
Related posts brought to you by Yet Another Related Posts Plugin.
