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.
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.
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
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.
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
#3 Step On the same page, choose any data region you want.
#4 Step Create a strong password
#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.
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.
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.
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.
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.
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.
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 install.sh
Please allow few minutes for the installation to be completed
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.
Enter with the root user and password, and you’ll have a post-installation wizard. Click on next.
Memory use settings
Email domain lookup server? Click on no less ran used, slower mail, and more CPU load.
You can skip this option for now, so just click on next.
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.
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.
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.
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.
It is better for security reasons to use hashed passwords, so select that option and click on next.
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.
Click on create a server. And there you have it, and now we need to install WordPress on this virtual server.
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 https://yourwebsitedomain.com, 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.