Begin by installing php-gd, a module utilized for image resizing, particularly for creating thumbnails. Retrieve the package from the CentOS repository using the appropriate command.
sudo yum install php-gd
Following the installation of php-gd, restart the HTTPD server to ensure it recognizes the newly installed module.
sudo service httpd restart
Navigate to your /html folder before downloading the latest WordPress files. The /html folder serves as the public-facing directory of your web server.
cd /var/www/html/
wget https://wordpress.org/latest.tar.gz
Now, you need to untar or unpack your WordPress files using the appropriate command.
tar xzvf latest.tar.gz
Unzip the WordPress files located in the directory /var/www/html:
unzip -q latest.zip
Set the appropriate permissions for the html directory and files to enhance WordPress security and prevent potential permission issues during the configuration process.
sudo chown -R apache:apache /var/www/html/*
Now that WordPress is installed, the next step is to configure it so that it can be used.