If you are reading this article, it is likely that you are looking to run more than one Ghost blog on your server and you have not found a tutorial that shows exactly how to get this done in a few simple steps.
Disclaimer: I am a total Linux n00b and new to Ghost. That said, if I could get this working, then hopefully so can you.
I have not tried this with any other service provider yet, though DigitalOcean was by far the easiest way to get my blog up and running.
The short version:
- Create a new folder and navigate to it.
- Create a new MySQL database and user.
- Run the ghost install command and follow the prompts.
- Point your domain to the new Ghost installation.
First Setup Your DigitalOcean Ghost Blog
If you do not have a Ghost instance running yet, click here to set one up over at DigitalOcean by using the following guide Ghost One-Click Application. Make sure you can log into your ghost instance via SSH.
Install Your Second Ghost blog
For the process below to work, you need to know your MySQL root username and password. If you do not have it, you will have to manually create a MySQL username and password. The default MySQL root username that is created with the DigitalOcean One-click installer has a blank password. Sign in as root, create a new database and a new user, assign the user to the database.
You can use the following guide if you do not know how:
Now, installing the second Ghost instance. The default Ghost installation is at /var/www/ghost. To add a second instance, create a new folder and assign the necessary permissions, followed by installing Ghost using the CLI (make sure to use a different folder name and not the default ghost folder, my second Ghost blog is installed at /var/www/ghost2):
The ghost install command will run through a series of questions. Follow the following prompts:
Now all you need to do is make sure you have a domain or sub-domain to point to the server's IP.
I hope that this helps. I had to try and put two and two together and for someone who ain't too savvy with Linux and Ghost, I was pleasantly surprised when I got this working.