Install Octopress on a CentOS 6 VPS
This blog article will guide you through the installation of Octopress on a Centos 6 VPS
Login to your Centos 6 virtual private server as user ‘root’ and make sure that all packages are updated:
yum update yum install libyaml-devel
Install ruby version 2.1.2 with RVM. RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
curl -L get.rvm.io | bash -s stable source /etc/profile.d/rvm.sh rvm requirements rvm install 2.1.2 rvm use 2.1.2 --default ruby -v
Install GIT in the system:
yum install git
Next we need to clone the Octopress source code from github in /opt .You can change the path according to your needs.
cd /opt git clone git://github.com/imathis/octopress.git octopress
After this, we will install the dependencies:
cd octopress/ gem install bundler bundle install
Install the default theme:
If you want for Octopress to run in the background enter :
nohup rake preview &
The installation is complete. You can open your favorite web browser and navigate to http://your-domain.com:4000
Of course you don’t have to do any of this if you use one of our Linux VPS services, in which case you can simply ask our expert Linux admins to install Octopress for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.