How to Install WordPress via Webmin on Ubuntu 20.04 / Debian

How to Install WordPress via Webmin on Ubuntu 20.04 / Debian. In this post, we will introduce Webmin, its features, then explain step by step procedure to install Webmin and install WordPress via the Webmin dashboard.

So lets start this article blog about How to Install WordPress via Webmin on Ubuntu 20.04 / Debian.

What is Webmin?

Webmin is a web based interface used by system administrators for Linux/Unix. Through its single interface or seamless login on other hosts on a similar subnet or LAN, you can control several machines. It also enables you to use any modern web browser to connect to your server.

With the help of Webmin, you do not have to edit Linux/Unix configuration files manually. It also enables you to manage the server from your console or remotely. Moreover, you can configure operating system internals like users, service, or configuration files, disk quotas, and modify and control open source applications like PHP, Apache, Tomcat, DNS, file sharing, and MySQL. Since it is based on Perl, it runs on its own process and web server.

Webmin’s small learning curve enables its customers to navigate effortlessly. Its dashboard provides the statistics of CPU, RAM, and disk space with understandable charts. To make necessary changes, you can look at the search function in the sidebar. Further, if you want to perform any advanced functions, you can use a terminal available in its dashboard.

Features Of Webmin

Well Webmin provides its users with the following features:

  • Constitutes a BIND DNS server option used for RNDC, clustering, zones, and implementing DNSSES.
  • Comes with PHP versions and variables that can configure effortlessly from the dashboard after it has been installed from the command shell.
  • Its Graphical file management makes the process of editing, uploading, and downloading files seamless.
  • Native server security feature that provides IPtables firewalls, RAID configuration, directory protection, log viewers, two factor authentication, and much more while including third party modules.

Update System Packages

Before starting, you will need to update all your system packages to the latest version. You can update all of them using the following commands:

				
					apt update -y
apt upgrade -y
				
			

Once all the packages are updated, you can install other required dependencies by running the following command:

				
					apt install wget apt-transport-https software-properties-common gnupg2 -y
				
			

After the successful installation, you can proceed to install Webmin.

Install Webmin

By default, the Webmin package is not available in the Ubuntu default repository. So you will need to add the Webmin repository to your server.

First, download and add the Webmin key using the following command:

				
					wget -q http://www.webmin.com/jcameron-key.asc -O- | apt-key add -
				
			

Next, add the Webmin repository with the following command:

				
					add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
				
			

Then install the Webmin package by running the following command:

				
					apt install webmin
				
			

You should see the following output:

				
					Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libauthen-pam-perl libio-pty-perl libnet-ssleay-perl perl-openssl-defaults
The following NEW packages will be installed:
  libauthen-pam-perl libio-pty-perl libnet-ssleay-perl perl-openssl-defaults webmin
0 upgraded, 5 newly installed, 0 to remove and 24 not upgraded.
Need to get 28.8 MB of archives.
After this operation, 305 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
				
			

Now start the Webmin service and enable it to start at system reboot using the following command:

				
					systemctl start webmin
systemctl enable webmin
				
			

You can also check the status of the Webmin with the following command:

				
					systemctl status webmin
				
			

