How to install Cody CMS on Ubuntu 14.04

codyCody 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 VPS with 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

You already have a root password set, so you can safely answer 'n'.
Change the root password? [Y/n] n
Remove anonymous users? [Y/n]
Remove test database and access to it? [Y/n]
Reload privilege tables now? [Y/n]

Next, create a new directory for Cody CMS and change your current working directory

mkdir /opt/cody
cd /opt/cody

Install Cody CMS and all its dependencies using the npm package manager.

npm install cody

Run the following command to create a new website

nodejs ./node_modules/cody/bin/create_site.js

1) Enter projectname: MyWebsite
2) Enter root password for mysql so we can create a new database and user: Your_Password
3) Enter site database user: cody
4) Enter site database password: DB_password
5) Enter hostname for site:
6) Enter a location for storing documents: /opt/cody/data/

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 . Cody CMS dashboard is available at . Here you can manage your users, create new pages, upload images and files, etc… The login page is available at

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.

Install Vanilla Forums on Debian Squeeze with Nginx
Install KeystoneJS on an Ubuntu 14.04
How to Install SugarCRM Community Edition on an Ubuntu 14.04 VPS
There are currently no comments.