WordPress Installation

In this blog, I will show you how to develop WordPress on your localhost and start working with WordPress.

Basic tool Installation

First you have to install MySQL, Apache and PHP. The following command install the apache2, MySQL-Server  and  PHP in your system.

sudo apt-get install apache2 mysql-server php libapache2-mod-php

Then you need to check packages are working as your desire.

For apache2, run the following commands to ensure that mod_rewrite is enabled:

sudo a2enmod status

If it isn’t already enabled, enable a2enmod and restart Apache:

sudo a2enmod rewrite
sudo systemctl restart apache2

DataBase Creation

Log in to the MySQL command line as the root user:

sudo mysql -u root

Create wordpress database:

CREATE DATABASE wordpress;

Read More »