wget https://drive.google.com/file/d/1UZVx_bf-LkgvcRjON0GL0Y4fWHsPWcnG/view?usp=sharing
or download from :
https://drive.google.com/file/d/1UZVx_bf-LkgvcRjON0GL0Y4fWHsPWcnG/view?usp=sharing
or download from :
wget https://drive.google.com/file/d/1JAFAOaplLRuX8jZEX0_Gp7rRIV1ptuC6/view?usp=sharing
https://drive.google.com/file/d/1JAFAOaplLRuX8jZEX0_Gp7rRIV1ptuC6/view?usp=sharing
IF IT IS NOT WORKING :
https://drive.google.com/drive/folders/1qPlSAOgNoliy5b58ZYkB96_CqvaqT3z4?usp=sharing DOWNLOAD FROM HERE AND UPLOAD YOURSELF WHICH VERSION ... .
Install Required Dependencies
dnf groupinstall "Development tools" -y
dnf install wget -y
Output
[root@vps ~]# dnf groupinstall "Development tools" -y
dnf install wget -y
Last metadata expiration check: 0:25:56 ago on Sat 22 Feb 2025 02:48:23 PM UTC.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing group/module packages:
asciidoc noarch 10.2.0-12.el10 appstream 429 k
autoconf noarch 2.71-12.el10 appstream 736 k
automake noarch 1.16.5-20.el10 appstream 702 k
bison x86_64 3.8.2-9.el10 appstream 1.0 M
byacc x86_64 2.0.20230521-7.el10 appstream 116 k
diffstat x86_64 1.66-3.el10 appstream 46 k
flex x86_64 2.6.4-19.el10 appstream 298 k
Download WordPress
Navigate to the /var/www directory:
cd /var/www
Download the latest WordPress archive:
wget https://drive.google.com/file/d/1UZVx_bf-LkgvcRjON0GL0Y4fWHsPWcnG/view?usp=sharing
Output
Verify the downloaded file:
ls
Output
[root@vps www]# ls
cgi-bin html wordpress-7.0.tar.gz
Extract the WordPress archive:
tar xvzf wordpress-7.0.tar.gz
After extraction, remove the archive file:
rm -v wordpress-7.0.tar.gz
Setting up File Permissions & Ownership
Change the owner and group of the wordpress/ directory:
chown -Rf apache:apache ./wordpress/
Set appropriate permissions:
chmod -Rf 775 ./wordpress/
If SELinux is enabled, apply the correct security context:
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/wordpress(/.*)?"
restorecon -Rv /var/www/wordpress
Configuring Apache Virtual Host
Create a new Apache configuration file:
vi /etc/httpd/conf.d/wordpress.conf
Insert the following configuration:
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /var/www/wordpress
<Directory "/var/www/wordpress">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/httpd/wordpress_error.log
CustomLog /var/log/httpd/wordpress_access.log common
</VirtualHost>
Save and exit (Esc -> :wq! -> Enter).
Restart Apache:
systemctl restart httpd
systemctl status httpd
Output
[root@vps www]# systemctl restart httpd
systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: di>
Drop-In: /etc/systemd/system/httpd.service.d
└─php-fpm.conf
Active: active (running) since Sat 2025-02-22 15:22:25 UTC; 56ms ago
Invocation: 2bf3d32cdd2a4354ad921ff3b676e377
Docs: man:httpd.service(8)
Main PID: 45704 (httpd)
Status: "Started, listening on: port 80"
Tasks: 177 (limit: 23188)
Memory: 13.8M (peak: 14.3M)
CPU: 162ms
CGroup: /system.slice/httpd.service
├─45704 /usr/sbin/httpd -DFOREGROUND
├─45706 /usr/sbin/httpd -DFOREGROUND
├─45707 /usr/sbin/httpd -DFOREGROUND
├─45709 /usr/sbin/httpd -DFOREGROUND
└─45710 /usr/sbin/httpd -DFOREGROUND
Feb 22 15:22:25 vps.server.com systemd[1]: Starting httpd.service - The Apache >
Feb 22 15:22:25 vps.server.com (httpd)[45704]: httpd.service: Referenced but un>
Feb 22 15:22:25 vps.server.com httpd[45704]: Server configured, listening on: p>
Feb 22 15:22:25 vps.server.com systemd[1]: Started httpd.service - The Apache H>
Configuring Database
Create a database, user, and set privileges for WordPress:
sudo mysql_secure_installation
mysql -u root -p
Inside the MySQL prompt, run:
CREATE DATABASE wordpress;
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'secret';
FLUSH PRIVILEGES;
quit;
Open your browser and navigate to:
http://IP_address
Replace IP_address with your actual server IP. Follow the on-screen instructions to complete the WordPress setup.
METHOD 2 : FOR BEGINNER
1. Install Apache Web Server
Install, start, and enable the Apache service to serve your site.
bash
sudo dnf install httpd -y
sudo systemctl start httpd
sudo systemctl enable httpd
Use code with caution.
2. Install MariaDB and Create a Database
Install the database engine, secure it, and create credentials for WordPress.
bash
# 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
Use code with caution.
Inside the MySQL prompt, run the following SQL queries: [1]
sql
CREATE DATABASE wordpress_db;
CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'YourSecurePassword';
GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wp_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Use code with caution.
3. Install PHP and Required Modules
CentOS Stream 10 includes modern PHP packages. Install PHP along with the extensions needed by WordPress.
bash
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
sudo systemctl restart httpd
Use code with caution.
4. Download and Configure WordPress
Navigate to the web root directory, fetch the latest WordPress package, and set up appropriate file ownership.
bash
cd /var/www/html
sudo wget https://wordpress.org/latest.tar.gz
sudo tar -xzf latest.tar.gz
sudo mv wordpress/* .
sudo rm -rf wordpress latest.tar.gz
Use code with caution.
Assign directory ownership to the Apache user so the web server can read and write files: [1, 2, 3, 4]
bash
sudo chown -R apache:apache /var/www/html/
sudo chmod -R 755 /var/www/html/
Use code with caution.
5. Configure the Firewall
Allow HTTP traffic through the local firewall so external visitors can access your site.
bash
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
Use code with caution.
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
chmod 440 /var/www/html/wp-config.php
sudo find /var/www/html/wordpress -type f -exec chmod 640 {} \;
![]()
IF YOU NEED HELP , COMMENT ON THIS SECTION OR CONTACT ME AT LIVE CHAT … .