How to install b2evolution 6.10.7 using lamp in ubuntu 18.10
- 0:44 lsb_release -a
- 0:58 apt install apache2
- 1:55 apt install mysql-server mysql-client
- 2:45 mysql_secure_installation
- 3:21 apt install php php-mysql php-curl php-xmlrpc php-gd php-mbstring php-common php-soap php-xml php-intl php-cli php-ldap php-zip
- 3:46 systemctl restart apache2.service
- 4:00 mysql -u root -p
- 5:09 wget https://b2evolution.net/media/blogs/downloads/b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981
- 5:27 unzip b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981
- 5:55 mv b2evolution /var/www/
- 6:21 chown -R www-data.www-data /var/www/b2evolution
- 6:37 chmod -R 775 /var/www/b2evolution
- 7:15 vim /etc/apache2/sites-available/b2evolution.conf
- 8:15 vim /etc/hosts
- 8:51 a2dissite 000-default.conf
- 9:09 a2ensite b2evolution.conf
- 9:21 a2enmod rewrite
- 9:42 systemctl restart apache2.service
Check the centos version by using the following command
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
Installing the apache by using Following command
root@linuxhelp:~# apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
liblua5.2-0
.
.
.
Enabling site 000-default.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
Processing triggers for libc-bin (2.28-0ubuntu1) ...
Processing triggers for systemd (239-7ubuntu10) ...
Processing triggers for ufw (0.35-6) ...
Once the above process Is completed we need to start the service
root@linuxhelp:~# systemctl start apache2.service
Enabling the service of apache by using this command
root@linuxhelp:~# systemctl enable apache2.service
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
Once the above step is completed we need to install mysql
root@linuxhelp:~# apt install mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7 mysql-client-core-5.7 mysql-common
mysql-server-5.7 mysql-server-core-5.7
Suggested packages:
libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client mysql-client-5.7 mysql-client-core-5.7
mysql-common mysql-server mysql-server-5.7 mysql-server-core-5.7
.
.
.
Setting up mysql-server-5.7 (5.7.25-0ubuntu0.18.10.2) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.
Setting up mysql-server (5.7.25-0ubuntu0.18.10.2) ...
Processing triggers for libc-bin (2.28-0ubuntu1) ...
Processing triggers for systemd (239-7ubuntu10) ...
Once the above process Is completed we need to start the service
root@linuxhelp:~# systemctl start mysql
Enabling the mysql service by using this command
root@linuxhelp:~# systemctl enable mysql
Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mysql
Once the above step is completed secure the root password for mysql database by using the following command
root@linuxhelp:~# mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No:
Please set the password for root here.
New password:
Re-enter new password:
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL 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? (Press y|Y for Yes, any other key for No) : 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? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL 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? (Press y|Y for Yes, any other key for No) : 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? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
Once it completed we need to install php and php modules
root@linuxhelp:~# apt install php php-mysql php-curl php-xmlrpc php-gd php-mbstring php-common php-soap php-xml php-intl php-cli php-ldap php-zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libapache2-mod-php7.2 libxmlrpc-epi0 libzip4 php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-gd
php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline
php7.2-soap php7.2-xml php7.2-xmlrpc php7.2-zip
Suggested packages:
php-pear
The following NEW packages will be installed:
.
.
Creating config file /etc/php/7.2/apache2/php.ini with new version
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php7.2
Setting up php-xmlrpc (1:7.2+62) ...
Setting up php-mysql (1:7.2+62) ...
Setting up php-cli (1:7.2+62) ...
Setting up php7.2 (7.2.15-0ubuntu0.18.10.2) ...
Setting up php (1:7.2+62) ...
Restart the apache service by using this command
root@linuxhelp:~# systemctl restart apache2.service
Once the above step is completed we need to 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.25-0ubuntu0.18.10.2 (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 b2;
Query OK, 1 row affected (0.00 sec)
mysql> create user 'b2user'@localhost identified by '123456';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on b2.* to 'b2user'@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
mysql> exit
Bye
Once the above step is completed download the b2evolution package by using the following command.
root@linuxhelp:~# wget https://b2evolution.net/media/blogs/downloads/b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981
--2019-04-02 17:48:14-- https://b2evolution.net/media/blogs/downloads/b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981
Resolving b2evolution.net (b2evolution.net)... 147.135.85.87
Connecting to b2evolution.net (b2evolution.net)|147.135.85.87|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18300073 (17M) [application/zip]
Saving to: ‘b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981’
b2evolution-6.10.7-stable-2 100%[=========================================>] 17.45M 679KB/s in 30s
2019-04-02 17:48:45 (593 KB/s) - ‘b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981’ saved [18300073/18300073]
Once the installation package is downloaded, Extract it as follows
root@linuxhelp:~# unzip b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981
Archive: b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981
creating: b2evolution/
creating: b2evolution/skins_email/
inflating: b2evolution/skins_email/account_delete_warning.txt.php
inflating: b2evolution/skins_email/contact_message_new.html.php
inflating: b2evolution/skins_email/scheduled_task_error_report.txt.php
inflating: b2evolution/skins_email/list_new_subscriber.html.php
inflating: b2evolution/skins_email/comments_unmoderated_reminder.txt.php
inflating: b2evolution/skins_email/contact_message_new.txt.php
inflating: b2evolution/skins_email/index.html
.
.
.
extracting: b2evolution/media/users/admin/faceyourmanga_admin_boy.png
creating: b2evolution/media/users/mary/
inflating: b2evolution/media/users/mary/mary.jpg
creating: b2evolution/media/users/larry/
inflating: b2evolution/media/users/larry/larry.jpg
creating: b2evolution/media/users/dave/
inflating: b2evolution/media/users/dave/dave.jpg
creating: b2evolution/media/users/jay/
inflating: b2evolution/media/users/jay/jay.jpg
inflating: b2evolution/media/sample.htaccess
List out the details of b2evolution
root@linuxhelp:~# ls
b2evolution Documents Music Templates
'b2evolution-6.10.7-stable-2019-02-12.zip?mtime=1550010981' Downloads Pictures Videos
Desktop examples.desktop Public
Now move the b2evolution directory to /var/www/ location.
root@linuxhelp:~# mv b2evolution /var/www/
Change the ownership for the b2evolution directory with the help of the following command.
root@linuxhelp:~# chown -R www-data.www-data /var/www/b2evolution
root@linuxhelp:~# chmod -R 775 /var/www/b2evolution
Next step is very crucial. Need to configure the Apache VirtualHost for b2evolution
root@linuxhelp:~# vim /etc/apache2/sites-available/b2evolution.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/b2evolution
</Virtualhost>
configure the host entry by using the following command
root@linuxhelp:~# vim /etc/hosts
<ipaddress> <domain name>
Disable default access for enabling your b2evolution site access
root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable site access for b2evolution by using the following command
root@linuxhelp:~# a2ensite b2evolution.conf
Enabling site b2evolution.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable rewrite module
root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Once it is completed, Restart the Apache Web Server by running the following command
root@linuxhelp:~# systemctl restart apache2.service
Switch to your browser and enter the domain name
The installation process of b2evolution will appear as shown below
Configure the database setup as follows
Setup the additional settings and click " update the config file" option
Choose the method of installation and Click Next
Once all the configurations are done Click on Install

You will see the progress of installation as shown
After the successful installation, you will see the following screen as shown below.

HomePage of b2evlotion

Log in page of b2evolution, using admin credential to login as admin b2evolution

After successful login, you will see the admin page of b2evolution cms

The installation of b2evolution 6.10.7 on Ubuntu 18.10 comes to end
Comments ( 0 )
No comments available