How to Install Ghost on Media Temple DV Server

  • To learn more about Ghost, visit
  • Assume you have already added your domain ( to Plesk. If not, please follow the instructions to do so.
  • To get started, connect to your server via SSH as the root user.
  • My server info:
> cat /etc/redhat-release
CentOS release 6.6 (Final)  
> python -V
Python 2.6.6  

1. Install Nodejs

1a. Install development tools and screen package

> yum groupinstall "Development Tools"
> yum install screen

1b. Download Nodejs

> cd /opt
> wget

1c. Extract Nodejs

> tar xzf node-v0.10.36.tar.gz
> cd node-v0.10.36

1d. Compile Nodejs

> ./configure

1e. Install Nodejs

> make
> make install

1f. Check Installation

> node -v

2. Install Ghost

Go to working directory

> cd /var/www/vhosts

2a. Download Ghost

> curl -L -O

2b. Extract and Config Ghost

> unzip -d
> cd
> cp config.example.js config.js
> vim config.js

In production section, edit:

url: ''  
port: '2368'  

2c. Edit Apache VirtualHost Proxy

> vim ../conf/vhost.conf

Add the following code:

ProxyPass / http://YOUR-IP-ADDRESS:2368/  
ProxyPassReverse / http://YOUR-IP-ADDRESS:2368/  

2d. Install Ghost

> npm install --production

2e. Start Ghost

> npm start --production

Go to

3. Make Ghost Run Forever

3a. Install Forever

> npm -g install forever

3b. Create the script to start Ghsot

> vim


NODE_ENV=production forever start index.js  

3c. Create the script to stop Ghost

> vim


forever stop index.js  

3d. Make the scripts executable for yourself

> chmod 750 ghostSt*

3e. Start Ghost

> ./

3f. Reconfigure Apache and Restart it

> web
> /etc/init.d/httpd restart

If the alis 'web' is not setup run the command below

> /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain
> /etc/init.d/httpd restart

Go to

Yang Zhao

Read more posts by this author.