In this tutorial, we will explain how to install Publify on an Ubuntu 14.04 VPS with MariaDB, Puma and Nginx. Publify is a simple but full featured open source web publishing software. Publify is built on Ruby on Rails framework and it is the oldest Rails open source project alive. This guide should work on other Linux VPS systems as well but was tested and written for Ubuntu 14.04 VPS.
When the installation is complete, run the following command to secure your installation:
[user]# sudo mysql_secure_installation
Next, we need to create a database for our Publify installation:
[user]# mysql -uroot -p
MariaDB [(none)]> CREATE DATABASE publify CHARACTER SET utf8;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON publify.* TO 'publify'@'localhost' IDENTIFIED BY 'publify_passwd';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q
description "Puma Publify Service"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
setuid publify
setgid publify
respawn
respawn limit 3 30
script
exec /bin/bash << EOT
source /opt/publify/.rvm/scripts/rvm
cd /opt/publify/publify
exec puma -C config/puma.rb
EOT
end script
You can now start your Publify service with :
[publify]# sudo service publify start
Install and Configure Nginx
The latest version of Nginx 1.8 is not available via the default Ubuntu repositories, so we will add the “nginx/stable” PPA, update the system and install the nginx package.
That’s it. You have successfully installed Publify on your Ubuntu VPS. For more information about Publify, please refer to the Publify website.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to setup this 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.