How To Install WordPress with LAMP on CentOS Stream 9

To install WordPress with LAMP on CentOS Stream 9, follow the steps outlined below.

Step 1 : Install LAMP Stack

If you haven't installed LAMP yet, refer to the CentOS Stream 9 Guides for instructions.

Step 2 : Create Database

- Log in to your MySQL server.

- Create a new user and database for WordPress.

Step 3 : Download and Install WordPress

- Create a directory for your WordPress installation, for example:

- Change to the directory and download WordPress.

- Set appropriate permissions:

Step 4 : Create a configuration file for Apache:

Add the following content:

Step 5 : Test the configuration:

If the test is successful, restart Apache:

Step 6 :If using SELinux, set the appropriate context:

Step 7 : Open your browser and navigate to http://example.devtutorial.io.

- Click "Let's go!"

- Fill in the database information.

- If the information is correct, click "Run the installation."

- Enter WordPress details and click "Install WordPress."

Step 8 : Login to WordPress

- Log in to WordPress using the provided credentials.

Step 9 : Access WordPress Dashboard

Congratulations! You have successfully installed WordPress with LAMP on CentOS Stream 9.