How To Install WordPress with LAMP on Debian 12

To install WordPress on your Debian 12 server, you can follow these steps:

Step 1 : Install LAMP Stack:

If you haven't already installed the LAMP (Linux, Apache, MySQL, PHP) stack, please refer to the previous article on how to install it here

Step 2 : Create a MySQL Database and User:

This command will open the MySQL command-line interface. Once you're inside MySQL, run the following commands to create a new database and user for WordPress:

Replace 'password' with a secure password of your choice.

Step 3 : Download and Extract WordPress:

Step 4 : Move WordPress Files:

Step 5 : Set File Ownership and Permissions: