How to Install E107 CMS V2.19 on Ubuntu 19.04

Installation of E107 cms on Ubuntu 19.04

Requirements for e107 cms:

Apache

MySQL

PHP and its modules

php php-xml php-mysql  php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear

Installation procedure

Check the version of Ubuntu prior to the installation by using the following command.

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 19.04
Release:	19.04
Codename:	disco

Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.

root@linuxhelp:~# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.26-0ubuntu0.19.04.1 (Ubuntu)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database e107;
Query OK, 1 row affected (0.02 sec)

mysql> create user 'e107user'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.09 sec)

mysql> grant all privileges on e107.* to 'e107user'@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.07 sec)

mysql> exit
Bye

Once the database configuration is done, Download the E107 CMS Installation package by using the wget command.

root@linuxhelp:~# wget http://sourceforge.net/projects/e107/files/e107/e107%20v2.1.9/e107_2.1.9_full.zip/download
--2019-05-09 13:36:39--  http://sourceforge.net/projects/e107/files/e107/e107%20v2.1.9/e107_2.1.9_full.zip/download
Resolving sourceforge.net (sourceforge.net)... 216.105.38.13
Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://sourceforge.net/projects/e107/files/e107/e107%20v2.1.9/e107_2.1.9_full.zip/download [following]
--2019-05-09 13:36:39--  https://sourceforge.net/projects/e107/files/e107/e107%20v2.1.9/e107_2.1.9_full.zip/download
Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.sourceforge.net/project/e107/e107/e107%20v2.1.9/e107_2.1.9_full.zip?r=&ts=1557389208&use_mirror=excellmedia [following]
--2019-05-09 13:36:40--  https://downloads.sourceforge.net/project/e107/e107/e107%20v2.1.9/e107_2.1.9_full.zip?r=&ts=1557389208&use_mirror=excellmedia
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.105.38.13
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.105.38.13|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://excellmedia.dl.sourceforge.net/project/e107/e107/e107%20v2.1.9/e107_2.1.9_full.zip [following]
--2019-05-09 13:36:41--  https://excellmedia.dl.sourceforge.net/project/e107/e107/e107%20v2.1.9/e107_2.1.9_full.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: 16046639 (15M) [application/octet-stream]
Saving to: ‘download’

download                    100%[==========================================>]  15.30M   113KB/s    in 1m 57s  

2019-05-09 13:38:45 (134 KB/s) - ‘download’ saved [16046639/16046639]

Once the download is completed extract the downloaded package using unzip command.

root@linuxhelp:~# unzip download -d e107
Archive:  download
  inflating: e107/CONTRIBUTING.md    
  inflating: e107/README.md          
  inflating: e107/banner.php         
  inflating: e107/class2.php         
  inflating: e107/comment.php        
  inflating: e107/contact.php        
  inflating: e107/cron.php        
.
.
  inflating: e107/top.php            
  inflating: e107/unsubscribe.php    
  inflating: e107/upload.php         
  inflating: e107/user.php           
  inflating: e107/userposts.php      
  inflating: e107/usersettings.php  

Move the E107 CMS directory to apache root directory.

root@linuxhelp:~# mv e107 /var/www/

Set the ownership and permission for E107 CMS by using the following commands.

root@linuxhelp:~# chown -R www-data.www-data /var/www/e107
root@linuxhelp:~# chmod -R 755 /var/www/e107

Once it is done, configure the virtualhost for accessing the E107 CMS. Run the following command.

root@linuxhelp:~# vim /etc/apache2/sites-available/e107.conf

And configure the following:

<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/e107
<directory /var/www/e107>
allowoverride all
allow from all
</directory>
</Virtualhost>

Once it is completed. disable the default site access.

root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

And then enable the site access for accessing the E107 cms

root@linuxhelp:~# a2ensite e107.conf
Enabling site e107.
To activate the new configuration, you need to run:
  systemctl reload apache2

Enable the rewrite module now.

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

Restart the apache service by using the following command

root@linuxhelp:~# systemctl restart apache2

Once all of the configurations are done, switch to your browser and enter the domain name Select the required language and click continue. Configure the Database details. Verify the database connection. Check the php and MySQL version and PHP modules and click continue.

Configure the Admin Credentials setup. Configure the Site information. After the configuration, You will see the installation confirmation and completion as shown below. This is the home page of e107 CMS. Enter the admin credentials to log in the e107 CMS. This is the dashboard of e107 CMS.
With this, the method to install E107 CMS on Ubuntu 19.04 comes to an end.

FAQ
Q
What are the requirements for installing e107 CMS?
A
The requirements are as follows:


Apache


MySQL


PHP and its modules
Q
Where can I download the package of E107 in Ubuntu?
A
You can download an E107 package from the following command which has the URL in it.





# wget http://sourceforge.net/projects/e107/files/e107/e107%20v2.1.9/e107_2.1.9_full.zip/download
Q
How to enter to the hosts file for E107 CMS?
A
You can do it by running the following command:


# vim /etc/hosts
Q
What are the required php modules for e107 cms?
A
These are the required php modules

php-xml php-mbstring php-gd php-curl php-zip php-soap php-mcrypt php-cli php-ldap php-mysql
Q
Is it possible to use MySQL instead of MariaDB for e107 cms?
A
Yes. You can use any type of database as per your choice and preference.