

See what modules are enabled using the below command: sudo a2enmod statusĮnable the rewrite module if it is not already enabled, then restart Apache. Additionally, you need to ensure that the rewrite Apache module is enabled, which you can do with the following steps: To create a LAMP stack, follow the Install a LAMP Stack on Debian 10 guide.

Ignore the sections on installing PHP, and otherwise replace any mention of the PHP version number with 7.4. sudo apt install php7.4-fpm php7.4-mysqlĬomplete the installation of a LAMP or LEMP stack by following the appropriate guide linked below. sudo apt install php7.4 php7.4-mysql libapache2-mod-php7.4įor a LEMP stack, install php-fpm instead of php. Install PHP 7.4 and its extension for MySQL.įor a LAMP stack, you also need to install the associated Apache module.

Sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt//php.list' sudo apt install apt-transport-https lsb-release ca-certificates curlĪdd the repository’s GPG key, then add the repository to the package manager. So, these steps use the Sury package repository to get the required version.Īdd the packages needed to add the Sury repository. The default version of PHP on Debian 10 is 7.3, but WordPress requires version 7.4. Then, you need to create a database that WordPress can use. To satisfy these requirements, you can set up a LAMP (Linux, Apache, MySQL, and PHP) or a LEMP (Linux, NGINX, MySQL, and PHP) stack. You also need a webserver to serve the content from WordPress. WordPress runs on PHP and uses MySQL/MariaDB for storing data. If you’re not familiar with the sudo command, see the Linux Users and Groups guide. Commands that require elevated privileges are prefixed with sudo. This guide is written for non-root users.
