To install WordPress on Fedora 40 with the LAMP stack, follow the steps below.
Step 1 : Install LAMP Stack
If you haven't installed LAMP yet, follow the instructions in the article "Fedora 40 Guides".
Step 2 : Tạo Database
- Log in to MySQL:
- Create a new MySQL user and database:
Step 3 : Download and Install WordPress
- Create a directory for your WordPress installation:
- Navigate to the directory:
- Download WordPress:
- Extract the downloaded file:
- Move files:
- Adjust permissions:
- Delete the leftover directory:
Step 4 : Create a virtual host configuration file:
- Add the following configuration:
Step 5 : Test Configuration and Restart Apache
- Test the configuration:
- Restart Apache:
Step 6 : (Optional) If SELinux is enabled. Allow Apache to write to the WordPress directory:
Step 7 : Open a web browser and navigate to your domain to install WordPress
- Click "Let's go!".
- Enter the MySQL database information you created earlier.
- If the information is correct, click "Run the installation".
- Provide your WordPress information and click "Install WordPress".
Step 8 : Log in with the credentials you just set up.
Step 9 : Once logged in, you'll be directed to the WordPress dashboard.
Congratulations! You have successfully installed WordPress with the LAMP stack on Fedora 40.