Started working on some hosting. Ran into trouble.


Dec 31 09:32:45 chilper.com apachectl[2857]: (98)Address already in use: AH00072: make_sock: could not bind to address 192.168.1.108:80 Dec 31 09:32:45 chilper.com apachectl[2857]: no listening sockets available, shutting down Dec 31 09:32:45 chilper.com apachectl[2857]: AH00015: Unable to open logs Dec 31 09:32:45 chilper.com apachectl[2857]: Action 'start' failed. Dec 31 09:32:45 chilper.com apachectl[2857]: The Apache error log may have more information. Dec 31 09:32:45 chilper.com systemd[1]: apache2.service: Control process exited, code=exited status=1 Dec 31 09:32:45 chilper.com systemd[1]: apache2.service: Failed with result 'exit-code'. Dec 31 09:32:45 chilper.com systemd[1]: Failed to start The Apache HTTP Server. Dec 31 09:37:07 chilper.com systemd[1]: Starting The Apache HTTP Server...

It's amazing to see that almost five years later, a solution on the web still helped me. Thanks to DigitalOcean and Arnold Karani, I solved it by doing this:


  1. sudo apt-get remove nginx nginx-common # Removes all but config files.

  2. sudo apt-get purge nginx nginx-common # Removes everything.

  3. sudo apt-get autoremove #After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.