This is an old revision of the document!
Questions Product Docs Cloud Chats CONTENTS
Prerequisites Step 1 — Creating a MariaDB Database and User for WordPress Step 2 — Installing Additional PHP Extensions Step 3 — Adjusting Apache’s Configuration to Allow for .htaccess Overrides and Rewrites Step 4 — Downloading WordPress Step 5 — Configuring the WordPress Directory Step 6 — Completing the Installation Through the Web Interface Conclusion
Tutorial How to Install WordPress with LAMP on Debian 10 Published on July 22, 2019
LAMP Stack Debian 10 WordPress
authorauthorauthor
Mark Drake, Brian Boucheron, and Erika Heidi English How to Install WordPress with LAMP on Debian 10 Not using Debian 10? Choose a different version or distribution. Debian 10 Introduction
WordPress is the most popular CMS (content management system) on the internet. It allows you to easily set up flexible blogs and websites on top of a MariaDB backend with PHP processing. WordPress has seen incredible adoption and is a great choice for getting a website up and running quickly. After setup, almost all administration can be done through the web frontend.
In this guide, we’ll focus on getting a WordPress instance set up on a LAMP stack (Linux, Apache, MariaDB, and PHP) on a Debian 10 server. Prerequisites
In order to complete this tutorial, you will need access to a Debian 10 server.
You will need to perform the following tasks before you can start this guide:
Create a sudo user on your server: We will be completing the steps in this guide using a non-root user with sudo privileges. You can create a user with sudo privileges by following our Debian 10 initial server setup guide.
Install a LAMP stack: WordPress will need a web server, a database, and PHP in order to correctly function. Setting up a LAMP stack (Linux, Apache, MariaDB, and PHP) fulfills all of these requirements. Follow this guide to install and configure this software.
Secure your site with SSL: WordPress serves dynamic content and handles user authentication and authorization. TLS/SSL is the technology that allows you to encrypt the traffic from your site so that your connection is secure. The way you set up SSL will depend on whether you have a domain name for your site.
If you have a domain name… the easiest way to secure your site is with Let’s Encrypt, which provides free, trusted certificates. Follow our Let’s Encrypt guide for Apache to set this up.
If you do not have a domain… and you are just using this configuration for testing or personal use, you can use a self-signed certificate instead. This provides the same type of encryption, but without the domain validation. Follow our self-signed SSL guide for Apache to get set up.
