How to Install MyBB CMS on CentOS 7.5

Installation of MyBB CMS on CentOS 7.5

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 Centos 7.5

Requirements for MyBB cms :

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 Centos version by using the following command.

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

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 MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-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.00 sec)
MariaDB [(none)]> create user 'mybbuser'@localhost identified by '123456';
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> grant all privileges on mybb.* to 'mybbuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> Ctrl-C -- exit!
Aborted

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-14 16:28:18--  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:c366, ...
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.1’
100%[===========================================================>] 2,251,084    855KB/s   in 2.6s   
2019-05-14 16:28:22 (855 KB/s) - ‘mybb_1820.zip.1’ saved [2251084/2251084]

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

[root@linuxhelp ~]# unzip mybb_1820.zip.1
Archive:  mybb_1820.zip.1
   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  
 extracting: Documentation/images/notice_license.png  
.
.
.        
   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      

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 apache:apache /var/www/mybb
[root@linuxhelp ~]# chmod -R 755 /var/www/mybb

Configure the virtualhost for accessing the MyBB CMS.

[root@linuxhelp ~]# vim /etc/httpd/conf.d/mybb.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/mybb
<directory /var/www/mybb>
allowoverride all
allow from all
</directory>
</Virtualhost>

**Once it is done, restart the apache service by using the following command. **

[root@linuxhelp ~]# systemctl restart httpd

After the Apache service is restarted, switch to your browser and enter the domain name.

Welcome document of MyBB CMS. Accept the license agreement and proceed further. Verify the requirements MyBB CMS. Configure the database detail Check the Table creation You can see the data insertion Choose the theme installation Configure the site information Configure the Admin user credential Once the setup is finished you will see the following page. Log in using the Admin user credential This Is the dashboard MyBB CMS.

With this, the method to install MyBB CMS on CentOS 7.5 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 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
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.