3.9 C
Monday, January 25, 2021

How to install Microweber CMS on Debian 9?

Must read

Please Donate

Senior Writer and partner

If we think about it, almost all the internet is about blogs and information. To do this, there are content management tools that help create and manage those sites. That’s why today I’m going to teach you how to install Microweber CMS on your Debian 9 server.

Microweber is a free CMS (Content Manager System) and modern open source that allows you to create and manage websites in a fairly easy and comfortable way thanks to its drag and drop system.

Thanks to the fact that it is built using Laravel, we can expect quite a large stability. It also has an online store that allows you to purchase the templates you need or create and sell.

So, let’s install Microweber CMS. It is easy.

1. Upgrade the system

First, you need to update the system. To do this, you must have a user who can run commands as a superuser.

Just run:

:~$ su
:~# apt update && apt upgrade

1.- Upgrade the system
1.- Upgrade the system

The great advantage of doing this is that you will have the latest security patches available on your system. So the system will be more stable and robust. Quite an advantage for your server.

2. Install Apache Web server

Then you need to install and configure a LAMP server. The first component is already installed which is Linux. Now let’s go for the second one that is a web server. There are several, but I will install the Apache web server.

:~# apt install apache2

2.- Install Apache web server
2.- Install Apache web server

Then, enable and start the service.

:~# systemctl enable apache2
:~# systemctl start apache2

3.- Enabling and starting the service
3.- Enabling and starting the service

Now, check the service status.

:~# systemctl status apache2

4.- Check the apache service
4.- Check the apache service

Everything is OK.

3. Install and configure MariaDB

Now it is necessary to install MariaDB to continue with the installation of Microweber. We love MariaDB in this site, for being one of the best solutions for the open source database.

:~# apt install mariadb-server

5.- Install Mariadb
5.- Install MariaDB

It then enables and initiates the MariaDB service.

:~# systemctl enable mariadb
:~# systemctl start mariadb

6.- Starting mariadb
6.- Starting MariaDB

Next, configure MariaDB to set the root password.

:~# mysql_secure_installation

7.- Using mysql_secure_installation to set a root pasword
7.- Using mysql_secure_installation to set a root password

After defining the administrator password, the configuration script will ask you other questions. You can answer as you like because it is not vital for this tutorial, however, I answered Y, N, Y, Y.

Now, you need to create the database that Microweber will use. In addition, it is recommended for security reasons, to create a user dedicated to the program.

:~# mysql -u root -p
CREATE DATABASE microweberdb;
GRANT ALL PRIVILEGES ON microweberdb.* TO 'microweberuser'@'localhost' IDENTIFIED BY 'microweberpss';

8.- Creating a new database for microweber cms
8.- Creating a new database for microweber cms

4. Install and configure PHP

Now it’s PHP’s turn.

:~# apt install php7.0 libapache2-mod-php7.0 php7.0-common php7.0-mbstring php7.0-xmlrpc php7.0-soap php7.0-mysql php7.0-gd php7.0-xml php7.0-cli php7.0-zip

9.- Install PHP
9.- Install PHP

Now, in order for Microweber CMS to run properly, it is necessary to make some changes to the PHP configuration. Edit /etc/php/7.0/apache2/php.ini and make the following changes.

:~# nano /etc/php/7.0/apache2/php.ini
memory_limit = 256M
upload_max_filesize = 150M
max_execution_time = 360
date.timezone = YOUR_TIMEZONE

10.- Editing the PHP configuration file
10.- Editing the PHP configuration file

Note: use CTRL + W to find easily the options.

Finally, restart Apache web server.

:~# systemctl restart apache2

5. Install Microweber CMS

Now it’s time to install Microweber CMS. Before I install two packages to be able to download and unzip.

:~# apt install unzip wget

11.- Install some useful packages
11.- Install some useful packages

After that, now download it.

:~# cd /tmp/
:~# wget https://microweber.com/download.php -O microweber-latest.zip

12.- Download Microweber
12.- Download and install Microweber CMS

Now, unzip the downloaded file.

:~# mkdir /var/www/html/microweber
:~# unzip microweber-latest.zip -d /var/www/html/microweber

13.- Unzip the folder
13.- Unzip the folder

Now for Microweber to run correctly, you need to change the permissions to the folder.

:~# chown -R www-data:www-data /var/www/html/microweber/
:~# chmod -R 755 /var/www/html/microweber/

Finally, enable the rewrite module on Apache.

:~# a2enmod rewrite
:~# systemctl restart apache2

14.- Last details before complete the installation
14.- Last details before complete the installation

6. Complete the Microweber installation

Now you can open your web browser and access http://IP_SERVER/microweber and complete the installation.

15.- Completing the installation
15.- Completing the installation

Scroll down, and set the blog template.

16.- Setting the website template
16.- Setting the website template

Next, create the admin account.

17.- Login information
17.- Login information

Finally, press the Install button.

18.- Completing the installation
18.- Completing the installation

And that’s it.


To create a blog is something that thanks to Microweber CMS is possible in an easy and fast way. Installing Microweber in Debian is within everyone’s reach.

Please share this post on your social networks.

More articles


Please enter your comment!
Please enter your name here


Latest article