16 C
Texas
angeloma
Senior Writer and partner

How to install Microweber CMS on Debian 10?

Hello, friends. If you are thinking of creating a new website, then you must be looking for the ideal CMS for you. Well, today I’m going to show you how to install MicroweberCMS on Debian 10.

Microweber is a compact and quite complete CMS that allows us to deploy our blog or website quickly and easily. In addition to this, it allows us to manage it from a comfortable web interface where you can use a graphical editor to create the site.

With Microweber you can expect everything that a CMS can do, create, manage a website. Ideal for blogging or virtual stores, Microweber is a CMS to take into account.

Install Microweber CMS on Debian 10

Install LAMP on Debian 10

Microweber is a CMS that relies on PHP and a database manager like MariaDB. So we have to install the LAMP on Debian 10 stack.

- Advertisement -

However, the latest version of Microweber requires at least PHP 7.3 so we have to install PHP 8 on Debian 10.

Within the PHP modules that you have to install, you can’t miss these and other necessary packages.

php8.0 libapache2-mod-php php-common php-mbstring php-xmlrpc php-soap php-mysql php-gd php-xml php-cli php-zip php-curl unzip wget

Creating a new database and user

It would be best to create the database for Microweber CMS ourselves. Also, we will have to create a dedicated user for security reasons.

Open the MariaDB shell

sudo mysql -u root -p

Create the new database:

CREATE DATABASE microweberdb;

The database name can be whatever you want. Now create the user along with the password.

GRANT ALL PRIVILEGES ON microweberdb.* TO 'microweberuser'@'localhost' IDENTIFIED BY 'microweberpss';
FLUSH PRIVILEGES;

You can use any other username and password you want.

Now exit the shell

exit;

Now we can continue.

Download and install Microweber CMS on Debian 10

Now we can download and install Microweber. So, do it from the /tmp/ folder and using the command wget.

cd /tmp/
wget https://microweber.com/download.php -O microweber-latest.zip
--2021-07-29 18:09:16--  https://microweber.com/download.php
Resolving microweber.com (microweber.com)... 148.251.51.133
Connecting to microweber.com (microweber.com)|148.251.51.133|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://microweber.org/download.php [following]
--2021-07-29 18:09:16--  https://microweber.org/download.php
Resolving microweber.org (microweber.org)... 148.251.51.133
Connecting to microweber.org (microweber.org)|148.251.51.133|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://updater.microweberapi.com/microweber-master.zip [following]
--2021-07-29 18:09:17--  https://updater.microweberapi.com/microweber-master.zip
Resolving updater.microweberapi.com (updater.microweberapi.com)... 148.251.51.133
Connecting to updater.microweberapi.com (updater.microweberapi.com)|148.251.51.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 162704055 (155M) [application/zip]
Saving to: ‘microweber-latest.zip’

microweber-latest.zip                     100%[=====================================================================================>] 155.17M  87.5MB/s    in 1.8s

2021-07-29 18:09:18 (87.5 MB/s) - ‘microweber-latest.zip’ saved [162704055/162704055]

Now create a folder in the Apache root directory where we will unzip the downloaded file.

sudo mkdir /var/www/html/microweber
sudo unzip microweber-latest.zip -d /var/www/html/microweber

Now make the folder belong to Apache and have the proper permissions.

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

Then it is convenient to create a new virtualhost for Apache to manage the site properly.

sudo nano /etc/apache2/sites-available/microweber.conf

Add the following:

<VirtualHost *:80>
  ServerName blog.osradar.test
  DocumentRoot /var/www/html/microweber/
 
  <Directory />
    Options FollowSymLinks
    AllowOverride All
  </Directory>
 
  <Directory /var/www/html/microweber/>
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
  </Directory>

  ErrorLog ${APACHE_LOG_DIR}/microweber_error.log
  CustomLog ${APACHE_LOG_DIR}/microweber_access.log combined

</VirtualHost>
1.- Virtualhost for Microweber
1.- Virtualhost for Microweber

Remember to change the ServerName value to your domain. Save the changes and close the editor.

Enable the new configuration and the Apache rewrite module.

sudo a2ensite microweber
sudo a2enmod rewrite

Apply the changes by restarting Apache.

sudo systemctl restart apache2

Optional: Installing Certbot and the Let’s Encrypt certificates

Normally this site would be on the Internet which means that we have to use all possible security. So, we should install the Let’s Encrypt certificates to enable HTTPS.

So, install Certbot and its Apache plugin.

sudo apt install certbot python3-certbot-apache

Then, generate the certificates as follows

sudo certbot --apache --d [your-domain]

Enter your email address and accept the license terms and then restart Apache.

Installing Microweber using the web interface

Now open your web browser and go to https://your-domain and you will see a screen where you can customize the installation.

First, configure the database.

2.- Installing Microweber CMS on Ubuntu 20.04
2.- Installing Microweber CMS on Ubuntu 20.04

Below, you can configure the layout

3.- Configuring Microweber
3.- Configuring Microweber

And at the end, you can create the Microweber admin user.

4.- Creating the admin user
4.- Creating the admin user

So, enjoy it. Now you can start with the work of creating your website.

Conclusion

WordPress dominates the CMS industry but that does not indicate that there is real competition to offer better services. So, now you know how to install Microweber CMS and if you give it a try I am sure you will not be disappointed.

- 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