21 C
Texas
angeloma
Senior Writer and partner

How to install MyBB on Ubuntu 18.04?

Using mechanisms to deploy forums can be very useful in the field of education. It can even be a great idea for a company. That is why, in this post, I will show you how to install MyBB on Ubuntu 18.04.

MyBB is an open source application that is developed in PHP that supports multiple database handlers such as MySQL, PostgreSQL, and SQLite. Its main objective is to deploy forums and blog content. That is to say, it is a CMS with more advantages.

There are many features that make MyBB so special. For example, it is very extensible, thanks to its large community and plugins. Besides, the language will not be a problem because it supports more than 30. That is, it is a powerful tool but with good community support.

So, let us start.

1.- Install Apache web server and PHP

- Advertisement -

As you can imagine, MyBB requires a functional web server. So the first step is to install the Apache web server. Note that it is also possible to use Nginx.

:~$ sudo apt install apache2

1.- Install apache
1.- Install apache

Ubuntu starts and enables the service automatically. Now, we have to install PHP. The basic requirements indicate that it supports PHP 5.2 onwards, but its developers recommend at least PHP 7.2. Let us install it.

:~$ sudo apt install php php-xml php-mbstring libapache2-mod-php php-mysql php-mbstring php-gd php-zip php-json

2.- Install PHP
2.- Install PHP

Finally, restart Apache.

:~$ sudo systemctl restart apache2

2. Install MySQL

It is not necessary to have an SQL database manager to enjoy MyBB. However, we will. So we will install MySQL.

:~$ sudo apt install mysql-server

3.- Install MySQL
3.- Install MySQL

After that, you need to define the root password and other settings. So run the mysql_secure_installation script.

:~$ sudo mysql_secure_installation

4.- Using the mysql_secure_installation script
4.- Using the mysql_secure_installation script

After defining a password for the root user, you will be asked other configuration questions. We recommend that you read them carefully and give your answers. We have answered like this, Y, N, Y, Y.

The, create the database and the new user for MyBB.

:~$ sudo mysql -u root -p
CREATE DATABASE mybbdb;
GRANT ALL PRIVILEGES ON mybbdb.* TO 'mybbuser'@'localhost' IDENTIFIED BY 'mybbPSS123';
FLUSH PRIVILEGES;
exit;

5.- creating the database and user for MyBB
5.- creating the database and user for MyBB

So, that is all with MySQL.

3. Download and install MyBB

Now we can download it from the project website. Currently, the last stable version is 1.8.19.

:~$ cd /tmp/
:~$ wget https://resources.mybb.com/downloads/mybb_1819.zip

6.- Download MyBB
6.- Download MyBB

After that, decompress it on /var/www/html.

:~$ unzip mybb_1819.zip -d mybb

Then, move it to the Apache web root and set the proper permissions to the folder.

:~$ sudo mv mybb /var/www/html/
:~$ sudo chown -R www-data:www-data /var/www/html/mybb/
:~$ sudo chmod -R 775 /var/www/html/mybb/

7.- Setting the properly permission to the folder
7.- Setting the proper permission to the folder

Finally, create a new virtualhost for MyBB.

:~$ sudo nano /etc/apache2/sites-available/mybb.conf

And add the following.

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/mybb/Upload/
ServerName your-domain.com
ServerAlias www.your-domain.com

<Directory /var/www/html/mybb/Upload/>
      Options FollowSymLinks
      AllowOverride All
      Order allow,deny
      allow from all
</Directory>
</VirtualHost>

8.- Creating the new virtualhost
8.- Creating the new virtualhost

Enable the new configuration and the rewrite module. Next, restart apache.

:~$ sudo a2ensite mybb.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2

9.- Enabling the virtualhost
9.- Enabling the virtualhost

4. Complete the installation on the web browser

Finally, open your web browser and access your server to complete the installation. First, the welcome screen. Click on the next button.

10.- Install MyBB on ubuntu
10.- Install MyBB on ubuntu

Now, you have to accept the license. Click on the next button.

11.- License agreement
11.- License agreement

Then, the installer will check for the requirements.

12.- Requirements check
12.- Requirements check

Next, you have to configure the database. Just type the credentials.

13. Database configuration
13. Database configuration

In the next screen, you will see the database tables creation. Scroll down and click on the next button if everything went OK.

14.- Tables creations
14.- Tables creations

Next, the installer will populate the tables.

15.- Table population
15.- Table population

After that, the installer will installer the default theme.

16.- Insallting the default theme
16.- Insallting the default theme

Next, the board configuration. Type your data.

17.- Board configuration
17.- Board configuration

After that, you have to create the admin account.

Create administrator account
18.- Create an administrator account

Finally, you will see a message that MyBB is installed.

19.- Finish the setup
19.- Finish the setup

Next, you can log in to acces to the Admin control panel.

20.- MyBB log in screen
20.- MyBB log in screen

And finally, you will see the control panel.

21.- MyBB control panel
21.- MyBB control panel

And that’s it.

Conclusion

MyBB is a great application to deploy forums. It is open source and very well supported by the community.

To install MyBB on Ubuntu 18.04 does not require great technical knowledge because it is simple to do.

Please share this post with your friends.

 

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article