How to install Microweber CMS on CentOS and Rocky Linux
Microweber is a free, open source drag-and-drop CMS website builder written in the PHP programming language and Laravel 5 framework. With Microweber, you can easily create content and manage multiple screens. Microweber offers an integrated online store feature that allows selling products online. Microweber offers features like live editing, online store, statistics, templates, drag and drop, WYSIWYG HTML editor, etc.
This guide will explain how to install Microweber with the LEMP stack on a CentOS server.
Request
- A server with CentOS 8 distribution.
- Non-root users have sudo permissions.
First steps
Before you begin, you need to update your system to the latest version. You can do this by running the following command:
sudo yum update
Once the system is updated, reboot to apply the changes.
Install LEMP server
First, it is necessary to install Nginx web server, MariaDB server, PHP and other PHP modules on the system. You can install all of them by running the following command:
sudo yum install nginx mariadb-server php php-fpm php-common php-mbstring php-xmlrpc php-soap php-mysql php-gd php-xml php-cli php-zip unzip wget -y
After all the packages have been installed, you need to edit the php.ini file and make some changes, such as memory limit, maximum file size on upload, maximum execution time and time zone:
sudo vim /etc/php.ini
Make the following changes:
memory_limit = 256M upload_max_filesize = 150M max_execution_time = 360 date.timezone = Europe/Berlin
Save and close the file.
Next, start the Nginx and MariaDB services. Enable them with the following command so they are started on boot:
sudo systemctl restart nginx mariadb php-fpm sudo systemctl enable nginx mariadb php-fpm
Configure MariaDB
MariaDB is not backed up by default, so you must back it up first. You can back it up with the following command:
sudo mysql_secure_installation
This command sets the root password, removes anonymous users, disallows remote root logins, clears the test database, and reloads permissions, as shown below:
Enter current password for root (enter for none): ENTER Set root password? [Y/n]: N Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Remove test database and access to it? [Y/n]: Y Reload privilege tables now? [Y/n]: Y
Once MariaDB is secured, log in to the MariaDB shell:
mysql -u root -p
Enter your root password. Then create a database and user for Microweber (replace the word "password" with your own secure password):
MariaDB [(none)]> CREATE DATABASE microweberdb; MariaDB [(none)]> CREATE USER 'microweber'@'localhost' IDENTIFIED BY 'password';
Again, replace the word "password" with your own secure password. Next, grant the microweber user all permissions with the following command:
MariaDB [(none)]> GRANT ALL ON microweberdb.* TO 'microweber'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
Remove permissions and exit MariaDB shell:
MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> EXIT;
Install Microweber
First, download the latest version of Microweber from the official website to the /tmp directory with the following command:
cd /tmp wget https://microweber.com/download.php -O microweber-latest.zip
Once the download is complete, extract the downloaded file with the following command:
sudo mkdir /var/www/html/microweber sudo unzip microweber-latest.zip -d /var/www/microweber
Next, give the Microweber folder the correct permissions with the following command:
sudo chown -R nginx:nginx /var/www/microweber/ sudo chmod -R 755 /var/www/microweber/
Run sudo vim /etc/php-fpm.d/www.conf , set user and group to nginx. They are initially set for Apache users and groups.
sudo vim /etc/php-fpm.d/www.conf # user = nginx # group = nginx
Restart the PHP-FPM service.
sudo systemctl restart php-fpm.service
Configure Nginx for Microweber
Next, you need to create a virtual Nginx server file for Microweber. It can be created with the following command:
sudo vim /etc/nginx/conf.d/microweber.conf
Add the following lines:
server { listen 80; server_name example.com; root /var/www/microweber; index index.php; client_max_body_size 100M; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ .php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
Replace example.com in the above configuration with your own domain name. Save and close the file.
Finally, restart the Nginx web service to apply all the changes:
sudo systemctl restart nginx
You can also check the status of the Nginx service with the following command:
sudo systemctl status nginx
If everything is fine, you will see the following output:
? nginx.service - The Nginx HTTP Server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/nginx.service.d ??nginx-systemd.conf Active: active (running) since Tue 2018-12-11 15:06:45 UTC; 11min ago Main PID: 1170 (nginx) Tasks: 6 (limit: 1114) CGroup: /system.slice/nginx.service Dec 11 15:06:33 ubuntu1804 systemd[1]: Starting The Nginx HTTP Server. Dec 11 15:06:45 ubuntu1804 systemd[1]: Started The Nginx HTTP Server.
Visit Microweber
Microweber is now installed and configured. Now it's time to access the Microweber web interface.
Open a web browser and enter the URL http://example.com. You will then be redirected to the following page:
Here you enter all the details, such as database name, username and password for the database, admin username and password. Then, click the Install button. Once the installation is complete, you will be redirected to the Microweber Dashboard on the following page:
Congratulations! You have successfully installed Microweber on your CentOS 8 server. Now you can easily create your own website with Microweber.
You should read it
- Install CentOS on Windows 10 WSL
- How to install OpenLiteSpeed Web Server on Rocky Linux 8
- What is CentOS? Learn about the CentOS operating system
- How to install VLC Media Player 3 on CentOS 8
- How to install Suricata IDS on Rocky Linux
- How to install CentOS Stream on PC
- How to install and configure Apache on Rocky Linux
- Differences between RHEL, CentOS and Fedora
May be interested
- How to install KDE Plasma Desktop on CentOS 8with a relatively heavy default desktop like gnome, you might want to install something lighter or more scalable. in this article, you will learn how to install kde plasma desktop environment on centos workstations.
- How to install and configure Apache on Rocky Linuxapache http server is one of the most widely used web servers in the world. it is a free, open source, cross-platform web server that offers powerful features such as loadable modules, strong media support, and extensive integration with other software.
- What is CentOS? Learn about the CentOS operating systemused quite a lot in web hosting servers, but for most computer users, centos is still a relatively vague concept. so what is centos? use for what purpose? if you are in need of learning about centos, please refer to the following article!
- How to install the latest LibreOffice version on CentOS 8libreoffice is a powerful and open source office suite. in this article, you will learn how to install libreoffice on centos 8. at the time of writing this article, the latest version of libreoffice 6.4.3 is available for installation.
- How to install multiple Java versions on CentOS 8java is one of the most widely used high-level programming languages. in this article, readers will learn how to install different versions of java on centos 8.
- Differences between RHEL, CentOS and Fedoralinux distributions are very similar to car models. there are so many options, new options appear every day and it's hard to tell the difference between them. the following article will highlight the differences between rhel, centos and fedora.
- Compare the most popular Linux distributions todayit can be said that linux is not a complete operating system, it is just a kernel operating system, which is the foundation for developing other operating systems.
- Git environment settingsbefore you can use git, you must install and make some configuration changes. here are the steps to install git client on ubuntu and centos linux.
- Is CentOS or Ubuntu the best web hosting server operating system?with so many available linux distributions, choosing a suitable distro for your home computer is not easy. choosing a linux distribution for the server is even more difficult.
- The 5 best Linux server distributionslinux is one of the factors driving the ever-evolving internet platform today. in fact, more than 70% of all websites are powered by unix, of which linux accounts for 58%.