// 1. Why Host WordPress on a VPS
Shared hosting is fine when you're starting out, but it comes with real limitations: resource contention with other tenants, no root access, restrictive PHP and MySQL configurations, and little control over server-level caching or security.
A VPS changes everything. You get dedicated resources, full root access, and the ability to tune PHP, MySQL, and Apache exactly how WordPress needs them. Your site runs on its own isolated environment, not sharing CPU and RAM with hundreds of other accounts.
When to upgrade from shared to VPS:
- Your site is loading slowly despite optimization efforts
- Traffic spikes are crashing your site or triggering resource limits
- You need custom PHP extensions or configurations
- You're running WooCommerce or membership sites that need consistent performance
- You want to host multiple WordPress sites on one server
// 2. VPS Requirements for WordPress
| Use Case |
RAM |
CPU |
Storage |
Recommended Plan |
| Small blog/portfolio (< 5K visits/mo) |
2 GB |
2 vCPU |
30 GB SSD |
VPS Start ($24.99/mo) ★ |
| Business site / WooCommerce (5-50K visits/mo) |
4 GB |
3 vCPU |
40 GB SSD |
VPS Medium ($39.99/mo) |
| High-traffic / multisite (50K+ visits/mo) |
8 GB |
4 vCPU |
50 GB SSD |
VPS Premium ($64.99/mo) |
For most WordPress sites, VPS Start ($24.99/mo) is the sweet spot: 2 vCPU Xeon cores, 2 GB RAM, 30 GB SSD, and 3 TB bandwidth. Running WooCommerce or expecting higher traffic? VPS Medium ($39.99/mo) gives you 4 GB RAM, 3 vCPU, and unmetered bandwidth.
CPU:
████████░░░░░░░░
Xeon 2x2.20 GHz
DRIVE:
██████░░░░░░░░░░
30 GB SSD
1GBPS PORT
WEEKLY BACKUP
KVM
Order Now
CPU:
████████████░░░░
Xeon 3x2.20 GHz
DRIVE:
████████░░░░░░░░
40 GB SSD
BANDWIDTH:
████████████████
Unmetered
1GBPS PORT
WEEKLY BACKUP
KVM
Order Now
// 3. Step-by-Step: WordPress Setup on a VPS
1
Order Your VPS
Want WordPress pre-installed? Select "Other (Raise a Ticket)" from the OS dropdown and mention "WordPress on LAMP stack" in your ticket. We'll deliver your VPS with Apache, MySQL, PHP, WordPress, and SSL certificate all configured — just point your domain and start building. No extra cost.
Setting it up yourself? Choose Ubuntu 22.04 LTS and follow along.
- Head to our VPS Hosting page and select VPS Start or VPS Medium
- Choose Ubuntu 22.04 LTS as your OS
- Pick a location closest to your target audience
- Complete checkout (we accept Bitcoin via BTCPay!)
2
Install the LAMP Stack
Once your VPS is provisioned, connect via SSH and install Linux, Apache, MySQL, and PHP:
ssh root@YOUR_SERVER_IP
sudo apt update && sudo apt upgrade -y
sudo apt install apache2 -y
sudo systemctl enable apache2
sudo apt install mysql-server -y
sudo mysql_secure_installation
sudo apt install php php-mysql php-curl php-gd \
php-mbstring php-xml php-xmlrpc php-zip \
php-intl libapache2-mod-php -y
sudo systemctl restart apache2
3
Create the WordPress Database
Log into MySQL and create a dedicated database and user for WordPress:
sudo mysql
CREATE DATABASE wordpress;
CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'your_secure_password';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
4
Download and Install WordPress
Download the latest WordPress release and move it into your web root:
cd /tmp
wget https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz
sudo mv wordpress /var/www/html/
sudo chown -R www-data:www-data /var/www/html/wordpress
sudo chmod -R 755 /var/www/html/wordpress
cd /var/www/html/wordpress
sudo cp wp-config-sample.php wp-config.php
sudo nano wp-config.php
In wp-config.php, update the database connection details:
define('DB_NAME', 'wordpress');
define('DB_USER', 'wpuser');
define('DB_PASSWORD', 'your_secure_password');
define('DB_HOST', 'localhost');
5
Configure Apache Virtual Host
Create an Apache configuration file for your WordPress site:
sudo nano /etc/apache2/sites-available/wordpress.conf
Add the following configuration:
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/html/wordpress
<Directory /var/www/html/wordpress>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Enable the site and required Apache modules:
sudo a2ensite wordpress.conf
sudo a2enmod rewrite
sudo systemctl restart apache2
6
Set Up SSL with Let's Encrypt
Secure your site with a free SSL certificate from Let's Encrypt:
sudo apt install certbot python3-certbot-apache -y
sudo certbot --apache -d yourdomain.com -d www.yourdomain.com
sudo certbot renew --dry-run
7
Complete WordPress Setup
Visit https://yourdomain.com in your browser to finish the installation:
- Choose your language
- Set your site title, admin username, password, and email
- Click "Install WordPress"
- Log in to your WordPress dashboard at
/wp-admin
That's it — your WordPress site is live on your own VPS.
// 4. Essential WordPress Plugins
These four plugins cover the fundamentals every WordPress site needs:
◆ Security: Wordfence
Firewall, malware scanner, login security. The most popular WordPress security plugin. Blocks brute-force attacks and monitors file changes in real time.
◆ Performance: WP Rocket
Caching, minification, lazy loading. Dramatically speeds up your site with minimal configuration. Worth the investment for any production site.
◆ SEO: Yoast SEO
On-page SEO analysis, sitemaps, meta tags. Essential for search visibility. Guides you through optimizing every post and page for search engines.
◆ Backups: UpdraftPlus
Scheduled backups to cloud storage. One-click restore when things go wrong. Supports Google Drive, Dropbox, S3, and more.
// 5. Performance Optimization Tips
A VPS gives you the control to optimize WordPress at the server level. Here are the most impactful changes:
- Enable PHP OPcache — Caches compiled PHP bytecode so scripts don't need to be re-parsed on every request
- Configure MySQL query cache — Stores the results of frequent queries in memory for faster retrieval
- Set up browser caching headers — Tell browsers to cache static assets so returning visitors load faster
- Use a CDN — Cloudflare's free tier works great and serves your static assets from edge servers worldwide
- Optimize images before uploading — Use WebP format and compress images before upload, not after
- Keep plugins minimal — Every plugin adds load time. Remove anything you're not actively using
Pro tip: Enable OPcache by adding these lines to your php.ini:
opcache.enable=1
opcache.memory_consumption=128
opcache.max_accelerated_files=10000
opcache.revalidate_freq=60
// 6. Pre-Installation & Custom Setup
Don't want to set it up yourself? DejavuHost offers WordPress pre-installation at no extra cost.
- Select "Other (Raise a Ticket)" from the OS dropdown during checkout
- In your ticket, mention "WordPress on LAMP stack"
- Complete your order as normal
- Our team provisions your VPS with the full LAMP stack, WordPress installed, and SSL configured
- You receive SSH credentials — point your domain and start building immediately
This also works for other CMS platforms: Joomla, Drupal, Ghost, or any other application you need. No extra cost, no hassle — your server arrives ready to use.
// 8. Wrap-Up
WordPress on a VPS gives you the performance and control that shared hosting can't match. You get dedicated resources, root access, and the ability to optimize every layer of the stack.
VPS Start ($24.99/mo) is plenty for blogs, portfolios, and small business sites. VPS Medium ($39.99/mo) handles WooCommerce, membership sites, and higher traffic with ease.
Or skip the setup entirely — tell us "WordPress on LAMP" when ordering and we'll deliver it ready to use.