How To Install Directus CMS 6.4.4 v On Centos 7.5
- 00:55 cat /etc/centos-release
- 01:08 yum install httpd mariadb-server -y
- 01:22 systemctl enable httpd mariadb
- 01:30 systemctl start httpd mariadb
- 02:02 mysql_secure_installation
- 02:36 mysql -u root -p
- 03:02 create database directus;
- 03:23 create user user@localhost identified by 'linuxc';
- 03:38 grant all on directus.* to user@localhost;
- 03:54 flush privileges;
- 04:15 yum install epel-release yum-utils -y
- 04:26 wget https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
- 04:41 rpm -Uvh webtatic-release.rpm
- 04:52 wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
- 05:03 rpm -Uvh remi-release 7.rpm
- 05:23 yum-config-manager --enable remi-php71
- 05:34 yum install php php-gd php-pdo php-mysql php-simplexml php-mbstring php-mcrypt
- 05:47 yum install php-pecl-zip -y
- 06:04 curl -sS https://getcomposer.org/installer | php
- 06:34 wget https://github.com/directus/directus/releases/download/6.4.4/directus-build-6.4.4-20171120114156.zip
- 06:52 unzip directus-build-6.4.4-20171120114156.zip -d directus
- 07:26 chown -R apache. /var/www/directus/
- 07:35 chmod -R 775 /var/www/directus/
- 07:37 v composer.phar /usr/local/bin/composer
- 08:00 composer install
- 08:24 vim /etc/httpd/conf.d/directus.conf
Installation Of Directus CMS 6.4.4v On CentOS 7.5
Requirements:
Apache 2.2+
PHP 7.1+
MariaDB 5.5
Check the version of centos .
[ root@linuxhelp ~]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
Install the Apache And MariaDB servers
[root@linuxhelp ~]# yum install httpd mariadb-server -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* extras: mirror.nbrc.ac.in
* updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-88.el7.centos will be installed
--> Processing Dependency: httpd-tools = 2.4.6-88.el7.centos for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
---> Package mariadb-server.x86_64 1:5.5.60-1.el7_5 will be installed
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64
--> Processing Dependency: mariadb(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64
.
.
.
.
.
.
Installed:
httpd.x86_64 0:2.4.6-88.el7.centos mariadb-server.x86_64 1:5.5.60-1.el7_5
Dependency Installed:
apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7 httpd-tools.x86_64 0:2.4.6-88.el7.centos mailcap.noarch 0:2.1.41-2.el7
mariadb.x86_64 1:5.5.60-1.el7_5 perl-DBD-MySQL.x86_64 0:4.023-6.el7
Dependency Updated:
mariadb-libs.x86_64 1:5.5.60-1.el7_5
Complete!
Enable and Start the service Of Apache And MAriaDB
[root@linuxhelp ~]# systemctl enable httpd mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@linuxhelp ~]# systemctl start httpd mariadb
Check the Status OF Apache And MAriaDb server
[root@linuxhelp ~]# systemctl status httpd mariadb
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2019-03-30 16:04:07 IST; 15s ago
mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2019-03-30 16:04:10 IST; 11s ago
Secure The MAraDb Installation by executing the following command
[root@linuxhelp ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
Log in to the database and configure the Directus Database
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
3 rows in set (0.00 sec)
MariaDB [(none)]> create database directus;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> use directus;
Database changed
MariaDB [directus]> create user user@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.01 sec)
MariaDB [directus]> grant all on directus.* to user@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [directus]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [directus]> exit
Bye
Install the epel-release repository
[root@linuxhelp ~]# yum install epel-release yum-utils -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* extras: mirror.nbrc.ac.in
* updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
.
.
.
.
Installed:
epel-release.noarch 0:7-11
Updated:
yum-utils.noarch 0:1.1.31-50.el7
Complete!
DownLoad and Install the Webtatic repository
[root@linuxhelp ~]# wget https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
--2019-03-30 16:15:48-- https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Resolving mirror.webtatic.com (mirror.webtatic.com)... 46.101.64.32
Connecting to mirror.webtatic.co
m (mirror.webtatic.com)|46.101.64.32|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13152 (13K) [application/x-redhat-package-manager]
Saving to: ‘webtatic-release.rpm’
100%[===================================================================================================>] 13,152 --.-K/s in 0s
2019-03-30 16:15:48 (261 MB/s) - ‘webtatic-release.rpm’ saved [13152/13152]
[root@linuxhelp ~]# rpm -Uvh webtatic-release.rpm
warning: webtatic-release.rpm: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:webtatic-release-7-3 ################################# [100%]
Install and Download the Remi-release and enable the remi repository with php72 version
[root@linuxhelp ~]# wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
--2019-03-30 16:16:36-- http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Resolving rpms.remirepo.net (rpms.remirepo.net)... 195.154.241.117, 2001:bc8:33a1:100::1
Connecting to rpms.remirepo.net (rpms.remirepo.net)|195.154.241.117|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16004 (16K) [application/x-rpm]
Saving to: ‘remi-release-7.rpm’
100%[===================================================================================================>] 16,004 --.-K/s in 0s
2019-03-30 16:16:37 (189 MB/s) - ‘remi-release-7.rpm’ saved [16004/16004]
[root@linuxhelp ~]# rpm -Uvh remi-release-7.rpm
warning: remi-release-7.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:remi-release-7.6-2.el7.remi ################################# [100%]
[root@linuxhelp ~]# yum-config-manager --enable remi-php72
Loaded plugins: fastestmirror, langpacks
============================================================= repo: remi-php72 ==============================================================
[remi-php72]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/7/remi-php72
check_config_file_age = True
.
.
.
.
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
ui_id = remi-php72
ui_repoid_vars = releasever,
basearch
username =
Download and install the composer
[root@linuxhelp ~]# curl –sS https://getcomposer.org/installer |php
Install the PHP Modules To access the directus database
[root@linuxhelp ~]# yum install php php-gd php-pdo php-mysql php-simplexml php-mbstring php-mcrypt
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 6.6 kB 00:00:00
* base: centos.excellmedia.net
* epel: ftp.jaist.ac.jp
* extras: centos.excellmedia.net
* remi-php72: mirror.reconn.ru
* remi-safe: mirror.reconn.ru
* updates: centos.excellmedia.net
* webtatic: uk.repo.webtatic.com
epel | 4.7 kB 00:00:00
remi-php72 | 3.0 kB 00:00:00
remi-safe | 3.0 kB 00:00:00
webtatic | 3.6 kB 00:00:00
(1/7): epel/x86_64/group_gz | 88 kB 00:00:00
(2/7): epel/x86_64/updateinfo | 1.0 MB 00:00:03
.
.
.
.
.
.
Installed:
php.x86_64 0:7.2.16-1.el7.remi php-gd.x86_64 0:7.2.16-1.el7.remi php-mbstring.x86_64 0:7.2.16-1.el7.remi
php-mysqlnd.x86_64 0:7.2.16-1.el7.remi php-pdo.x86_64 0:7.2.16-1.el7.remi php-pecl-mcrypt.x86_64 0:1.0.2-2.el7.remi.7.2
php-xml.x86_64 0:7.2.16-1.el7.remi
Dependency Installed:
gd-last.x86_64 0:2.2.5-8.el7.remi libargon2.x86_64 0:20161029-2.el7 libmcrypt.x86_64 0:2.5.8-13.el7
libwebp7.x86_64 0:1.0.2-1.el7.remi php-cli.x86_64 0:7.2.16-1.el7.remi php-common.x86_64 0:7.2.16-1.el7.remi
php-json.x86_64 0:7.2.16-1.el7.remi
Extract the files by unzipping the downloaded file.
[root@linuxhelp www]# unzip directus-build-6.4.4-20171120114156.zip -d directus
Archive: directus-build-6.4.4-20171120114156.zip
creating: directus/api/
creating: directus/app/
creating: directus/assets/
creating: directus/bin/
inflating: directus/composer.json
inflating: directus/composer.lock
creating: directus/customs/
inflating: directus/index.php
creating: directus/installation/
inflating: directus/login.php
inflating: directus/readme.md
creating: directus/thumbnail/
creating: directus/templates/
.
.
.
.
. inflating: directus/vendor/twig/twig/.travis.yml
creating: directus/vendor/zendframework/zend-db/.ci/
inflating: directus/vendor/zendframework/zend-db/.coveralls.yml
inflating: directus/vendor/zendframework/zend-db/.php_cs
inflating: directus/vendor/zendframework/zend-db/.travis.yml
inflating: directus/vendor/cache/cache/src/TagInterop/.travis.yml
Assign owner permissions and writable permissions to the root folder of directus database
[root@linuxhelp directus]# chown -R apache. /var/www/directus/
[root@linuxhelp directus]# chmod -R 775 /var/www/directus/
Rename the installed composer file in the root directory in the /usr/local/bin/location with composer
root@linuxhelp ~]# mv composer.phar /usr/local/bin/composer
Install the composer inside the directus root folder
[root@linuxhelp directus]# composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 9 installs, 0 updates, 0 removals
- Installing league/oauth2-github (2.0.0): Downloading (100%)
- Installing phpunit/php-token-stream (1.2.2): Downloading (100%)
- Installing symfony/yaml (v2.8.31): Downloading (100%)
- Installing phpunit/php-text-template (1.2.1): Downloading (100%)
- Installing phpunit/phpunit-mock-objects (1.2.3): Downloading (100%)
- Installing phpunit/php-timer (1.0.9): Downloading (100%)
- Installing phpunit/php-file-iterator (1.4.2): Downloading (100%)
- Installing phpunit/php-code-coverage (1.2.18): Downloading (100%)
- Installing phpunit/phpunit (3.7.38): Downloading (100%)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.0.5)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Generating autoload files
Create the customised Configuration file for directus database
[root@linuxhelp directus]# vim /etc/httpd/conf.d/directus.conf
<virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/directus/
<Directory /var/www/directus/>
Allowoverride all
Allow from all
</Directory>
</VirtualHost>
Test and restart the service of HTTPD:
[root@linuxhelp ~]#httpd –t
[root@linuxhelp ~]# systemctl restart httpd
Open the Browser and enter the servername that we set in the configuration file and choose English as a language by clicking next.
Enroll the admin credentials and configured database details.Log in the credentials that you have enrolled .Thus we have successfully installed the Directus CMS on Centos 7.5
With this the Installation of Directus CMS 6.4.4v Comes to end On CentOS 7.5
Comments ( 0 )
No comments available