If you want to host a website for free, installing WordPress on a free VPS is the best way to get full control without paying for shared hosting.
The good news? You can do this on any free VPS from Oracle Cloud, Google Cloud, or from the providers listed on GratisVPS.net.
This step-by-step guide shows you exactly how to install WordPress on a free VPS — even if you’ve never used Linux before.
1. Choose Your Free VPS
You can use any free VPS from:
-
Oracle Cloud Free Tier
-
Google Cloud free region
-
Community VPS programs
-
Verified free VPS providers
👉Get a free VPS here: https://gratisvps.net/
For the tutorial, we will use Ubuntu 22.04, but any Linux distro works.
2. Connect to Your VPS via SSH
If you’re on Windows, use PuTTY.
On macOS/Linux, use Terminal.
Run:
If it asks “Are you sure you want to continue?”, type yes and press Enter.
3. Update Your Server
This ensures everything is up to date.
4. Install LAMP Stack (Linux, Apache, MySQL, PHP)
Install Apache
Check status:
Install MySQL
Secure it:
Install PHP + Modules
Restart Apache:
5. Create a MySQL Database for WordPress
Login to MySQL:
Inside MySQL, create database & user:
6. Download WordPress
Move to the web directory:
Delete the default file:
Download WordPress:
7. Configure WordPress
Copy sample config:
Edit it:
Update these lines:
Save with:
CTRL + X, then Y, then ENTER
8. Fix Permissions
9. Access WordPress in Your Browser
Go to:
You will see the WordPress installation screen.
Choose your language → enter site details → create admin user.
Congratulations — WordPress is now running on your free VPS!
10. (Optional) Install HTTPS for Free with Let’s Encrypt
If you have a domain, install free SSL:
Follow the instructions to secure your site with HTTPS.
🎉 Your WordPress Site Is Now Live — For Free
You’ve installed WordPress on a free VPS using:
✔ Free Linux VPS
✔ Apache
✔ MySQL
✔ PHP
✔ Free SSL
✔ Zero hosting costs
This setup is faster and more secure than cheap shared hosting.
🔗 Ready to Expand Your Free VPS Setup?
See updated free VPS providers here:
👉 https://gratisvps.net
You can now install multiple WordPress sites, create subdomains, or host a full blog — all without paying for hosting.

