You are here:

WordPress Installation on a Debian 8 Server

WordPress Installation on a Debian 8 Server

Overview

You may install WordPress on a Debian 8 VPS server by following the instructions in this article from vpsserver.com.

What is WordPress?
Programmers and non-programmers alike can utilise WordPress, an open-source content management system (CMS), with ease. WordPress is among the greatest CMS available because of its simple administration area, quick setup, and straightforward configuration.

Requirements

The tutorial assumes the following prerequisites:

  1. You possess a Debian 8 VPS server obtained from blendhosting.com

  2. An SSH terminal is open, and you are currently logged in as either the root user or a user with sufficient privileges.

  3. Apache, PHP, and MySQL have been previously configured on your server. If these components are not set up, please refer to this page for instructions on installing and configuring a LAMP server on Debian 8: [insert link to the LAMP setup guide].

WordPress Installation Guide

Download the WordPress files into your /html folder by executing the specified commands below:

cd /var/www/html/

Download the most recent WordPress files here:

wget https://wordpress.org/latest.zip

Now, it’s necessary to install unzip to extract our WordPress files.

sudo aptitude install unzip

Extract the WordPress files in the /var/www/html directory.

unzip -q latest.zip

Subsequently, establish the suitable permissions for the directory.

chown -R www-data:www-data /var/www/html/wordpress

chmod -R 755 /var/www/html/wordpress

Next, create an /upload directory within the /wp-content folder to facilitate content creation and file uploads.

mkdir -p /var/www/html/wordpress/wp-content/uploads

Finally, enable the web server to read and write to this directory by assigning user and group ownership to the files. This can be achieved by:

chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads

Yes! WordPress is now installed. The next step involves configuring WordPress to make it functional for use.

Construct a database with MySQL

Access your VPS server command line and log in to your MySQL server as the root user. Create a WordPress database, along with a corresponding user and password.

mysql -u root -p

For this tutorial, let’s create a database named “orders_newdatabasename” with a user “orders_dbuser” and a password of “mynewpassword.” Ensure that you securely store these credentials, either by writing them down on paper or creating a file, so you don’t lose them when needed later on.

CREATE DATABASE wordpress_sample;

CREATE USER wp_user@localhost IDENTIFIED BY 'wp_password';

GRANT ALL PRIVILEGES ON wordpress_sample.* TO wp_user@localhost;

After granting all the privileges, remember to flush the credentials store so that MySQL can re-read the updated information.

FLUSH PRIVILEGES;

next exit MySQL:

exit

Setting up WordPress

To configure WordPress on Debian 8, open your web browser and enter the IP address of your VPS server, such as http://your_blendhosting_ip/wordpress/.

The first page will display language settings, allowing you to choose your preferred language. After selecting the language, click on Continue.

enter image description here

On the next page, enter the database information you previously wrote or stored. Follow the on-screen guide, and once all the fields are filled, click Submit.

Additionally, you have the option to change the table prefix. This prefix is added to the beginning of every table name in your database, providing an extra layer of security and serving as an identifier if you plan to use the same database for multiple WordPress installations.

enter image description here

Click on “Run the Install” once WordPress confirms that the database details are correct.

enter image description here

On the next page, provide the website information, including the Site Title, administrator Username, Password, and your Email Address. The Search Engine Visibility option depends on the type and purpose of your WordPress installation; however, it is generally advisable to leave it as it is.

enter image description here

Once the WordPress installation is complete, you’ll see a success message. You can now log in to your WordPress administrator area using the credentials you entered earlier.

enter image description here

That concludes the tutorial! I hope you found it informative. If you have any questions or suggestions, feel free to leave your comments below.

Was this article helpful?
Dislike 0