How to install Cody CMS on Ubuntu 14.04

Cody CMS is an open source, Content Management System (CMS) running on the modern and fast Node.js web server. It is written in te JavaScript programming languagae and it makes Cody CMS very interesting for the web masters and web developers. With Cody CMS you can easily create your own website and web applications. In this article we will guide you through the steps of installing Cody CMS on an Ubuntu 14.04 VPSwith Node.js, Forever and MySQL. This guide should work on other Linux VPS systems as well but was tested and written for an Ubuntu 14.04 VPS.

Log in to your Ubuntu server via SSH as user root

ssh root@server_ip

First of all upgrade all installed packages on your server

apt-get update && sudo apt-get -y upgrade

Install the latest Node.js package and the npm package manager from the official Ubuntu repository.

apt-get install nodejs npm
ln -s "$(which nodejs)" /usr/bin/node

Cody needs a clean MySQL database, so we will install MySQL server.

apt-get install mysql-server mysql-client

Run the MySQL post-installation script mysql_secure_installation in order to set the MySQL root user password and secure the server

Don’t forget to replace all parameters such as the MySQL root and user passwords, the hostname, etc… with the actual ones.

Install Forever, to keep the node.js server up even if we log out

npm install forever --global

And start the node.js server by execute the following command

forever start test.js

That’s all. Cody CMS is installed and running on your Ubuntu VPS. if you closely followed up the steps, you will be able to access your Cody website at http://hostname.com:3001/ . Cody CMS dashboard is available at http://hostname.com:3001/en/dashboard . Here you can manage your users, create new pages, upload images and files, etc… The login page is available at http://hostname.com:3001/login

Fore more information about how to configure and use Cody CMS please check their official documentation.

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 install Cody CMS 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.