How to install WordPress on Debian 9

This tutorial is going to show you how to install WordPress on Debian 9. WordPress is the most popular CMS (Content Management System) out there. With wordpress, we can easily create a nice and powerful blog or websites within a minute. It is great to have WordPress combined with Debian as the base operating system since Debian 9 is a stable operating system.

Steps to install WordPress on Debian 9

Before proceeding to the installation, WordPress needs a working web server with correct configuration. First, make sure you have installed LAMP (Linux Apache MySQL PHP) on Debian 9. You can read my LAMP Installation Tutorial on Debian 9.

Step 1. Install LAMP Server

Step 2. Download WordPress

Now extract the file

Move WordPress directory to web server

Step 3. Create new database

Log in to MySQL Server

And then use the following example to get started.

Step 4. Modify WordPress Configuration

Now open and edit the file

Find and edit the following section. Change the red text with the actual MySQL database, user and password created on the previous step

// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress‘);

/** MySQL database username */
define(‘DB_USER’, ‘dhani‘);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘12345‘);

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

Close and save the file.

Step 5. Configure WordPress Installation

Now open web browser and we will configure WordPress installation.


Change ip-address with your actual Debian ip address.

Finally, WordPress is ready


Leave a Reply

Your email address will not be published. Required fields are marked *