Want full control over your WordPress site without the limitations of shared hosting? Installing WordPress on a VPS is the way to go. In this guide, we’ll show you how to set up WordPress on a VPS using Ubuntu — step by step.
🚀 Why Install WordPress on a VPS?
A VPS gives you more power, flexibility, and performance compared to shared hosting:
-
Full root access
-
Dedicated resources
-
Custom software stack
-
Better speed and security
You can start with a free VPS from GratisVPS.net to follow this tutorial.
🛠️ What You’ll Need
-
A VPS running Ubuntu 20.04 or 22.04
-
SSH access (provided in GratisVPS Dashboard)
-
A domain name (optional but recommended)
-
Basic terminal knowledge
📦 Step 1: Connect to Your VPS via SSH
Replace your-server-ip with your actual VPS IP address.
⚙️ Step 2: Update the System
🧱 Step 3: Install LAMP Stack (Linux, Apache, MySQL, PHP)
Install Apache:
Install MySQL:
Follow the prompts to secure your MySQL installation.
Install PHP and Extensions:
🗃️ Step 4: Create a MySQL Database for WordPress
Log in to MySQL:
Then create a database and user:
📥 Step 5: Download WordPress
🔧 Step 6: Configure WordPress
Rename the sample config file:
Edit the file with your database info:
Update these lines:
🔐 Step 7: Set Permissions and Restart Apache
🌐 Step 8: Access WordPress in Your Browser
Go to:
You’ll see the WordPress installation screen. Follow the setup to complete your site!
If you have a domain name, point it to your VPS IP and install SSL with Let’s Encrypt (optional).
🧩 Internal Resources
✅ Final Thoughts
Installing WordPress on a VPS gives you full control and better performance compared to shared hosting. With this guide, you’re ready to build your website with confidence.
👉 Get your free VPS now and start your WordPress journey today!

