In this guide, I will show you how to install WordPress on ubuntu using Webmin hosting manager. 

This is a wonderful solution if you want to have a VPS server with high-performance, this way, you can save Cpanel monthly plan and still manage your websites with only one control panel! 

Why WordPress? and not Wix or Squarespace? WordPress is the most approachable CMS(content management system) on the internet.

 It powers more than 40% of all websites on the internet.

Why Using A Digital Ocean VPS?

There are mainly two affordable unmanaged VPS companies on the internet, Digital Ocean and Contabo. In this article, we will be using the digital ocean.

Screenshot 2021 11 02 165810 1

WordPress is a PHP application that needs to be accessed publicly over the internet. In order to upload all our files, we need a public server. In our case, we usually have two options.

VPS Hosting

In this article, I will install WordPress on ubuntu using digital ocean. Using a VPS server has a lot of benefits, such as:

  • Scale up or down resources instantly 
  • Private IP address
  • Dedicated resources
  • Enhanced performance
  • Save money in the long term

Shared Hosting

As the sentence says, shared hosting simply means your website will be hosted on hosting services like Bluehost or HostGator, together with many other websites. You know, I like VPS as it offers better performance than shared hosting if you’re following me.

VPS vs. Shared Hosting

This comparison would require an entire article, but in short, VPS has many advantages over shared hosting.

Untitled 6 1

Usually, people prefer to go with shared hosting because you can outsource the server updates to the hosting provider. Again this is an easy task, as I’m going to show you in short.

How To Install WordPress On Ubuntu Using Digital Ocean

First, let’s get a domain name; there are many domain registrars over the internet like Namecheap, GoDaddy, etc.

Most of the users would look for a .com because it is the most used on the internet.

Let’s Get A VPS Server From Digital Ocean

#1 Step Go to the digital ocean web page.

You will notice many VPS configurations. You can start with the cheapest, and if you need more resources, you can upgrade anytime.

#2 Step  Select Ubuntu 20.04 (LTS) x64 as the operating system

Screenshot 2021 11 02 171441 1

#3 Step  On the same page, choose any data region you want.

Screenshot 2021 11 02 171553 1

#4 Step Create a strong password

Screenshot 2021 11 02 171645 1

#5 Step Give your droplet a name. Make sure to give a name you’ll remember.

Click on create droplet, and there you have it, now digital ocean will make a server for you, grab a cup of coffee, as this will take a couple of minutes, depending on your internet speed.

Screenshot 2021 11 02 171837 1

Domain Mapping – Map Your Domain Name With Your VPS Server

Ok, now you have a VPS server. Next, we need to connect our VPS IP address with our domain provider so that we can access our website using the domain name, so go to your domain provider ( the procedure is the same even if you’re using Namecheap or GoDaddy)

Configure DNS Records

To configure your DNS records, open your DNS management zone, and where it says “points to,” insert your IP address.

Untitled 7

Usually, it takes 30 minutes for the domain migration to propagate over the internet. If you want to check your DNS propagation, insert your domain name on this website, and it will show you your DNS propagation.

Webmin/ Virtualmin Installation On VPS Server

Finally, our server is ready for installation.

Untitled 13

Before installing WordPress, we need to install Webmin and connect to our VPS server. To do that, we need to use an SSH client like putty that will allow us to install Webmin (web hosting manager) 

Watch this video where I walk you step by step the installation of WordPress

Install Putty SSH Client

Whenever we create a server, we need an application to connect to these machines and configure them using the SSH protocol, one of the most used applications in this industry, the Putty SSH client.

If you’re using Mac, use this SHH installer

If you’re using Windows, use this SHH installer 

After you’ve downloaded the installed, go through the simple installation process.

Open putty and simply enter your domain name or IP address. It will ask you to enter the username, just log in as root and then insert the password you created earlier in digital ocean.

Screenshot 2021 11 02 173753 1

If you don’t see your password while typing it, do not panic, this is for security reasons. Now that you are inside your console, we can install our web hosting manager, and this is so simple as typing two commands.

