These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Problem restarting Apache on the new forum.
I'm having problems trying to get a script to work which uses FFMPEG and cURL and after installing FFMPEG I'm getting Starting web server: apache2(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 Action 'start' failed. The Apache error log may have more information. failed!
When I try to restart Apache. Any ideas? I'm also getting cURL errors in the script :/.
Edit: I completely uninstalled both ffmpeg and curl and the error is still coming up. I think it has to do with me recently adding a site using a dedicated IP.
Search this line in your httpd.conf or apache2.conf NameVirtualHost *:80 and comment it then restart apache.
Where should I find the httpd.conf? I found one in /etc/apache2/ but it was completely blank.
The error you're getting suggests that an Apache process isn't completely shutting down during the Apache restart.
I don't think it's related to curl or ffmpeg, and it's also unlikely to be related to moving to a new IP. My guess is that some application or Apache module is causing the issue.
To get around that issue you're seeing, you can kill the Apache process manually. You can do that with this command:
killall apache2
And then start Apache again:
/etc/init.d/apache2 start
I've been having this issue even after rebooting the system and trying a restart. Should I have to kill everything every time I have to restart Apache? Also along with FFMPEG and cURL I installed their php5 packages as well.
Howdy,
It sounded like you're using Debian/Ubuntu there... if that's true, what does this command output:
ls /etc/apache2/mods-enabled/
Yes I am using Debian, that command gives:
Also the killall command did not work, Apache still could not restart and gave the same error.
This is in my Apache2.conf: NameVirtualHost 63.141.248.146:80 NameVirtualHost 63.141.248.146:443 NameVirtualHost 63.141.248.148:80 NameVirtualHost 63.141.248.150:80
Should I try commenting it out like that guy above said? Another problem I'm having is sometimes when I reboot my virtual networks just stop working (site doesn't load, IP won't ping) and I have to readd them all just to get it to work. Maybe this is related?
Edit: It seems to work when I do service apache2 stop then service apache2 start :/. Still looking for a solution for the IPs not coming up too.