Step 1: Install Lamp for linux environment.
Step 2: Go to (
Wordpress website ) download the latest version of Wordpress.
Step 3: Extract the Wordpress zip file in to Lamp server directory. Using this the following command: "sudo tar zxvf wordpress-x.x.x.tar.gz --directory=/var/www/"
Step 4: Use PHPmyAdmin(recommended) or Mysql terminal to create database (ex: wordpress) and user (ex: wordpress) with password
Step 5: Go to the wordpress directory, search for the file named "wp-configsample.php" then copy it into the file "wp-config.php". Next, open it and edit:
// ** MySQL settings ** //
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'wordpresspassword');
define('DB_HOST', 'localhost');
Step 6: Open web browser and create and open : http://localhost/wordpress/wp-admin/install.php, then enter appropriate information in order to finish the process of installation.
And now, you can preview your wordpress by open http://localhost/wordpress. You also have to login first.