How to install MyBB CMS 1.8.15 on Ubuntu 18.04

To install MyBB CMS  on Ubuntu 18.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.


To install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )

Php installation with required following modules

add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0  php7.0-common  php7.0-xmlrpc php7.0-soap  php7.0-xml
php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Download a MyBB  package using the following command 

root@linuxhelp1:~# wget
--2018-06-22 20:37:56--
Resolving (,, 2400:cb00:2048:1::6819:c466, ...
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2248609 (2.1M) [application/zip]
Saving to: ‘’           100%[==============================>]   2.14M   323KB/s    in 6.8s    
2018-06-22 20:38:05 (325 KB/s) - ‘’ saved [2248609/2248609]

The downloaded package is a zip file, so we need to unzip the package now

root@linuxhelp1:~# unzip -d mybb
   creating: mybb/Documentation/
  inflating: mybb/Documentation/credits.html  
   creating: mybb/Documentation/images/
  inflating: mybb/Documentation/images/logo.png  
 extracting: mybb/Documentation/images/notice_credits.png  
 extracting: mybb/Documentation/images/notice_install.png
   creating: mybb/Upload/uploads/
   creating: mybb/Upload/uploads/avatars/
  inflating: mybb/Upload/uploads/avatars/index.html  
  inflating: mybb/Upload/uploads/index.html  
  inflating: mybb/Upload/usercp.php  
  inflating: mybb/Upload/usercp2.php  
  inflating: mybb/Upload/warnings.php  
  inflating: mybb/Upload/xmlhttp.php

Move the extracted file into the following path

root@linuxhelp1:~# mv mybb /var/www/

Switch to the following directory

root@linuxhelp1:~# cd /var/www/

Change the ownership and permission of the file

root@linuxhelp1:/var/www# chown -R www-data.www-data mybb
root@linuxhelp1:/var/www# chmod -R 775 mybb

Create a new virtual host configuration for accessing the MyBB  application

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/mybb.conf
<VirtualHost *:80>
DocumentRoot /var/www/mybb/Upload/
<Directory /var/www/mybb/Upload/>
AllowOverride All
allow from all

Enable the site access

root@linuxhelp1:/var/www# a2ensite mybb.conf
Enabling site mybb.
To activate the new configuration, you need to run:
systemctl reload apache2

Disable the default access

root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Enable the rewrite module

root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

Restart the apache2 service

root@linuxhelp1:/var/www# systemctl restart apache2

Open a browser and type the following URL of http://local IP (or ) domain name

Welcome document of MyBB

Accept the license agreement

Verify the requirements

Configure the database detail

You will see 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

Admin page of Mybb


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

Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: MyBB
user image Author :  Frankenstein