To install WordPress on AlmaLinux 9, follow these steps:
Step 1 : Ensure you have Apache, MariaDB, and PHP installed. If not, follow the guide: AlmaLinux 9 Guides.
Step 2 : Create a Database for WordPress
- Log in to MariaDB:
- Create a database and user:
Step 3 : Download and Install WordPress
- Create a directory for WordPress:
- Download and extract WordPress:
- Set permissions:
Step 4 : Create a virtual host file:
Add the following content:
- Test and Restart Apache
Step 5 : If SELinux is enabled, update the security context:
Step 6 : Install WordPress via Browser
- Open http://example.devtutorial.io
in a browser.
- Click Let's go!.
- Enter database details
- Click Run the installation if credentials are correct.
- Fill in site details and click Install WordPress.
Step 7 : Visit http://example.devtutorial.io/wp-login.php
, enter your credentials, and log in.
Step 8 : You can now manage your site from the WordPress dashboard.
Congratulations! You have successfully installed WordPress with LAMP on AlmaLinux 9.