PhD Social Science How to Setup WordPress With Apache httpd … . since you guys Already know how to SETUP SSL FROM ZEROSSL.COM CODE BY SKRAITO ( GOD CLONE ) WITH LORD JESUS CHRIST … .

Last Updated on June 26, 2026 by skraito with Lord Jesus Christ

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/html

Download the latest WordPress archive:

https://drive.google.com/drive/folders/1qPlSAOgNoliy5b58ZYkB96_CqvaqT3z4?usp=sharing

Output

Verify the downloaded file:

ls

Output

[root@vps html]# ls
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/html/wordpress(/.*)?"
restorecon -Rv /var/www/html/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/html/wordpress
    <Directory "/var/www/html/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:

# 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

Inside the MySQL prompt, run:

CREATE DATABASE wordpress;
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'secret';
FLUSH PRIVILEGES;
quit;

SETUP HTTPD SSL FIRST BEFORE YOU OPEN … .

https://www.machophd.org/2026/06/26/phd-social-science-setup-apache-httpd-for-ssl-from-zerossl-com-code-by-skraito-god-clone-and-lord-jesus-christ-with-added-if-you-need-php-which-is-wordpress-and-the-rest/

Open your browser and navigate to:

https://example.yourdomain.com

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 -p

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

systemctl enable --now php-fpm

service restart php-fpm

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

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

Use code with caution.

Assign directory ownership to the Apache user so the web server can read and write files:

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.

USE HTTPD SSL FIRST … .

https://www.machophd.org/2026/06/26/phd-social-science-setup-apache-httpd-for-ssl-from-zerossl-com-code-by-skraito-god-clone-and-lord-jesus-christ-with-added-if-you-need-php-which-is-wordpress-and-the-rest/

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 … .

Leave a Reply

Your email address will not be published. Required fields are marked *