Report this

What is the reason for this report?

Fail to bring up apache server, after rebuilding a droplet

Posted on October 22, 2015

Few weeks ago, In order to save some space, I’ve empty some files from directory /var/lib/mysql (e.g. drupal_big@002dtoys2, drupal_bigtoysdb), using the command “filename < /dev/nulll” and later on I’ve deleted some log files, using the “rm” command. As these actions did not save enough space, I’ve deleted (by mistake) the ibdata1 file that did save enough space for me, but at the same time caused a damage to the functionality of my drupal site. Fortunately, I had a backup of my droplet that has been created few hours ago, so I decided to rebuild the droplet from a snapshot that I created from the above backup. Now when trying to bring up the apache server, I’m getting the following error:

root@faze:~# sudo service apache2 start
[....] Starting web server: apache2apache2: Could not reliably determine the server's fully qualif                                                                                                             ied domain name, using 127.0.1.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 188.226.155.119:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 failed!
root@faze:~#

Did anybody experienced this situation, or can help with any idea to resolve the problem?

P.S. A VESTA control panel (VESTACP) is installed on my droplet.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The error Address already in use: make_sock: could not bind to address 188.226.155.119:80 suggests that something else is already binding to port 80. Do you have another web server installed? Visting that IP address, I see an Nginx error page. It sounds like both Nginx and Apache are running and attempting to use port 80. By default, they will both start on boot.

To see if this is the issue, stop Nginx and start Apache with:

sudo service nginx stop
sudo service apache2 start

To disable Nginx from starting automatically, run:

sudo update-rc.d nginx disable

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.