Question

How to run Apache & Ghost running on same Droplet?

  • Posted November 17, 2013

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?

Subscribe
Share

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.

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/

Did you set point proxy port correctly? <br> <br>Ghost apps port at localhost : http://127.0.0.1:2368 <br>Don’t set to your apache port : http://127.0.0.1:8080 <br> <br>If you run NGINX as frontend proxy for your web server listening ON GHOST. If Port Still it says that port 80 is not available, you can check what is runing on your port 80, may be your Apache default virtual box still runing on port 80. You can check that port with command: <br> <br>sudo netstat -ntlp | grep :80

Honestly, gave up on the idea because every tutorial I tried I got some kind of error and couldn’t proceed. Tutorials are newb friendly, but when you get to the point where you get some kind of error it’s just complicated and since I’m no Linux expert it’s no use :) Googled it and googled it and couldn’t get it to work. Going to lay off it for a few days and get back to it so if I do get it do work I’ll let you guys know. Thanks for the help.

Have you read <a href=“https://www.digitalocean.com/community/articles/how-to-serve-multiple-ghost-blogs-on-one-vps-using-nginx-server-blocks”>How To Serve Multiple Ghost Blogs on One VPS Using Nginx Server Blocks</a>?

Yes, of course. Still it says that port 80 is not available.

Have you checked out <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts”>How To Set Up Apache Virtual Hosts on Ubuntu 12.04 LTS</a>?