You will get the Webmin status in the following output:

				
					● webmin.service - Webmin server daemon
     Loaded: loaded (/lib/systemd/system/webmin.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-08-30 08:14:50 UTC; 53s ago
    Process: 3902 ExecStart=/usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf (code=exited, status=0/SUCCESS)
   Main PID: 3912 (miniserv.pl)
      Tasks: 1 (limit: 2347)
     Memory: 28.6M
     CGroup: /system.slice/webmin.service
             └─3912 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf

Aug 30 08:14:48 ubuntu2004 systemd[1]: Starting Webmin server daemon...
Aug 30 08:14:48 ubuntu2004 perl[3902]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root
Aug 30 08:14:50 ubuntu2004 webmin[3902]: Webmin starting
Aug 30 08:14:50 ubuntu2004 systemd[1]: Started Webmin server daemon.

				
			

Access Webmin Dashboard

At this point, Webmin is installed and listening on port 10000. You can check it with the following command:

				
					ss -antpl | grep 10000
				
			

You should see Webmin listening port in the following output:

				
					LISTEN    0         4096               0.0.0.0:10000            0.0.0.0:*        users:(("miniserv.pl",pid=3912,fd=5))                                          
				
			

Now, open your web browser and access the Webmin web interface using the URL https://your-server-ip:10000. You should see the SSL security warning page:

Click on the proceed to your-server-ip. You will be redirected to the Webmin login page:

Provide your root username, password and click on the Sign in button. You should see the Webmin dashboard on the following page:

Now it is the main part of How to Install WordPress via Webmin on Ubuntu 20.04 / Debian start’s here.

How to Install WordPress via Webmin on Ubuntu 20.04 / Debian

In this section, we will show you how to install WordPress via the Webmin dashboard.

Install LAMP Server

To install WordPress, you will need to install the LAMP server on your server. You can easily install the LAMP server via Webmin.

Click on the System => Software Packages. You should see the package installation page:

Select Package from APT, type lamp-server^ and click on the Install button to install the LAMP server on your system.

Configure Apache Web Server

Next, you will need to create an Apache virtual host configuration file to host the WordPress.

Click on the Unused Modules => Apache Webserver. You should see the Apache configuration section.

Click on the Create virtual host. You should see the virtual host configuration screen:

Provide your WordPress directory path, port, server name, and click on the create now button. You should see your virtual host configuration on the following page:

Upload WordPress Directory

Next, you will need to download the latest version of WordPress to your local system and upload it on the server via Webmin.

Click on the Tools => File Manager and go to the /var/www/html/wordpress directory. You should see the following page:

Click on the File => Upload to the current directory, then upload your downloaded WordPress directory content on the Webmin. You should see the following page:

Next, select the WordPress directory, click on the Tools => Change Ownership button. You should see the following page:

Define your Apache user, and group then click on the Change button to set the ownership.

Create a Database and User for WordPress

Next, you will need to create a database and user for WordPress.

Click on the Servers => MySQL Database Server. You should see the following page:

Click on Create a new database. You should see the database creation page:

Provide your database name and click on the Create button.

Next, click on User Permissions. You should see the following page:

Click on the Create new user. You should see the user creation page:

Provide your username, password, host, permission, and click on the Create button.

Access WordPress Installation Wizard

At this point, WordPress is installed and configured via Webmin. You can now access it using the URL http://wordpress.example.com. You should see the WordPress language selection page:

Select your language and click on the Continue button. You should see the following page:

Click on the Let’s go!. You should see the WordPress database configuration page:

Provide your WordPress database, username, password, host and click on the Submit button. You should see the following page:

Click on the Run the installation button. You should see the WordPress site information page:

Define your site title, username, password, email, and click on the Install WordPress button. You should see the following page:

Click on the Log in button. You should see the WordPress login page:

Provide your admin username, password and click on the Log in button. You should see the WordPress dashboard on the following page:

Thank you for reading How to Install WordPress via Webmin on Ubuntu 20.04 / Debian. We shall conclude. 

How to Setup WordPress SSO Single Sign On

How to Install WordPress via Webmin on Ubuntu 20.04 / Debian Conclusion

In this step by step guide, we learned how to install the WordPress via Webmin interface. This guide will be helpful for those users who don’t have enough knowledge of the Linux command line. After following this guide, any beginner user can install WordPress easily via Webmin. You can now install your preferred themes, plugins and start creating your first blog post using the WordPress admin dashboard.

Why don’t you check out more WordPress content here. 

Avatar for Hitesh Jethva
Hitesh Jethva

I am a fan of open source technology and have more than 10 years of experience working with Linux and Open Source technologies. I am one of the Linux technical writers for Cloud Infrastructure Services.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x