Screenshot 2021 11 02 174233 2

Run this command:


It will ask you the following

Exit and re-run this script with --help flag to see available options.Continue? (y/n) y
[INFO] Started installation log in /root/virtualmin-install.log

Simply type the letter Y for yes

Now execute the downloaded install script using a command like the following:

sudo /bin/sh

Please allow few minutes for the installation to be completed

Screenshot 2021 11 02 185331 1 1

And that’s it! So simple right?

 If you encounter any issues, comment below, I will be happy to help you!

Now the installation is finished. We need to configure our Web hosting manager.

For your first Webmin login, you will receive a security warning on your browser on your first visit , don’t worry, this is normal, just click on advanced and go to the login dashboard.

Screenshot 2021 11 02 191759

Enter with the root user and password, and you’ll have a post-installation wizard. Click on next. 

Screenshot 2021 11 02 191944

Memory use settings

Email domain lookup server? Click on no less ran used, slower mail, and more CPU load.

Screenshot 2021 11 02 192300

Virus scanning

You can skip this option for now, so just click on next.

Spam filtering

Here it will ask you about the spam assassin, the spam filtering software, to filter spam emails. We don’t need it for now, as we need to save some resources.

Database’s server

In our case, we are going to run only Maria DB/Mysql database server. This configuration is optimized by default, so just keep it as it is and click on next.

Screenshot 2021 11 02 192623 1

Mysql Password

Save this password somewhere, anyway you can change it later, and click on next.

MariaDB/Mysql database size

Here it will ask you for the database size. You can change this configuration also later on. For now, click on a large system.

Screenshot 2021 11 02 194538 1

DNS Configuration

Now it will ask you for the DNS configuration. Simply click on the skip as you may be using Namecheap or any other hosting provider, just not the server.

Password Storage 

It is better for security reasons to use hashed passwords, so select that option and click on next.

Screenshot 2021 11 02 194916 1

Our post-installation wizard is finished. Just click on re-check and refresh configuration. Our server is finally ready to host our WordPress website.

Create Our First Virtual Server 

New virtual server details

Here enter your domain name, create a solid virtual server password or if you want the system can generate a password automatically for you, then click on enable features, and click on setup SSL website too, so we can set up let’s encrypt SSL later.

Screenshot 2021 11 02 195848 1 1 1

Click on create a server. And there you have it, and now we need to install WordPress on this virtual server.

Installing WordPress

This is the easiest part, go to install script>> select WordPress>>show install options>>install it on a top-level and click install. WordPress will now be installed, and everything will be configured automatically if this is your first WordPress website hosted on a VPS server, congratulations!

At the bottom of the installation wizard, click on that link, it will open WordPress and choose a solid password and click continue. That’s it. You’ve successfully set up your WordPress website.

Basic Concepts Of SSL

What is SSL, and why is it essential for your WordPress website or any website on the internet?

Whenever you navigate the web and open any website, the network protocol used in this operation is HTTP protocol. Now, when your device communicates with any internet server, the HTTP protocol is not secured by default. All the data is exchanged on the network from that website is fully readable, so anyone listening on the web can read and intercept it. 

With HTTPS protocol, all the traffic sent and received will be encrypted between your server and the user.

Secure Your WordPress Website With Let’s Encrypt SSL

Installing an SSL certificate is like drinking a cup of coffee. On the left and side of your control panel dashboard, simply go to server configuration>>SSL certificate, select let’s encrypt SSL certificate, choose the top domain in the list. Select domain names listed here, then click on request certificate.


If you go to your website by typing, you will see a padlock that is your free SSL certificate. Now you’ll website is secure.

If it’s overwhelming for you this to start using a VPS server, begin with bluehost shared hosting and whenever you want to upgrade, feel free to refer back to this guide, also,let me know your thoughts in the comments below, and don’t forget to subscribe to my youtube channel for more updates on digital marketing and tech guides

Thank you for reading.