🌐 How do I install WordPress on a VPS?

Questions and discussions about VPS plans, Linux setup, WordPress, Nginx, NAT and VPS configuration in Bulgaria.
rychy
Site Admin
Мнения: 132
Регистриран на: Вто Окт 20, 2026 10:45 am

🌐 How do I install WordPress on a VPS?

Мнение от rychy »

🇧🇬 Прочети на български

WordPress is the most popular CMS platform. Here is how to install it on your VPS:

Requirements

  • Nginx or Apache
  • PHP 8.1+
  • MySQL / MariaDB

Installation

1. Install the required packages:

apt update && apt install -y nginx php8.3-fpm php8.3-mysql php8.3-curl php8.3-gd php8.3-mbstring mariadb-server

2. Create a database:

mysql -u root -p

CREATE DATABASE wordpress;

CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'strong-password';

GRANT ALL ON wordpress.* TO 'wpuser'@'localhost';

EXIT;

3. Download WordPress:

cd /var/www

wget https://wordpress.org/latest.tar.gz

tar -xzf latest.tar.gz

chown -R www-data:www-data wordpress/

4. Configure Nginx for your domain and finish the installation in the browser.

Recommendations

  • Install SSL with Let's Encrypt: certbot --nginx -d your-domain.com
  • Use a caching plugin such as W3 Total Cache
  • Make regular backups
Any questions? Write here!

If you are looking for VPS plans in Bulgaria for a setup like this, see VPS in Bulgaria.