Question

How to run Apache & Ghost running on same Droplet?

  • Posted on November 17, 2013
  • mc213Asked by mc213

I want to run both my Ghost blog (blog.domain.com) and simple html site (domain.com) on one Droplet. I’ve managed to put it together on two Droplets, it’s fairly easy, just had to adjust hostname settings using either A Records and CNAME since both blog and html site are running on different IP addresses.

So, created one new Droplet on which I installed Ghost using DigitalOcean application (Ubuntu 12.04) and then I tried to install apache but I got the following message “(98)Address already in use: make_soc: could not bind to address 0.0.0.0:80”. Opened up FileZilla, changed the port to 8080 and site root location as well as sites-available and sites-enabled, but I still get 404 error whenever I try to open my html site using IP address/index.html.

In my www directory there is currently two directories, “ghost” and “site”. What am I doing wrong?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi, <br>I have a tutorial, I’m using it on my droplet for running some Ghost blogs. <br>http://www.tfq.me/how-to-host-multiple-ghost-blogs-on-ubuntu-12-04-using-apache/

You want to run ghost on apache? Here some guide, not test it yet. I hope it help. <br> <br>http://blog.0x1a.us/installing-ghost-using-apache/

Oh… im sorry, thats command for Debian/Ubuntu platform to check whats program runing on port : 80. “Apache Default virtual box” i mean virtualhost. Dont forget to check your apache “port.conf” it’s run NameServer *:80? To understand linux, first understand what you want to do with your server, understand how to use the application one by one. If you want to use the instant application, use the facilities provided by the provider. <br> <br>When i read from your post you want to run GHOST at your sub domain “blog.domain.com”, and not yor main doman “domain.com” Did you change or create new virtual host: <br> <br>ServerName blog.domain.com ==> for ghost bloging run at sub domain <br> <br>and set up new virtual host <br> <br>ServerName domain.com ==> for your html web run at main domain <br> <br>===“So, created one new Droplet on which I installed Ghost using DigitalOcean application (Ubuntu 12.04) and then I tried to install apache but I got the following message “(98)Address already in use: make_soc: could not bind to address 0.0.0.0:80”.”" <br> <br>Why you install apache? Did you realy read how to set up virtual host on nginx? (If you us NGINX). <br> <br>Ghost forum? <br>https://ghost.org/forum/