• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Directus CMS on Ubuntu 18.04

{{postValue.id}}

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://
browser_url

Verify the compatibility for installing Directus as shown below
compitibility_check

Execute the command as follow in Directus Document directory

apt-get install composer –y

Choose the language for using Directus as shown below
choose_language

Configure the Project setup as follows
configure_project

Configure the Database setup
database_setup

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

You can log in using the admin user credentials
admin_credential

After the Successful login, you will see the Admin dashboard of Directus as shown below
admin_dashboard

With this, the method to install Directus on Ubuntu 18.04 comes to an end.

Tags:
caden
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Directus CMS?

A

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.

Q

Is Directus free software?

A

Yes, Directus is free and opensource software.

Q

Where do I get API reference of Directus CMS?

A

To get API reference of Directus CMS, visit https://docs.directus.io/api/reference.html

Q

Where do enable Authentication for API reference for Directus CMS?

A

To enable Authentication with API reference visit https://docs.directus.io/api/reference.html#authentication

Q

Where can I get stable Package for Directus CMS?

A

You can get the stable package for Directus CMS from https://codeload.github.com/directus/directus/zip/master

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.