How to install Apache on droplet running Ruby on Rails?

  • Posted August 21, 2014


I have discourse running on my droplet and would like to install a mail server. I was following this guide ( and encountered the issue listed below:

* Starting web server apache2                                                 
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.

How do I fix this issue? Discourse requires Ruby on Rails. I’m on Ubuntu 14.04.

Any suggestions? Thanks!


Submit an 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.

I’m using mandrill for discourse at the moment. Do I need a mail server to setup email address under specific domain? I was under the impression that I needed one for personal emails addresses. Pardon ignorance on this front, I’m fairly new at it.


You seem to have Apache already installed. That error is Apache failing to start because something is already listening on port 80, presumably Discourse. Why exactly do you need to install Apache? It’s not necessary to have Apache running to set up a mail server.

Also, you don’t necessarily need to run your own mail server. You can configure Discourse to use an external service like Mandril to send mail. Mandril will let you send 12k emails per month on its free level. I’d encourage you to take that route. It’s much simpler than hosting your own SMTP server.

If you really need Apache running, you can configure Discourse to listen on a different port and then use Apache as a proxy in front of it.