How to Install & Configure WordPress on Ubuntu 16.04


WordPress is a free and open-source content management system (CMS) based on PHP and MySQL. You can use wordpress to launch your blog or any kind of website.

Perquisites: LAMP Server

Note: – If you want to see the Installation of LAMP Server, click on below Link:

Install Lamp Server On Ubuntu

Step 1. Login into your Linux Machine.

Step 2. Update packages.

# apt-get update

Note: – Make sure to install the required packages of PHP for WordPress:

apt-get install php-curl php-xml php-gettext php-cgi php-mysql libcurl3 libcurl3-dev libapache2-mod-php -y

Step 3. Login Into your Mysql Server.

# mysql -u root -p

Step 4. Create a New Database for Wordpress.

mysql> Create database wordpressdb;

Step 5. Create a new User for WordPress & specify the new Password for that user.

mysql> create user wordpress;
mysql> GRANT ALL PRIVILEGES ON wordpressdb.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpasswd';

Step 6. Exit from Mysql.

mysql> exit

Step 7. Move into your web server Document Root.

# cd /var/www/html

Step 8.  Download WordPress by using below link.

# wget

Step 9. Extract latest.tar.gz.

# tar -xvzf latest.tar.gz

Step 10. Change the Permission of HTML directory.

# chown -R www-data:www-data /var/www/html/wordpress
# chmod -R 755 /var/www/html/wordpress

Step 11. Restart your Webserver.

# service apache2 restart

Step 12. Search http://ip/wordpress from your browser.


Click on Let’s go button.

Step 13. Specify the following details of WordPress as per your requirements & then click on Submit button.


Step 14. Click on Run the install button to continue further installation of wordpress.


Step 15. Specify the following details according to your requirements.After that click on Install WordPress button.


Step 16. Specify the username & password of wordpress in login box & then click on Log In button.


Step 17. Now you are successfully logged into your wordpress account.