How to install and Configure MyBB CMS on CentOS 8.1

How to install and configure MyBB on CentOS 8.1

INTRODUCTION:

MyBB is a multilingual, extensible blogging engine written in PHP. It supports databases such as MySQL and SQLite and offers database failover. All of its content is stored in text files. Additionally, it has features such as support for plugins, widgets, and customizable themes. Prerequisite:

LAMP

Apache

MariaDB

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-mcrypt

Installation Procedure:

Check The Installed version of OS

[root@linuxhelp ~]# rpm -q centos-release
centos-release-8.1-1.1911.0.8.el8.x86_64

Configure database hence login in mysql as a root..

[root@linuxhelp ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 9
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 mybb;
Query OK, 1 row affected (0.051 sec)
MariaDB [(none)]> create user 'mybbuser'@localhost identified by '123456';
Query OK, 0 rows affected (0.232 sec)
MariaDB [(none)]> grant all privileges on mybb.* to 'mybbuser'@localhost;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.053 sec)
MariaDB [(none)]> exit
Bye

Now download the MyBB CMS package using following command.

[root@linuxhelp ~]# wget https://resources.mybb.com/downloads/mybb_1820.zip
--2020-11-28 11:21:52--  https://resources.mybb.com/downloads/mybb_1820.zip
Resolving resources.mybb.com (resources.mybb.com)... 104.24.31.89, 104.24.30.89, 172.67.67.178, ...
Connecting to resources.mybb.com (resources.mybb.com)|104.24.31.89|: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   724KB/s    in 3.0s    
2020-11-28 11:21:57 (724 KB/s) - ‘mybb_1820.zip’ saved [2251084/2251084]

Unzip the MyBb cms package file

[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  
 extracting: Documentation/images/notice_install.png  
 ….
  inflating: Documentation/index.html  
   ….
   …..
  inflating: Upload/task.php         
   creating: Upload/uploads/
   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

Now Move CMS file to apache root directory.

[root@linuxhelp ~]# mv Upload /var/www/mybb

Now change ownership and permission for mybb cms file

[root@linuxhelp ~]# chown -R apache:apache /var/www/mybb
[root@linuxhelp ~]# chmod -R 755 /var/www/mybb

Now configure virtual host to access cms

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

Now restart the apahce service to update the changes.

[root@linuxhelp ~]# systemctl restart httpd

Now open browser and enter your domain name there This is the welcome installation page Check the requirement for the CMS Now do the Database configuration give user name and password Now create admin account Installation setup is finished, now goto the admin login panel. This is the dashboard of the MyBB CMS With this method, installation of MyBB CMS comes to an end.

FAQ
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
What is the use of Mybb cms?
A
MyBB is an open-source, multi-lingual extensible blogging engine that 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.
Q
What are the requirements for MyBB CMS?
A
These are the requirements for MyBB CMS
Apache
MySQL
PHP and its modules
Q
Where to download the package of MyBB CMS 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 host's file for MyBB CMS?
A
Use the following command to enter the hostS file.
# vim /etc/hosts