How to install Directus CMS on Ubuntu 18.04
To install Directus CMS on Ubuntu 18.04
Directus is a free and open source headless content management system written in Backbone.js that provides a feature-rich environment for fast development and management of custom database schemas. It is used to manage the content and providing a feature-rich environment for rapid development and management of custom database schemas. In this tutorial, we will cover the installation of Directus on Ubuntu 18.04.
Prerequisites
Install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )
Php installation with required following modules
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc
php7.0-gd php7.0-mbstring php7.0 php7.0-common php7.0-xmlrpc php7.0-soap php7.0-xml php7.0-intl php7.0-cli php7.0-ldap
php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl
Installation
Download a Directus package using the following URL
https://codeload.github.com/directus/directus/zip/master
After Downloading extract the downloaded package
root@linuxhelp1:~# unzip master
Archive: master
ab5a935073324389db2e3444b5f1272753f7780f
creating: directus-master/
inflating: directus-master/.editorconfig
creating: directus-master/.github/
inflating: directus-master/.github/ISSUE\_TEMPLATE.md
inflating: directus-master/.gitignore
inflating: directus-master/.gitmodules
inflating: directus-master/.htaccess
.
.
inflating: directus-master/tests/app/objects/LLCircularSpec.js
creating: directus-master/tests/app/schema/
creating: directus-master/tests/app/schema/fixed/
inflating: directus-master/tests/app/schema/fixed/usersSpec.js
inflating: directus-master/tests/app/test-main.js
inflating: directus-master/tests/app/typetoolsSpec.js
creating: directus-master/thumbnail/
inflating: directus-master/thumbnail/.htaccess
inflating: directus-master/thumbnail/img-not-found.png
inflating: directus-master/thumbnail/index.php
Move the extracted file into the HTML directory
root@linuxhelp1:~# mv directus-master /var/www/
Navigate to the apache document root directory
root@linuxhelp1:~# cd /var/www/
Change ownership and permission of the as Directus follows
root@linuxhelp1:/var/www# chown -R www-data.www-data directus-master
root@linuxhelp1:/var/www# chmod -R 775 directus-master
Create a new virtual host configuration for accessing the Directus
root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/directus.conf
ServerName www.linuxhelp1.com
DocumentRoot /var/www/directus-master/
AllowOverride All
Allow from All
Enable site access
root@linuxhelp1:/var/www# a2ensite directus.conf
Enabling site directus.
To activate the new configuration, you need to run:
systemctl reload apache2
Disable default access
root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable rewrite module
root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Restart the apache service to make the changes effect
root@linuxhelp1:/var/www# systemctl restart apache2
Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://

Verify the compatibility for installing Directus as shown below

Execute the command as follow in Directus Document directory
apt-get install composer –y
Choose the language for using Directus as shown below

Configure the Project setup as follows

Configure the Database setup

After the configuration, you will see the following page as shown below

You can log in using the admin user credentials

After the Successful login, you will see the Admin dashboard of Directus as shown below
With this, the method to install Directus on Ubuntu 18.04 comes to an end.
Comments ( 0 )
No comments available