In this tutorial, we will show you how to install Microweber on a Debian 9 VPS.
Microweber is a feature-rich open-source content management system and website builder. It is based on the PHP programming language and the robust Laravel Java framework. Microweber’s drag-and-drop technology and real-time writing and text editing functionality provides a quick and easy way to create your content, helping turn your website into a rich environment for you to express your thoughts. It also comes with built-in storefront features, allowing you to create an e-commerce site from which you can sell your products on the Internet. Let’s begin with the installation.
Table of Contents
Prerequisites:
- For the purposes of this tutorial, we will be using a Debian VPS.
- You will also need a working LAMP or LEMP (Linux, Apache/Nginx, MySQL, PHP) stack.
- Full SSH root user access or a user with sudo privileges is also required.
Step 1: Connect to Your Server and Update
Before we begin, you will need to connect to your server via SSH as the root user or as any other user that has sudo privileges.
To connect to your server as the root user, use the following command:
Make sure to replace IP_ADDRESS and PORT_NUMBER with your actual server IP address and SSH port number.
Once logged in, make sure that your server is up-to-date by running the following commands:
Step 2: Install Nginx
We will be using a LEMP stack for our Microweber website, so the first step will be to install the Nginx web server.
To install Nginx on your Debian 9 server, run the following command:
Once the installation is complete, enable the Nginx service to start automatically upon system boot. You can do that with the following command:
To verify that Apache is running, execute the following command:
The output should look something like this:
Also, you can verify that Nginx is running by opening a web browser and visiting your server IP address (http://your-server-ip). You should get the Nginx welcome page. If everything shows up alright, then we can move onto the next step.
Step 3: Install MariaDB
The next step is to install the MariaDB database server, an open-source variant of MySQL that is functionally identical.
To install MariaDB on your system, type the following command and enter the character ‘Y’ when prompted:
During the installation, you will be asked to enter a password for the MariaDB root user. Make sure to enter a strong password.
To further improve the security of our MariaDB installation as well as set up a password for our MariaDB root user, we need to run the mysql_secure_installation
script and follow the on-screen instructions. Run the command below to configure your system:
If the program asks you to enter your current MariaDB root password, just press your [Enter] key once, as no password is set by default when installing MariaDB. If you however did set a password during install, just enter the password you entered earlier.
A few more questions will be displayed on-screen – it is recommended that you answer yes to all of them by entering the character ‘Y’:
Again, we can enable MariaDB to start on boot with the following command:
That’s it – MariaDB has been installed and made more secure.
Step 4: Install PHP 7.2
The last step of our LEMP stack setup is to install PHP. Debian 9 comes with PHP 7.0 by default, but we will show you how to install PHP 7.2 instead.
We will also include some additional modules in order to help PHP to connect with our Nginx and MariaDB servers. Additionally, we will install modules that are required by our Microweber site.
First, execute the following commands in order to enable the PPA and install the required packages which are required for the PHP 7.2 installation. Then, import the package signing key in order to configure a PPA for the PHP packages on your Debian 9 system.
We can now install PHP 7.2 and all the required modules with just one line:
Use the next command to check the PHP version currently installed on your server:
You should receive the following text as the output:
Step 5: Install Microweber
We can now start with our Microweber installation and configuration.
First, we need to create a new database. To do this, log in to your MariaDB database server as the root user by typing the following command:
To create a new database and user, run the following commands on the MariaDB shell:
Make sure to replace strong-password with an actual strong password.
To exit the MariaDB database server command line, type:
Next, let’s create a new directory for our Microweber site:
We can now download the latest Microweber version from the official site. You can do this with the following command:
To extract the file in our Microweber directory, execute the following command:
The owner of the files needs to be the user of the web server running on your system. In our example, we are using the Nginx web server and Apache runs under the “www-data” user on Debian 9. To change the owner of the files, you can then run the following command:
Step 6: Configure Nginx
In this step, we will show you how to create a virtual host file for Nginx – this is so you can access your Microweber installation using your domain name instead of an IP address.
Create the virtual host file by executing the following command. We’re using nano as our text editor, but you can use a different one if you prefer:
Once the file is open, enter the following information:
Make sure to replace mydomain.com
with your actual domain name. This requires that you already have a registered domain name that’s already set up and pointing to your server’s IP address.
To enable the new Microweber virtual host, run the following command:
Now, check the configuration files to make sure that there are no syntax errors. Any errors could crash the web server on restart.
Output:
If there are no errors, you can reload the Nginx config.
Step 7: Accessing Microweber
You can now open your preferred web browser and access your Microweber installation at http://mydomain.com
(of course, make sure to replace mydomain.com with the actual domain name you used when creating the Nginx virtual server block).
This will take you to the initial setup page for Microweber.
You will first need to enter your Database Server information, including the MySQL username, the password for the user, and the database name that we created for our Microweber website:
You can also choose a template for your website:
The last step is to create an Admin user:
After you are finished entering all of the required information, click the “Install” button. After a few seconds, the Microweber installation will be completed, and you can access your admin panel and start building your website.
That’s it! Microweber has been successfully installed on your Debian 9 server.
Of course, you don’t have to install Microweber on Debian 9 if you have a Managed Debian Server with us. You can simply ask our support team to install Microweber on Debian 9 for you. They are available 24/7 and will be able to help you with the installation.
PS. If you enjoyed reading this blog post on how to install Microweber on Debian 9, feel free to share it on social networks using the shortcuts below, or simply leave a comment in the comments section. Thanks.