
๐ 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 resources, full 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.