Cody CMS offers features that may not be available to other PHP-based CMS, like WordPress Joomla, or Drupal. Cody is written from the ground up in JavaScript and runs on top of Node.js, a platform. It comes with features that you need like SEO-friendly design, flexible CSS framework, and more. For more about Cody CMS, please check its homepage. This brief tutorial shows students and new users how to install Cody CMS on Ubuntu 16.04, 18.04, and 18.10. To get started with installing Cody CMS, please continue below:

Install Node.js

Cody CMS runs on Node.js, a javascript runtime, and framework. To install Node.js on Ubuntu from its LTS repository, run the commands below to install: After that, Node.js should be installed and ready to use as well.

Install PM2 Process Manager

Another requirement for Cody CMS is a PM2 process manager. To install the PM2 package on Ubuntu, run the commands below: After that, your system should be ready for Cody CMS.

Install MariaDB Database Server

MariaDB database server is a great place to start when looking at open-source database servers to use with Cody CMS. To install MariaDB run the commands below. After installing MariaDB, the commands below can be used to stop, start and enable the MariaDB service to always start up when the server boots. Run these on Ubuntu 16.04 LTS Run these on Ubuntu 18.04 and 18.10 LTS After that, run the commands below to secure the MariaDB server by creating a root password and disallowing remote root access. When prompted, answer the questions below by following the guide.

Enter current password for root (enter for none): Just press the Enter Set root password? [Y/n]: Y New password: Enter password Re-enter new password: Repeat password Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Remove test database and access to it? [Y/n]:  Y Reload privilege tables now? [Y/n]:  Y

Next, run the commands below to log on to the MariaDB server. When prompted for a password, use the one created above. In Ubuntu systems running MySQL 5.7 (and later) or MariaDB 10 and up, the root user is set to use the auth_socket authentication method by default. The auth_socket plugin authenticates users that connect from the local host through the Unix socket file. This means that you can’t authenticate as a root by providing a password. Run the commands below to enable the MariaDB root user to use password authentication. Restart and run the commands below to set a new password.

Install Cody CMS

To get Cody CMS, you’ll want to clone it from GitHub to your home directory. To do that run the commands below After that, change into the Raneto folder by running the commands below. Next, install NPM from the folder by running the commands below. You may get an error message like the one below. just do what was mentioned in the error message: After running the commands above, you may also get a message to resolve some vulnerabilities. If not, then you’re ready to use Cody CMS. Next, run the commands below to create Cody’s CMS database for MariaDB. When you run the commands above, you should use the guide below to configure your new site. You can start Cody CMS by running the commands below: You will now be able to access your new Cody CMS installation by navigating to http://example.com:3001. Open your browser and browse to the server hostname or IP address followed by port # 3001 To login to the backend, use the URL below: The default users are: ‘super’, ‘admin’, ‘test’, and ‘user’ which all have password ’empty’ you can of course use. Username: super Password: empty You may also like the post below: