How to install xoops cms using lamp configuration in centos 7.5

Installation of XOOPS CMS on CentOS 7.5

Installation

Let's First Check the centos version

[root@linuxhelp ~]#rpm -q centos-release
centos-release-7-5.1804.el7.centos.x86_64

And then lets start configuring LAMP setup as Shown below

[root@linuxhelp ~]#yum install httpd

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.estointernet.in
 * extras: centos.mirrors.estointernet.in
 * updates: mirrors.123host.vn
base                                                                                                                 | 3.6 kB  00:00:00     
extras                                                                                                               | 3.4 kB  00:00:00     
updates                                                                                                              | 3.4 kB  00:00:00     
updates/7/x86_64/primary_db                                                                                          | 3.2 MB  00:00:17     
Package httpd-2.4.6-88.el7.centos.x86_64 already installed and latest version
Nothing to do
[root@linuxhelp ~]# 
[root@linuxhelp ~]# yum remove httpd
.
.
.
Downloading packages:
httpd-2.4.6-88.el7.centos.x86_64.rpm                                                                                 | 2.7 MB  00:00:13     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : httpd-2.4.6-88.el7.centos.x86_64                                                                                         1/1 
  Verifying  : httpd-2.4.6-88.el7.centos.x86_64                                                                                         1/1 

Installed:
  httpd.x86_64 0:2.4.6-88.el7.centos   

Once the above process Is completed we need to start the service

[root@linuxhelp ~]# systemctl start httpd

We need to enable the service

[root@linuxhelp ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

Once the above step is completed want to install mariadb and mariadb-server

[root@linuxhelp ~]# yum install mariadb-server mariadb
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.estointernet.in
 * extras: centos.mirrors.estointernet.in
 * updates: mirrors.123host.vn
Resolving Dependencies
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.60-1.el7_5 will be installed
---> Package mariadb-server.x86_64 1:5.5.60-1.el7_5 will be installed
--> Finished Dependency Resolution
.
.
.
Verifying  : 1:mariadb-server-5.5.60-1.el7_5.x86_64                                                                                   1/2 
  Verifying  : 1:mariadb-5.5.60-1.el7_5.x86_64                                                                                          2/2 
Installed:
  mariadb.x86_64 1:5.5.60-1.el7_5                                   mariadb-server.x86_64 1:5.5.60-1.el7_5   

Once the above process Is completed we need to start the service

[root@linuxhelp ~]# systemctl start mariadb

And we need to enable the service

[root@linuxhelp ~]# systemctl enable mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

After enabling the service we need to set the root password for mysql database

[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 authorization.
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

Once it completed we need to install php7.0

For that we need to configure remi-repo configuration

[root@linuxhelp ~]#yum-config-manager --enable remi-php70
[remi-php70]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl = 
cache = 0
cachedir = /var/cache/yum/x86_64/7/remi-php70
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage = 
enabled = 1

Now we are going to install php and php modules

[root@linuxhelp ~]#yum install -y php php-cli php-common php-gd php-mbstring php-mcrypt php-mysqlnd php-xml

Then restart the apache service

[root@linuxhelp ~]# systemctl restart httpd

Once the lamp configuration is completed we are moving to xoops setup configuration

We need to download xoops installation package using wget

[root@linuxhelp ~]#wget https://excellmedia.dl.sourceforge.net/project/xoops/XOOPS%20Core%20%28stable%20releases%29/XOOPS_2.5.9/xoops-2.5.9.zip
2019-03-20 01:58:51--  https://excellmedia.dl.sourceforge.net/project/xoops/XOOPS%20Core%20%28stable%20releases%29/XOOPS_2.5.9/xoops-2.5.9.zip
Resolving excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)... 202.153.32.19
Connecting to excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)|202.153.32.19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11969510 (11M) [application/octet-stream]
Saving to: ‘xoops-2.5.9.zip’
100%[==================================================================================================>] 11,969,510   148KB/s   in 63s    
2019-03-20 01:59:56 (185 KB/s) - ‘xoops-2.5.9.zip’ saved [11969510/11969510]

After downloading the package we need to unzip it

