๐Ÿ› ๏ธ How to Install WordPress on a HostEONS VPS

๐Ÿš€ Full Root Access | ๐Ÿ” Secure Setup | ๐ŸŒ Open-Source Power

If youโ€™re ready to take full control of your WordPress website, installing it on a HostEONS VPS is the best way to go. Unlike shared hosting, a VPS gives you dedicated resourcesfull root access, and the ability to customize your server exactly the way you want.

This guide will walk you through how to install WordPress on a HostEONS VPS step-by-step.


โœ… Prerequisites

Before you begin, make sure you have:

  • Aย HostEONS VPSย with a clean install ofย Ubuntu 20.04 or 22.04
  • Root SSH access
  • A registered domain (you can buy one fromย HostEONS Domains)
  • Pointed the domainโ€™s A record to your VPS IP

๐Ÿ”ง Step 1: Update the Server

Log into your VPS using SSH:

ssh root@your-server-ip

Update your package list:

apt update && apt upgrade -y

โ˜๏ธ Step 2: Install Required Software (LEMP Stack)

1. 

Install NGINX

apt install nginx -y

Start and enable NGINX:

systemctl start nginx
systemctl enable nginx

2. 

Install MySQL

apt install mysql-server -y

Secure your database setup:

mysql_secure_installation

Then log in and create a database for WordPress:

mysql -u root -p

CREATE DATABASE wordpress;
CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'strongpassword';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

3. 

Install PHP

apt install php-fpm php-mysql php-cli php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip -y

๐ŸŒ Step 3: Configure NGINX for WordPress

Create a new NGINX config:

nano /etc/nginx/sites-available/yourdomain.com

Paste the following:

server {
    listen 80;
    server_name yourdomain.com www.yourdomain.com;

    root /var/www/html;
    index index.php index.html;

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

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    }

    location ~ /\.ht {
        deny all;
    }
}

Activate the config:

ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
nginx -t
systemctl reload nginx

๐Ÿ“ฅ Step 4: Download and Install WordPress

Navigate to web root:

cd /var/www/html
rm index.nginx-debian.html

Download WordPress:

wget https://wordpress.org/latest.tar.gz
tar -xvzf latest.tar.gz
mv wordpress/* .
rm -rf wordpress latest.tar.gz

Set the correct permissions:

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

โœ๏ธ Step 5: Configure wp-config.php

Copy the sample config:

cp wp-config-sample.php wp-config.php

Edit it:

nano wp-config.php

Update the database section with the credentials you created earlier:

define( 'DB_NAME', 'wordpress' );
define( 'DB_USER', 'wpuser' );
define( 'DB_PASSWORD', 'strongpassword' );
define( 'DB_HOST', 'localhost' );

Save and exit.


๐Ÿ”‘ Step 6: Finish Installation via Browser

Now go to:

http://yourdomain.com

Follow the on-screen instructions to complete the setup:

  • Choose your language
  • Set your site title, username, password, and email
  • Log in to your new WordPress dashboard

๐ŸŽ‰ Done! Youโ€™re Now Running WordPress on a HostEONS VPS

Youโ€™ve successfully installed WordPress on your VPS! You now have full control over your hosting environment, with speed and security unmatched by shared hosting platforms.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.