How to Install Directus CMS 6.6v on Ubuntu 18.10
Installation Of Directus CMS 7v On Ubuntu 18.10
Requirements:
Apache 2.2+
PHP 7.1+
MariaDB 5.5
PHP Modules:
php php-gd php-curl php-mbstring php-zip php-mcrypt
Download Link
click here to download Directus CMS
Change the directory to Apache’s Document root directory
root@linuxhelp:~# cd /var/www
Create a directory for directus cms
root@linuxhelp:/var/www# mkdir d
Change the directory to d to install directus cms
root@linuxhelp:/var/www# cd d
Download the Directus CMS by executing the following command
root@linuxhelp:/var/www/d# wget https://github.com/directus/directus/archive/master.zip
--2019-04-23 01:26:17-- https://github.com/directus/directus/archive/master.zip
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/directus/directus/zip/master [following]
--2019-04-23 01:26:18-- https://codeload.github.com/directus/directus/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’
master.zip [ <=> ] 9.77M 767KB/s in 12s
2019-04-23 01:26:31 (841 KB/s) - ‘master.zip’ saved [10247113]
List the contents to view the downloaded file of Directus CMS
root@linuxhelp:/var/www/d# ll
total 10016
drwxr-xr-x 2 root root 4096 Apr 23 01:26 ./
drwxr-xr-x 4 root root 4096 Apr 23 01:25 ../
-rw-r--r-- 1 root root 10247113 Apr 23 01:26 master.zip
Extract the zip file of Directus CMS using unzip.
root@linuxhelp:/var/www/d# unzip master.zip
Archive: master.zip
d364658a3afff693c41f258c88b8079db9914b40
creating: directus-master/
creating: directus-master/.github/
creating: directus-master/.github/ISSUE_TEMPLATE/
inflating: directus-master/.github/ISSUE_TEMPLATE/Bug_report.md
inflating: directus-master/.github/ISSUE_TEMPLATE/Feature_request.md
.
.
.
.
.
inflating: directus-master/vendor/zendframework/zend-stdlib/src/StringWrapper/AbstractStringWrapper.php
inflating: directus-master/vendor/zendframework/zend-stdlib/src/StringWrapper/Iconv.php
inflating: directus-master/vendor/zendframework/zend-stdlib/src/StringWrapper/Intl.php
inflating: directus-master/vendor/zendframework/zend-stdlib/src/StringWrapper/MbString.php
inflating: directus-master/vendor/zendframework/zend-stdlib/src/StringWrapper/Native.php
inflating: directus-master/vendor/zendframework/zend-stdlib/src/StringWrapper/StringWrapperInterface.php
finishing deferred symbolic links:
directus-master/vendor/bin/phinx -> ../robmorgan/phinx/bin/phinx
directus-master/vendor/bin/phpunit -> ../phpunit/phpunit/phpunit
List the contents to view the extracted files and folders that had created during extraction
root@linuxhelp:/var/www/d# ll
total 10020
drwxr-xr-x 3 root root 4096 Apr 23 01:26 ./
drwxr-xr-x 4 root root 4096 Apr 23 01:25 ../
drwxr-xr-x 10 root root 4096 Apr 22 14:27 directus-master/
-rw-r--r-- 1 root root 10247113 Apr 23 01:26 master.zip
Rename the new directory that has created during extraction
root@linuxhelp:/var/www/d# mv directus-master/ final
change the directory to final
root@linuxhelp:/var/www/d# cd final
List the contents in the final directory
root@linuxhelp:/var/www/d/final# ll
total 96
drwxr-xr-x 10 root root 4096 Apr 22 14:27 ./
drwxr-xr-x 3 root root 4096 Apr 23 01:27 ../
drwxr-xr-x 2 root root 4096 Apr 22 14:27 bin/
-rw-r--r-- 1 root root 1935 Apr 22 14:27 composer.json
drwxr-xr-x 2 root root 4096 Apr 22 14:27 config/
drwxr-xr-x 3 root root 4096 Apr 22 14:27 .github/
-rw-r--r-- 1 root root 910 Apr 22 14:27 .gitignore
-rw-r--r-- 1 root root 35662 Apr 22 14:27 LICENSE.md
drwxr-xr-x 2 root root 4096 Apr 22 14:27 logs/
drwxr-xr-x 4 root root 4096 Apr 22 14:27 migrations/
drwxr-xr-x 6 root root 4096 Apr 22 14:27 public/
-rw-r--r-- 1 root root 10892 Apr 22 14:27 README.md
drwxr-xr-x 7 root root 4096 Apr 22 14:27 src/
drwxr-xr-x 33 root root 4096 Apr 22 14:27 vendor/
Assign ownership permissions to the final directory
root@linuxhelp:/var/www/d/final# chown -R www-data. ./
Assign Writable permissions to the final directory
root@linuxhelp:/var/www/d/final# chmod -R 775 ./
Create a customised configuration file for Directus CMS
root@linuxhelp:/var/www/d/final# vim /etc/apache2/sites-available/d.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/d/final/public/
<directory /var/www/d/final/>
allowoverride all
allow from all
</directory>
</virtualhost>
Disable the access to all the default sites.
root@linuxhelp:/var/www/d/final# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the site access to d.conf
root@linuxhelp:/var/www/d/final# a2ensite d.conf
Enabling site d.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the rewrite module
root@linuxhelp:/var/www/d/final# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Restart the service of Apache.
root@linuxhelp:/var/www/d/final# systemctl restart apache2
Log in to the MariaDB database using root password and configure the database for directus CMS
root@linuxhelp:/var/www/d/final# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 55
Server version: 10.1.29-MariaDB-6ubuntu2 Ubuntu 18.10
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database d character set utf8mb4;
Query OK, 1 row affected (0.05 sec)
MariaDB [(none)]> use d;
Database changed
MariaDB [d]> create user user@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.02 sec)
MariaDB [d]> grant all on d.* to user@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [d]> flush privileges;
Query OK, 0 rows affected (0.02 sec)
MariaDB [d]> exit
Bye
Open the Browser and enter the servername that we set in the configuration file and choose English as a language by clicking next.
Enter the admin credentials
Dashboard of directus CMS gets opened
Therefore ,installation of Directus CMS on Ubuntu 18.10 comes to end.
Interfaces
Layouts
Pages
Hooks
Custom Endpoints
Storage Adapter
Auth Providers
DateType
RegEx