[root@linuxhelp ~]#unzip xoops-2.5.9.zip
creating: xoops-2.5.9/
  inflating: xoops-2.5.9/.gitattributes  
  inflating: xoops-2.5.9/.gitignore  
  inflating: xoops-2.5.9/.scrutinizer.yml  
  inflating: xoops-2.5.9/checksum.md5  
  inflating: xoops-2.5.9/checksum.php  
  inflating: xoops-2.5.9/CONTRIBUTING.md  
   creating: xoops-2.5.9/docs/
  inflating: xoops-2.5.9/docs/changelog.250.txt  
  inflating: xoops-2.5.9/docs/changelog.txt  
  inflating: xoops-2.5.9/docs/fixing_permissions.txt  
  inflating: xoops-2.5.9/docs/install.html  
  inflating: xoops-2.5.9/docs/lang_diff.txt
.
.
.

inflating: xoops-2.5.9/upgrade/upd-2.4.x-to-2.5.0/index.php  
   creating: xoops-2.5.9/upgrade/upd-2.5.4-to-2.5.5/
  inflating: xoops-2.5.9/upgrade/upd-2.5.4-to-2.5.5/index.php  
   creating: xoops-2.5.9/upgrade/upd-2.5.5-to-2.5.6/
  inflating: xoops-2.5.9/upgrade/upd-2.5.5-to-2.5.6/index.php  
   creating: xoops-2.5.9/upgrade/upd-2.5.7-to-2.5.8/
  inflating: xoops-2.5.9/upgrade/upd-2.5.7-to-2.5.8/index.php  
   creating: xoops-2.5.9/upgrade/upd-2.5.8-to-2.5.9/
  inflating: xoops-2.5.9/upgrade/upd-2.5.8-to-2.5.9/index.php  
  inflating: xoops-2.5.9/upgrade/upgrade_tpl.php  

Move the extracted directory on Apache root directory and list the files in the directory.

[root@linuxhelp ~]# mv xoops-2.5.9 /var/www/xoops

Set the ownership permission for the xoops

[root@linuxhelp ~]# chown -R apache:apache /var/www/xoops

Move to htdocs and move all the files into XOOPS directory

[root@linuxhelp ~]# cd /var/www/xoops
[root@linuxhelp ~]# cd htdocs/
[root@linuxhelp ~]# mv ** ..

Open the conf.d configuration file to configure the virtual host

[root@linuxhelp ~]#  vim /etc/httpd/conf.d/xoops.conf

Now I am creating a database for the xoops

[root@linuxhelp ~]# mysql -u root –p

MariaDB [(none)]> create database xoops1;
Query OK, 1 row affected (0.03 sec)

MariaDB [(none)]> create user 'xoopsuser'@localhost identified by '12345';
Query OK, 0 rows affected (0.02 sec)

MariaDB [(none)]> grant all privileges on xoops1.* to 'xoopsuser' @localhost;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

Now I am setting host entry

[root@linuxhelp ~]# vim /etc/hosts

And finally I restarted apache and mariadb service

[root@linuxhelp ~]# systemctl restart httpd
[root@linuxhelp ~]#systemctl restart maraidb

After completing it we need to check the browser

Enter into the xoops cms configuration file

The introduction page of the XOOPS appears on the screen.

The configuration steup

Next set the XOOPS physical paths and the Web locations of the XOOPS and click next.

Enter the database connection name and the username, password for the XOOPS.

Next configure the database by entering the database name and click next.

Saving your system configuration.

Database table creation

Enter the administration account details and click next.

Saving your setting for database

Next enter the general settings of the site and meta description of the site.

Select the theme of the site and the about us pop-up window about the site. Select next option.

Now the installation of the modules protector is set and click next.

The installation is successfully done. Select the home page of your site option.

The Home page of the site is shown to the user as below.

The installation procedure of XOOPS on CentOS 7.5 is done successfully

FAQ
Q
What are the requirements of XOOPS CMS?
A
The requirments of xoops using LAMP and LEMP

<
Apache
Ngnix
maraiadb
php
Q
How to entry to the host file for XOOPS CMS?
A
Please follow the steps as below to have host file entry for XOOPS,


# vim /etc/hosts

Q
Can I configure Xoops cms in LEMP Stack?
A
Yes, xoops cms can be configured in LEMP setup also.
Q
What is xoops cms?
A
Xoops CMS is a free open source content management system written in PHP that uses Object Oriented programming and a MySQL database to store the information
Q
Whether XOOPS CMS is an open source?
A
Yes XOOPS CMS is free and open source tool.