How to Install Roadiz Modern CMS on Ubuntu 18.04


Roadiz is a modern Node-based CMS designed to handle many types of web projects and other services. Based on Symfony components and Doctrine ORM, it allows you to create your data schema and organize your content the way you want. In this brief tutorial, we will install Roadiz on a Ubuntu 18.04 using composer with Apache2, MariaDB and PHP 7.2 support.

Before get started with installing Roadiz, first you need to check the Ubuntu version.

To begin follow the steps below:

Step 1: Check the Ubuntu version

Create a new non-root user account with sudo access and switch to it.

NOTE: Replace emmaholt with your username.

Set up the timezone.

Ensure that your system is up to date.

Install needed packages.

Step 2: Install Apache2 HTTP Server on Ubuntu

Apache2HTTP Server is the most popular web server in use today and Roadiz needs a web server, so go and install it on Ubuntu.

To install Apache2 HTTP on Ubuntu server, run the commands below.

After installing Apache2, the commands below can be used to stop, start and enable Apache2 service to always start up with the server boots.

To test Apache2 setup, open your browser and browse to the server hostname or IP address and you should see Apache2 default test page as shown below.. When you see that, then Apache2 is working as expected.


Step 3: Install MariaDB Database Server

MariaDB database server is a great place to start when looking at open source database servers to use with Roadiz… To install MariaDB run the commands below.

After installing MariaDB, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots.

After that, run the commands below to secure MariaDB server by creating a root password and disallowing remote root access.

When prompted, answer the questions below by following the guide.

Restart MariaDB server.

To test if MariaDB is installed, type the commands below to logon to MariaDB server.

Then type the password you created above to sign on. If successful, you should see MariaDB welcome message.

Step 4: Install PHP 7.2 and Related Modules

PHP 7.2 may not be available in Ubuntu default repositories… in order to install it, you may have to get it from third-party repositories.

Run the commands below to add the below third party repository to upgrade to PHP 7.2

Then update and upgrade to PHP 7.2

Next, run the commands below to install PHP 7.2 and related modules.

After installing PHP 7.2, run the commands below to open PHP default config file for Apache2.

Then make the changes on the following lines below in the file and save. The value below are great settings to apply in your environments.

After making the change above, save the file and close out.

After installing PHP and related modules, all you have to do is restart Apache2 to reload PHP configurations.

To restart Apache2, run the commands below.

To test PHP 7.2 settings with Apache2, create a phpinfo.php file in Apache2 root directory by running the commands below.

Then type the content below and save the file.

Save the file.. then browse to your server hostname followed by /phpinfo.php


You should see PHP default test page like this.

Step 5: Create Roadiz Database

Now that you’ve installed all the packages that are required for Roadiz to function, continue below to start configuring the servers. First run the commands below to create a blank Roadiz database.

To logon to MariaDB database server, run the commands below.

Then create a database called roadiz

Create a database user called roadizuser with new password.

Then grant the user full access to the database.

Finally, save your changes and exit.

Next, run the commands below to open MariaDB default config file.

Then add the lines below and save.

Restart MariaDB after that.

Step 6: Download Roadiz Latest Release

To get Roadiz latest release you may want to use Github repository… Install Composer, Curl and other dependencies to get started.

After installing curl and Composer above, change into the Apache2 root directory and download Roadiz packages from Github.

Then run the commands below to set the correct permissions and give Apache2 user ownership of the directory.

Step 7: Configure Apache2

Configure Apache2 site configuration file for Roadiz. This file will control how users access Roadiz content. Run the commands below to create a new configuration file called roadiz.conf

Then copy and paste the content below into the file and save it. Replace the highlighted line with your own domain name and directory root location.

Save the file and exit.

Step 8: Enable the Roadiz and Rewrite Module

After configuring the VirtualHost above, enable it by running the commands below.

Finally, open your browser and browse to the server domain name. You should see Roadiz setup wizard to complete. Please follow the wizard carefully.

Then follow the on-screen guide and select the preffered language, verify all requirements are met, then continue with the setup.

On the next screen, type in the database name, user and password created above and continue to create a new theme file.

Save the information and continue.

Create an user account and complete the setup.

After that, Roadiz CMS should be installed and ready to use… Now Roadiz installation is completed you can remove the install.php script from Roadiz folder and access to your fresh website without it.

Logon to the backend.


That’s it. You have successfully installed Roadiz on Ubuntu 18.04.Congratulation!

Through this article, you have learned how to install Roadiz modern CMS on fresh Ubuntu 18.04 using composer with Apache2, MariaDB and PHP 7.2 support.


Leave a Reply

Your email address will not be published. Required fields are marked *