Boela kwa blog
Ferikgong 13, 2026Dikaelo

Jang go Tsenya WordPress mo VPS Server

Kaelo e e tletseng ka ga go tsenya WordPress CMS mo Linux server ka Nginx, MySQL, le PHP.

Jang go Tsenya WordPress mo VPS Server

WordPress ke system ya botsamaisi ba dikagare e e tumileng thata mo lefatsheng, e e tsamaisang dimilione tsa di-website. Kaelo e e tla go thusa go tsenya WordPress mo Hiddence VPS server ya gago ka Nginx, MySQL, le PHP (LEMP stack).

Di-prerequisite

  • Ubuntu/Debian kgotsa CentOS server
  • Domain name e e supang kwa IP ya server
  • SSH access mo server
  • Nginx, MySQL, le PHP di tsentswe

Tlhama MySQL Database

Santlha, tlhama database le modirisi wa WordPress:

bash
sudo mysql -u root -p
CREATE DATABASE wordpress_db;
CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'strong_password';
GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wp_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Lada WordPress

Lada le go ntsha WordPress:

bash
cd /var/www
sudo wget https://wordpress.org/latest.tar.gz
sudo tar -xzf latest.tar.gz
sudo chown -R www-data:www-data /var/www/wordpress

Beakanya WordPress

Tlhama wp-config.php file:

bash
cd /var/www/wordpress
sudo cp wp-config-sample.php wp-config.php
sudo nano wp-config.php
# Ntšhwafatsa database name, username, le password

Beakanya Nginx Server Block

Tlhama peakanyo ya Nginx:

bash
sudo nano /etc/nginx/sites-available/yourdomain.com
# Tsenya server block ka root /var/www/wordpress
sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx

Seta Ditetla tse di Nepagetseng

bash
sudo chown -R www-data:www-data /var/www/wordpress
sudo find /var/www/wordpress -type d -exec chmod 755 {} \;
sudo find /var/www/wordpress -type f -exec chmod 644 {} \;

Wetsa Tsenyo ya WordPress

Bula domain ya gago mo browser mme o latele wizard ya tsenyo ya WordPress. Tsenya dintlha tsa database, leina la saete, username ya admin, le password.

Dikeletso tse di Mosola

  • Boloka WordPress le di-plugin di ntšhwafaditswe go na le tshireletso
  • Dirisa di-password tse di thata tsa akhaonto ya admin
  • Tsenya di-plugin tsa tshireletso jaaka Wordfence
  • Seta di-backup tsa gale (bona kaelo ya rona ya backup)
  • Letlelela SSL certificate sa HTTPS