How To Install WordPress with LEMP on CentOS Stream 9

To install WordPress with LEMP on CentOS Stream 9, follow these steps:

Step 1 : Install LEMP Stack

If you haven't installed the LEMP stack yet, refer to the CentOS Stream 9 article for detailed instructions.

Step 2 : Create Database

- Login to MySQL and create a user and database for WordPress:

- Create a database for WordPress:

- Create a MySQL user and grant privileges to the newly created database:

Step 3 : Download and Install WordPress

- Create the directory for your WordPress installation:

- Download the latest WordPress release:

- Extract the downloaded file:

- Move the WordPress files to the installation directory:

- Set Ownership and Permissions for Nginx::

Step 4 : Create an Nginx configuration file:

Add the following configuration:

Step 5 : Test Config and Restart Nginx

Step 6 : If you're using SELinux, run the following command:

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

- Click "Let's go!"

- Enter the database information.

- If details are correct, click "Run the installation."

- Provide WordPress information and click "Install WordPress."

Step 8 : After installation, log in to your WordPress admin panel using the provided credentials.

Step 9 : Access the WordPress dashboard and start managing your website.

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