How to Install MyBB CMS on Ubuntu 19.04

Installation of MyBB CMS on Ubuntu 19.04

MyBB is an open source, multi-lingual extensible blogging engine which does not require a database. It stores all of its content on text files. It also contains features like support of various plugins, widget support, customizable themes. This tutorial covers the installation of MyBB cms on Ubuntu 19.04.

Requirements for MyBB 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

You need to configure the LAMP setup For the Installation of Mybb CMS If you dont have the Lamp setup Refer Here

Before you begin, ensure you check your Ubuntu version 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 mybb;
Query OK, 1 row affected (0.03 sec)
mysql> create user 'mybbuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.10 sec)
mysql> grant all privileges on mybb.* to 'mybbuser'@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 MyBB CMS Installation package by using the wget command.

root@linuxhelp:~# wget https://resources.mybb.com/downloads/mybb_1820.zip
--2019-05-08 20:49:56--  https://resources.mybb.com/downloads/mybb_1820.zip
Resolving resources.mybb.com (resources.mybb.com)... 104.25.196.102, 104.25.195.102, 2606:4700:20::6819:c466, ...
Connecting to resources.mybb.com (resources.mybb.com)|104.25.196.102|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2251084 (2.1M) [application/zip]
Saving to: ‘mybb_1820.zip’

mybb_1820.zip               100%[==========================================>]   2.15M   984KB/s    in 2.2s    

2019-05-08 20:50:00 (984 KB/s) - ‘mybb_1820.zip’ saved [2251084/2251084]

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

root@linuxhelp:~# unzip mybb_1820.zip
Archive:  mybb_1820.zip
   creating: Documentation/
  inflating: Documentation/credits.html  
   creating: Documentation/images/
  inflating: Documentation/images/logo.png  
 extracting: Documentation/images/notice_credits.png
.
.
.
 creating: Upload/uploads/avatars/
  inflating: Upload/uploads/avatars/index.html  
  inflating: Upload/uploads/index.html  
  inflating: Upload/usercp.php       
  inflating: Upload/warnings.php     
  inflating: Upload/xmlhttp.php      

Move the MyBB CMS directory to Apache root directory.

root@linuxhelp:~# mv Upload /var/www/mybb

Set the ownership and permission for Mybb cms by using the following command

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

Configure the virtualhost for accessing the Mybb cms

root@linuxhelp:~# vim /etc/apache2/sites-available/mybb.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/mybb
<directory /var/www/mybb>
allowoverride all
allow from all
</directory>
</Virtualhost>

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

Enable the site access for accessing the MyBB CMS.

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

Enable the rewrite module.

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 the above configurations are over, switch to your browser and enter the domain name. Welcome document of MyBB CMS appears on your screen. Accept the license agreement and proceed further. Verify the requirements for the CMS. Configure the database details. Check the Table creation. You can see the data insertion.

Choose the theme installation. Configure the site information. Configure the Admin user credentials. Once the setup is finished you will see the following page. Log in using the Admin user credentials. The MyBB CMS dashboard looks like the following image.

With this, the method to install MyBB CMS on Ubuntu 19.04 comes to an end.

FAQ
Q
What are the requirements for mybb cms?
A
These are the requirements for mybb cms

Apache

Mysql

Php and its modules
Q
What are the php modules required for Mybb cms?
A
These are the php modules required for Mybb cms

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
Q
Where to download the package of Mybb in ubuntu?
A
Download a Mybb package using the following URL


#wget https://resources.mybb.com/downloads/mybb_1820.zip
Q
How to entry to the hosts file for Mybb cms?
A
Use the following command to entry the host file
# vim /etc/hosts
Q
What is the use of Mybb cms?
A
MyBB is an open source, multi-lingual extensible blogging engine which does not require a database. It stores all of its content on text files. It also contains features like support of various plugins, widget support, customizable themes.