Installing Ghost

Ghost is a popular content management system for blogs and other online publications. Opalstack provides a simple installer that creates a very basic Node.js web application.

1

Create a shell user if you have not done so already. You can use an existing shell user if you wish.

2

Click on Applications in the control panel sidebar.

3

Click the button labeled "+ Add Application" in the upper-left corner of the content area.

4

Select Ghost as the application type.

5

Enter a name for your application in the Name field.

This name will be used to create a subdirectory in your shell user's apps directory such as /home/username/apps/appname.

6

Select the shell user that will host the application.

If you have multiple servers, be sure to select the shell user that is located on the server from which you intend to serve your site.

7

Click the "Add Application" button to save your new application.

8

A notification will appear in the control panel when the application is ready. This may take a minute or longer.

When the installation is complete, the following files and directories will be present in the application directory:

  • start and stop scripts to control the operation of your application.
  • ghost: a directory containing your Ghost instance
  • node_modules: a directory containing the core Ghost software
  • README: basic info regarding the new application.

Post-Install Steps - IMPORTANT!

1

Assign your Ghost application to a Site Route in your control panel and make a note of the site URL.

2

SSH to the server as your app's shell user and run the following commands to configure the site URL, replacing https://domain/com with your site URL and myapp with your Ghost app's name:

cd ~/apps/myapp/ghost
~/apps/myapp/node_modules/.bin/ghost config url https://domain.com
~/apps/myapp/node_modules/.bin/ghost restart
3

Immediately visit your Ghost admin URL (for example https://domain.com/ghost/) to set up your initial admin user.