How To Install WordPress with LEMP on Fedora 39

To install WordPress with LEMP on Fedora 39, follow the steps outlined below.

Step 1 : Install LEMP Stack

If you haven't installed the LEMP stack, refer to the Fedora Guides for detailed instructions Fedora 39 Guides

Step 2 : Adjust SELinux Settings (Optional)

By default, Fedora has SELinux enabled. You can refer to the configuration in Fedora 39 Guides for more details. In this tutorial, we'll temporarily disable SELinux:

Step 3 : Create Database

- Log in to MySQL

- Create a user and database for WordPress.

Step 4 : Download and Install WordPress

- Create WordPress Directory:

- Navigate to the WordPress Directory:

- Download WordPress:

- Extract the WordPress Archive:

- Move WordPress Files:

- Set Correct Ownership:

Step 5 : Configure Nginx

Edit Nginx configuration file:

Add the following configuration:

Step 6 : Test Configuration and Restart Nginx

Step 7 : Open Browser and Install WordPress

- Open your browser and go to http://example.devtutorial.io.

- Click "Let's go!".

- Enter the database information.

- If correct, click "Run the installation".

- Enter WordPress information and click "Install WordPress".

- Log in to WordPress

Step 8 : Access WordPress Dashboard

Congratulations! You have successfully installed WordPress with LEMP on Fedora 39.