How to Install Microweber on Ubuntu 22.04

Microweber is an open-source CMS system which allows users to build websites with a user-friendly drag-and-drop interface, making it accessible even for those without extensive technical knowledge. It offers a no-code platform with pre-defined layouts and multiple templates that you can choose from. Microweber Foundation’s mission is to support organizations through their digital transformation. Let’s see how to install Microweber on Ubuntu 22.04, which is a common and modern Linux distribution.

Prerequisites

  • An Ubuntu Cloud VPS with Ubuntu 22.04 and at least 2GB of RAM
  • User privileges: root or non-root user with sudo privileges

Step 1. Update the System

Every fresh installation of Ubuntu 22.04 needs the packages to be updated to the latest available versions. To do that, execute the following command:

sudo apt-get update -y && sudo apt-get upgrade -y

Step 2. Install Apache

We need a web server to serve the Microweber files. For this, we’ll be using Apache. The Apache webserver can be installed using the following command:

$ sudo apt install apache2  -y

Once the Apache installation is completed, you can check if Apache is running with:

 # sudo systemctl status apache2

You can start, stop or restart the Apache server using: systemctl start|stop|restart apache2. You will also need to enable the Apache mod_rewrite module as this is required by Microweber. You can do that with the following command:

 $ sudo a2enmod rewrite

Reload your Apache server to apply the new configuration changes:

 $ sudo systemctl reload apache2

Step 3. Install MariaDB

Microweber supports multiple database systems. We’ll use MariaDB, which is an open-source alternative to MySQL. MySQL and MariaDB are not identical, but in most cases, they work the exact same. The next step is to install MariaDB. You can install MariaDB using this command:

 $ sudo apt install software-properties-common mariadb-server mariadb-client 

Then you will need to create a new database. To do this, log in to the MariaDB shell as the root user by typing the following command:

 $ sudo mysql -u root -p

To create a new database and user, run the following commands on the MariaDB shell:

CREATE DATABASE microweber; 

CREATE USER microweber@localhost IDENTIFIED BY 'strong-password';

GRANT ALL PRIVILEGES ON microweber.* TO microweber@localhost;

FLUSH PRIVILEGES;

Make sure to change strong-password to an actually strong password. Note it as Microweber will need it in order to access its database. Now you can exit the MariaDB shell and continue with the installation.

Step 4. Install PHP 8.1

To complete the LAMP stack installation, you will need to install PHP 8.1 or higher.

In this tutorial, we are going to be using the PHP 8.1 version. To install PHP 8.1 and the needed PHP modules, you can use the following command:

$ sudo apt install php8.1 php8.1-intl libapache2-mod-php8.1 php8.1-common php8.1-mysql php8.1-cli php8.1-opcache php8.1-gd php8.1-curl php8.1-cli php8.1-imap php8.1-mbstring php8.1-soap php8.1-xml php8.1-zip php8.1-intl 

Step 5. Install Microweber

First, you will need to download Microweber using the download URL and wget:

$ wget https://download.microweber.org/ -O latest.zip 

Once the download has been completed, you can unzip the directory in /var/www/microweber with the command:

 $ unzip latest.zip -d /var/www/html

Then you can navigate to /var/www and change the directory ownership:

# chown -R www-data:www-data html

Now, you can create the Apache virtual host to access the Microweber application. First navigate to /etc/apache2/sites-available and create the VirtualHost with:

 # nano your-domain.com.conf 

Make sure to change your-domain.com.conf to the domain name you plan on using Microweber with. You can add the following content in the Apache VirtualHost configuration file.

<VirtualHost *:80>

  ServerName example.com
  DocumentRoot /var/www/html/

 <Directory /> 

  Options FollowSymLinks
  AllowOverride All

 </Directory>

<Directory /var/www/html/>

 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>

Remember to change example.com to your website’s domain name or subdomain.

Step 6. Install an SSL Certificate

Certbot is the Let’s Encrypt client that makes obtaining and installing SSL/TLS certificates easier. The Let’s Encrypt Foundation wants to make the internet more secure, so they generate and issue free SSL certificates. You can install Certbot by running the following command:

# apt install certbot python3-certbot-apache

To install an SSL certificate, you can run the following command, where you will replace example.com with your domain or subdomain that you are going to use for Microweber.

# certbot --apache -d example.com -d www.example.com

Now, you can restart the Apache server, open your web browser and navigate to the URL https://example.com to open your Microweber website where you can enter the database credentials that you used in Step 3.

Congratulations! You successfully installed Microweber on Ubuntu 22.04. Now you can install modules, add your personal details and get your business up and running through Microweber.

If you want to host a Microweber website with high-end hardware at an affordable price, look no further – our Ubuntu 22.04 VPS hosting plans will let you host any software you want with dedicated resources.

Thanks for reading this tutorial – please share it with your peers if you found this guide helpful. You can also leave a comment if you liked the post or if you have any suggestions or concerns.

Leave a Comment