How To install MYBB CMS on Debian 11.3
- 00:35 lsb_release –a
- 01:00 systemctl status apache2
- 01:16 apt install php php-xml php-mysql php-mbstring php-zip php-soap php-sqlite3 php-curl php-gd php-ldap php-imap php-common
- 01:35 mysql -u root -p
- 01:46 create database mybb;
- 01:59 create user 'mybbuser'@localhost identified by '123456';
- 02:16 grant all privileges on mybb.* to 'mybbuser'@localhost;
- 02:48 flush privileges;
- 02:58 \q
- 03:06 wget https://resources.mybb.com/downloads/mybb_1820.zip
- 03:15 unzip mybb_1820.zip
- 03:24 mv Upload /var/www/mybb
- 03:41 chown -R www-data.www-data /var/www/mybb
- 04:02 chmod -R 755 /var/www/mybb
- 04:20 vim /etc/apache2/sites-available/mybb.conf
- 05:40 a2ensite mybb.conf
- 05:52 a2enmod rewrite
- 06:12 vim /etc/hosts
- 06:47 systemctl restart apache2
To install MYBB CMS on Debian 11.3.
Introduction:
MyBB, formerly MyBBoard and originally MyBulletinBoard, is a free and open-source content management system.MyBB is a free open source forum software developed in PHP, that offers support for the following databases: MySQL, PostgreSQL and SQLite and has a database failover support.You can manage everything from creating a new forum to users, private messaging and templates.
Prerequisites. Mybb install Before Need for Lamp setup.
Installation process:
Step 1:Run lsb_release command to check the installed version of OS as follows.
root@linuxhelp:~# lsb_release –a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Step 2:Check the Status of Apache Webserver
root@linuxhelp:~# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese>
Active: active (running) since Thu 2022-07-21 01:35:57 IST; 6min ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 43240 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/S>
Main PID: 43244 (apache2)
Tasks: 11 (limit: 4620)
Memory: 29.6M
CPU: 408ms
Jul 21 01:35:57 linuxhelp systemd[1]: Starting The Apache HTTP Server...
Step 3:Install PHP modules by using the below commands:
root@linuxhelp:~# apt install php php-xml php-mysql php-mbstring php-zip php-soap php-sqlite3 php-curl php-gd php-ldap php-imap php-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-5.4.0-42 linux-headers-5.4.0-42-generic linux-headers-5.4.0-52 linux-headers-5.4.0-52-generic
linux-image-5.4.0-42-generic linux-image-5.4.0-52-generic linux-modules-5.4.0-42-generic linux-modules-5.4.0-52-generic
linux-modules-extra-5.4.0-42-generic linux-modules-extra-5.4.0-52-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libapache2-mod-php7.4 libc-client2007e libonig5 libzip5 mlock php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd
php7.4-imap php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-soap php7.4-sqlite3
php7.4-xml php7.4-zip
Step 4:Create database for Mybb CMS
root@linuxhelp:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 30
Server version: 10.5.15-MariaDB-0+deb11u1 Debian 11
MariaDB [(none)]> create database mybb;
Query OK, 1 row affected (0.010 sec)
MariaDB [(none)]> create user 'mybbuser'@localhost identified by '123456';
Query OK, 0 rows affected (0.025 sec)
MariaDB [(none)]> grant all privileges on mybb.* to 'mybbuser'@localhost;
Query OK, 0 rows affected (0.004 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.005 sec)
MariaDB [(none)]> \q
Bye
Step 5:Download Mybb CMS by using the below command:
root@linuxhelp:~# wget https://resources.mybb.com/downloads/mybb_1820.zip
--2022-07-21 01:27:05-- https://resources.mybb.com/downloads/mybb_1820.zip
Resolving resources.mybb.com (resources.mybb.com)... 104.24.30.89, 172.67.67.178, 104.24.31.89, ...
Connecting to resources.mybb.com (resources.mybb.com)|104.24.30.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 3.07MB/s in 0.7s
2022-07-21 01:27:06 (3.07 MB/s) - ‘mybb_1820.zip’ saved [2251084/2251084]
Extract the Zip file by using the below 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
extracting: Documentation/images/notice_install.png
extracting: Documentation/images/notice_license.png
extracting: Documentation/images/notice_upgrade.png
Step 6:Rename the directory:
root@linuxhelp:~# mv Upload /var/www/mybb
Step 7:Give the Ownership and permissions to Mybb directory root@linuxhelp:~# chown -R www-data.www-data /var/www/mybb root@linuxhelp:~# chmod -R 755 /var/www/mybb
Step 8:Create a virtualhost for Mybb CMS:
root@linuxhelp:~# vim /etc/apache2/sites-available/mybb.conf
<virtualhost *80>
Servername www.linuxhelp1.com
Documentroot /var/www/mybb
</vitualhost>
Step 9:Disable default access
root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
Step 10:To activate the new configuration, you need to run:
systemctl reload apache2
Step 11:Enable site access
root@linuxhelp:~# a2ensite mybb.conf
Enabling site mybb.
Step12 :To activate the new configuration, you need to run:
systemctl reload apache2
Step 13 :Enable rewrite module
root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
Step 14:To activate the new configuration, you need to run:
systemctl restart apache2
Step 15:Enter the Host entery
root@linuxhelp:~# vim /etc/hosts
192.168.6.137 www.linuxhelp1.com
Step 16 :Once it is completed, Restart the Apache Web Server by running the following command
root@linuxhelp:~# systemctl restart apache2
Step 17:Once completed above step goto browser type URL
Step 18 :Welcome page for Mybb CMS
Step19:StepLicense agreement page
Step20:Check requirements
Step21 :Database configuration
Step 22: After that click next, for installation process pages
Step 23: Check board configuration and click next
Step 24: Create admin account
Step 25 :Click admin control panel
Step 26 :Login admin page
Step 27:Then it will show dashboard

Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install MYBB CMS on Debian 11.3.Your feedback is much welcome.
Comments ( 0 )
No comments available