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
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
Then, enable and start the service.
:~# systemctl enable apache2 :~# systemctl start apache2
Now, check the service status.
:~# systemctl status apache2
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
It then enables and initiates the MariaDB service.
:~# systemctl enable mariadb :~# systemctl start mariadb
Next, configure MariaDB to set the root password.
:~# mysql_secure_installation
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'; FLUSH PRIVILEGES; exit;
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
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
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
After that, now download it.
:~# cd /tmp/ :~# wget https://microweber.com/download.php -O microweber-latest.zip
Now, unzip the downloaded file.
:~# mkdir /var/www/html/microweber :~# unzip microweber-latest.zip -d /var/www/html/microweber
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
6. Complete the Microweber installation
Now you can open your web browser and access http://IP_SERVER/microweber and complete the installation.
Scroll down, and set the blog template.
Next, create the admin account.
Finally, press the Install button.
And that’s it.
Conclusion
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.