{"id":18379,"date":"2016-01-15T04:04:27","date_gmt":"2016-01-15T10:04:27","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18379"},"modified":"2022-06-03T03:43:53","modified_gmt":"2022-06-03T08:43:53","slug":"how-to-install-cody-cms-on-an-ubuntu-14-04-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-cody-cms-on-an-ubuntu-14-04-vps\/","title":{"rendered":"How to install Cody CMS on Ubuntu 14.04"},"content":{"rendered":"
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 VPS<\/a> <\/strong>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.<\/p>\n Log in to your Ubuntu server via SSH as user root<\/p>\n First of all upgrade all installed packages on your server<\/p>\n Install the latest Node.js package and the npm package manager from the official Ubuntu repository.<\/p>\n Cody needs a clean MySQL database, so we will install MySQL server.<\/p>\n Run the MySQL post-installation script Next, create a new directory for Cody CMS and change your current working directory<\/p>\n Install Cody CMS and all its dependencies using the npm package manager.<\/p>\n Run the following command to create a new website<\/p>\n Don’t forget to replace all parameters such as the MySQL root and user passwords, the hostname, etc… with the actual ones.<\/p>\n Install Forever, to keep the node.js server up even if we log out<\/p>\n And start the node.js server by execute the following command<\/p>\n 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 Fore more information about how to configure and use Cody CMS please check their official documentation.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Cody CMS<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> 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.<\/p>\n","protected":false},"excerpt":{"rendered":" Cody CMS is an open source, Content Management System (CMS) running on the modern and fast Node.js web server. It … <\/p>\nssh root@server_ip<\/pre>\n
apt-get update && sudo apt-get -y upgrade<\/pre>\n
apt-get install nodejs npm\r\nln -s \"$(which nodejs)\" \/usr\/bin\/node<\/pre>\n
apt-get install mysql-server mysql-client<\/pre>\n
mysql_secure_installation<\/code> in order to set the MySQL root user password and secure the server<\/p>\n
You already have a root password set, so you can safely answer 'n'.\r\nChange the root password? [Y\/n] n\r\nRemove anonymous users? [Y\/n]\r\nRemove test database and access to it? [Y\/n]\r\nReload privilege tables now? [Y\/n]<\/pre>\n
mkdir \/opt\/cody\r\ncd \/opt\/cody<\/pre>\n
npm install cody<\/pre>\n
nodejs .\/node_modules\/cody\/bin\/create_site.js\r\n\r\n1) Enter projectname: MyWebsite\r\n2) Enter root password for mysql so we can create a new database and user: Your_Password\r\n3) Enter site database user: cody\r\n4) Enter site database password: DB_password\r\n5) Enter hostname for site: hostname.com\r\n6) Enter a location for storing documents: \/opt\/cody\/data\/<\/pre>\n
npm install forever --global<\/pre>\n
forever start test.js<\/pre>\n
http:\/\/hostname.com:3001\/<\/code> . Cody CMS dashboard is available at
http:\/\/hostname.com:3001\/en\/dashboard<\/code> . 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<\/code><\/p>\n