How To Install Ghost On 1&1 Hosting
- Go to 1and1.com and click on Servers section.
- Select 1&1 Virtual Servers
- Select the Virtual server size you want. I selected the smallest size.
- Once you have finished checkout you will get an email with your username and password
Once you receive the email from 1&1 you can login at the 1&1 sign in page with your customer ID and the password you created during checkout
Once you are logged into the Control Panel click on Server Re-image![Install Ghost 1 and 1](/content/images/2014/Jul/1and1-Control-Panel-Server-Re-Image.png)
- Set the root password for your new operating system and select CentOS 6 minimal system (64Bit). Then click Next.
- Click Initialize to confirm settings
- 1&1 will send you an email once your VPS is setup and then you can log back into the 1&1 Control Panel and click on server Access Data.
- On the Server Data page, note the password under the Initial Password (this is not your 1&1 account password but the password you created for the root account in CentOS) and grab the Server name from the Technical Data section. Now you can
sshinto your server with the following command:
ssh root@[1&1 provided server host name]
- Update the CentOS operating system
su -c "yum update"
- Next disable Apache
chkconfig --level 12345 httpd off
- Download and install CentOS Development Tools
yum groupinstall "Development Tools"
- Now download and install node.js
curl -sL https://rpm.nodesource.com/setup | bash - yum install -y nodejs
- Download and install Ghost
cd /var/www/ curl -L -O https://ghost.org/zip/ghost-latest.zip unzip -d ghost [Name-of-Ghost-zip].zip
cd ghost/ npm install --production cp config.example.js config.js sudo vi config.js
- In your 1&1 Control Panel under Server Data grab the IP address and change all occurrences of the following:
host: '[the IP you were provided]',
- Create Ghost User
useradd ghost chown -R ghost:ghost /var/www/ghost/
- Switch to Ghost User
su - ghost cd /var/www/ghost/
- Start Ghost
npm start --production
Proxy from Port 80 and Keep Ghost Running
There you have it, Node.js is installed, Ghost files are located in
/var/www/ghost, and Ghost has been started. You can keep Ghost the way it is if you do not mind adding :2368 to the end of your url, but we would highly recommend you check out the following two articles to help get your Ghost blog fully ready: