Install PHP 8.3:

  1. Install the remi Repository for PHP 8.3:
1rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-9.rpm 
  1. Enable the remi Repository for PHP 8.3:
2dnf module enable php:remi-8.3 -y
  1. Use dnf to install the seven PHP 8.3 packages:
3dnf install -y php php-opcache php-mcrypt php-cli php-gd php-curl php-mysql 
  1. Confirm that the remi-php8.3 Repository is installed:
4php -v
  1. Restart the Apache service to apply the changes. (Hold off on this step until after you install WordPress):
5apachectl restart

Install WordPress:

  1. Change to the html directory:
1cd /var/www/html
  1. Download the latest version of WordPress using wget:
2wget http://wordpress.org/latest.tar.gz
  1. Extract the WordPress files:
    • The flag x tells tar to extract the files
    • The flag v tells tar to be verbose
    • The flag f tells tar that the next argument is the file to extract
3tar -xvf latest.tar.gz
  1. Move into the WordPress directory:
4cd wordpress
  1. Copy the sample configuration file to the configuration file:
5cp wp-config-sample.php wp-config.php
  1. Move up one directory:
6cd ..
  1. Change the ownership of the WordPress files to the Apache user:
7chown -R apache:apache wordpress/
  1. Use vi to edit the wp-config.php file and input your db information in the fields as appropriate
  • DB_NAME: ‘wordpress’
  • DB_USER: ‘wpuser’
  • DB_PASSWORD: ‘CIS335wcu!@#$‘

Test the WordPress Installation:

  • From your Client VM, connect to: http://192.168.g#.s#5/wordpress
    • You should get the installer screen for WordPress. Follow the prompts to complete the installation.
      • Site Title: STUDENT NAME
      • Username: WCU USERNAME
      • Password: CIS335wcu!@#$
      • Email: WCU EMAIL
    • Poweroff your server and take a snapshot of your system if this is working.