1. Update the System and Configure Firewalld
Ensure your package index is entirely up to date and open the HTTP/HTTPS network ports.
sudo dnf update -y
sudo firewall-cmd --permanent --add-service={http,https}
sudo firewall-cmd --reload
2. Install Nginx
Install the Nginx web server, then start and enable it to run on boot.
sudo dnf install nginx -y
sudo systemctl enable nginx
sudo systemctl restart nginx
sudo dnf install php php-mysqlnd php-gd php-xml php-mbstring php-json php-fpm php-mysqlnd php-curl php-dom php-xml php-exif php-fileinfo php-intl php-mbstring php-zip -y
3. INSTALL MARIADB
# Install and start MariaDB
sudo dnf install mariadb-server mariadb -y
sudo systemctl start mariadb
sudo systemctl enable mariadb
# Log into MariaDB to create database and user
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE wordpress_db;
CREATE USER 'wordpress_user'@'localhost' IDENTIFIED BY 'Secure_Password';
GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wordpress_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
4. SETUP THE REST
vi /etc/php-fpm.d/wordpress.conf
[wordpress]
user = nginx
group = nginx
listen = /run/php-fpm/nginx.sock
listen.acl_users = apache,nginx
listen.owner = nginx
listen.group = nginx
pm = ondemand
pm.max_children = 50
pm.process_idle_timeout = 5s
5. SETUP NGINX SSL FROM ZEROSSL
6. SETUP WORDPRESS
https://drive.google.com/drive/folders/1qPlSAOgNoliy5b58ZYkB96_CqvaqT3z4?usp=sharing
# cd /root
DOWNLOAD WHICH VERSION .ZIP OR .TAR.GZ
# unzip filename.zip
# mv ./directory_afterzip /var/www/html/wordpress
or
# cd /root
# tar -zxvf filename.tar.gz
# mv ./directory_that_been_unzip /var/www/html/wordpress
sudo chown -R nginx:nginx /var/www/html/
sudo chmod -R 755 /var/www/html/
6. Complete the Installation via Web Browser
Open your favorite browser and navigate to your server’s IP address or domain name (e.g., http://your_server_ip). Follow the on-screen prompts to connect your database using wordpress_db, wp_user, and YourSecurePassword. Fill in your administrative details to launch your live WordPress website
sudo find /var/www/html/wordpress -type d -exec chmod 755 {} \;
sudo find /var/www/html/wordpress -type f -exec chmod 640 {} \;
chmod 440 /var/www/html/wp-config.php
IF THERE IS ERROR COMMENT ON COMMENT AT THIS POST OR AT LIVE CHAT … .
![]()