How to Install Elxis CMS on CentOS 8
How to Install Elxis CMS on CentOS 8
Elxis is a free Content Management System (CMS) that allows you to easily create websites be it your personal website, blogs or even complex corporate websites and portals without prior knowledge in programming. This Tutorial covers the installation of Elxis CMS on CentOS 8.
Installation Process:
Check the CentOS version by using command
[root@linuxhelp ~]# rpm -q centos-release
centos-release-8.1-1.1911.0.8.el8.x86_64
I have been already download the Elxis CMS
[root@linuxhelp ~]# ls -la
total 11356
dr-xr-x---. 16 root root 4096 Aug 26 13:57 .
dr-xr-xr-x. 18 root root 4096 Aug 19 10:47 ..
-rw-------. 1 root root 1628 Aug 19 10:37 anaconda-ks.cfg
-rw-------. 1 root root 211 Aug 19 10:47 .bash_history
-rw-r--r--. 1 root root 18 May 11 2019 .bash_logout
-rw-r--r--. 1 root root 176 May 11 2019 .bash_profile
-rw-r--r--. 1 root root 176 May 11 2019 .bashrc
drwx------. 11 root root 4096 Aug 26 13:50 .cache
drwx------. 12 root root 4096 Aug 26 13:56 .config
-rw-r--r--. 1 root root 100 May 11 2019 .cshrc
drwx------. 3 root root 4096 Aug 19 10:38 .dbus
drwxr-xr-x. 2 root root 4096 Aug 19 10:39 Desktop
drwxr-xr-x. 2 root root 4096 Aug 19 10:39 Documents
drwxr-xr-x. 2 root root 4096 Aug 26 13:57 Downloads
-rw-r--r-- 1 root root 11515093 Aug 26 13:56 elxis_5.1_cronus_rev2352.zip
-rw-------. 1 root root 16 Aug 19 10:39 .esd_auth
-rw-------. 1 root root 620 Aug 19 10:58 .ICEauthority
-rw-r--r--. 1 root root 1783 Aug 19 10:39 initial-setup-ks.cfg
drwx------. 3 root root 4096 Aug 19 10:39 .local
drwx------ 5 root root 4096 Aug 26 13:50 .mozilla
drwxr-xr-x. 2 root root 4096 Aug 19 10:39 Music
drwxr-xr-x. 2 root root 4096 Aug 19 10:39 Pictures
drwxr-----. 3 root root 4096 Aug 19 10:39 .pki
drwxr-xr-x. 2 root root 4096 Aug 19 10:39 Public
-rw-r--r--. 1 root root 129 May 11 2019 .tcshrc
drwxr-xr-x. 2 root root 4096 Aug 19 10:39 Templates
drwxr-xr-x. 2 root root 4096 Aug 19 10:39 Videos
-rw-------. 1 root root 873 Aug 19 10:43 .viminfo
Extract the downloaded file by using the following command
[root@linuxhelp ~]# unzip elxis_5.1_cronus_rev2352.zip -d elxis
Archive: elxis_5.1_cronus_rev2352.zip
creating: elxis/components/
creating: elxis/components/com_content/
inflating: elxis/components/com_content/content.article.xml
inflating: elxis/components/com_content/content.category.xml
inflating: elxis/components/com_content/content.menu.xml
inflating: elxis/components/com_content/content.php
inflating: elxis/components/com_content/content.xml
creating: elxis/components/com_content/controllers/
inflating: elxis/components/com_content/controllers/aarticle.php
inflating: elxis/components/com_content/controllers/acategory.php
inflating: elxis/components/com_content/controllers/afpage.php
.
.
.
inflating: elxis/templates/system/images/nopicture.png
inflating: elxis/templates/system/images/nopicture_article.jpg
inflating: elxis/templates/system/images/print.png
inflating: elxis/templates/system/inner.php
inflating: elxis/templates/system/offline.php
inflating: elxis/templates/system/security.php
Move the Elxis CMS to apache root directory
[root@linuxhelp ~]# mv elxis /var/www/
Set the ownership for elxis cms
[root@linuxhelp ~]# chown -R apache:apache /var/www/elxis
Set the permission for anchor cms
[root@linuxhelp ~]# chmod -R 755 /var/www/elxis
Configure the virtualhost for elxis cms
[root@linuxhelp ~]# vim /etc/httpd/conf.d/elxis.conf
<virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/elxis
<directory /var/www/elxis>
allowoverride all
allow from all
</directory>
</virtualhost>
Create a database for Elxis CMS
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 10.3.17-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)]> create database elxis_db;
Query OK, 1 row affected (0.002 sec)
MariaDB [(none)]> create user 'elxis_user' @localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.028 sec)
MariaDB [(none)]> grant all privileges on elxis_db.* to 'elxis_user'@localhost;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> exit
Bye
Restart the apache service
[root@linuxhelp ~]# systemctl restart httpd
Go to the browser and enter the domain name
vim /etc/hosts