Building a WordPress Website on Ubuntu Nginx Vps Server

 Building a WordPress Website on Ubuntu Nginx Vps Server 

Ubuntu is a Linux OS VPS stands for Visual Private Server

WordPress is an Open Source CMS ( content management system ).

Photo by Pexels

It is a software that can easily create a website

I want to make a blog website easily

When you want to create a content-focused website

When you want to make money by monetizing your Facebook Page like instant articles

If you want to make money with Google AdSense content, you can easily create a website with WordPress

WordPress can be hosted on shared hosting as well as VPS servers

What is the difference between Shared Hosting and VPS?

Shared Hosting is a place for VPS, Dedicated Server

You have to use it as you are given

The good news is that the VPS, Dedicated Server owner has User Panel software and useful software

Because he has already done everything to set up a server

You can use the class without having to do anything

You can easily install WordPress from GUI software like Cpanel

VPS Server is the software from Nginx, Php, Mysql, PhpMyAdmin to the OS.

You have to do the installation yourself and do by the setup yourself

In this post, I will install WordPress without installing them

I will tell you

What makes a VPS Server special is that you can create as many websites as you want on each server

That’s why we use VPS Server

First, login to your admin account from ssh

Then create a folder with the name of the website you want to create in / var / www / html

For example, if you want to create a website called, create a folder with that name 

sudo mkdir /var/www/html/

Now you have created a folderGo to that folder and download wordpress

cd /var/www/html/ wget -c

Then download wordpress latest and the file name will be latest.tar.gz

tar -xzvf latest.tar.gz

I will extract the fileOnce the file is extracted, it will contain the files in a large folder called wordpressSo let’s move the files

sudo mv wordpress/* /var/www/html/

Now all the files are in the folderThis will give you Folder Permissions

sudo chown -R www-data:www-data /var/www/html/
sudo chmod -R 755 /var/www/html/

Copy and paste this ConfEnter your domain in the server nameEnter your php-fpm version in the phpfpm fieldHere is the 8.0 update

server {

    root /var/www/html/your website url;
    index index.php;

location / {
        try_files $uri $uri/ /index.php?$args;

location ~ \.php$ {
        try_files $uri =404;
        include fastcgi_params;
        fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
        fastcgi_index index.php;
        fastcgi_intercept_errors on;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;


When you're done, save it

Then you need to make a symbolic link to the conf file from sites-available to sites-enabled.

sudo In -s /etc/nginx/sites-available/your domain.conf /etc/nginx/sites-enabled/ 

Whenn you done and restart Nginx

In the Database Name field, type the name of the database you created

Username, Password is the Database user name password

Database Host should be localhost only

When done, click Submit

In the Site Title field, enter your site name

Username and Password are for wordpress admin

Give it a try

Click install wordpress

Post a Comment

Previous Post Next Post