How to Install WordPress 4.6 On Ubuntu 16.04 Using LAMP Stack

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

17 Responses

  1. Dave D says:

    Good tutorial, worked for me on 16.10 after also removing the Apache default page.

  2. Sean says:

    Thanks for the instructions, Unfortunately I am a newbie to Linux commands etc, I am having trouble copying and pasting this step.

    Furthermore, to test if php is working in collaboration with the web server, we need to create a info.php file inside /var/www/html.

    $ sudo vi /var/www/html/info.php

    And paste the code below into the file, save it and exit.

    When that is done, open your web browser and type in the this address http://server_address/info.php. You should be able to view the php info page below as a confirmation.

    please can you advise me in lehmans terms how to do this?

    sorry and thanks

  3. Nena Rahin says:

    I’ve followed these instructions and success fully installed WordPress. But when i click to the ‘Visit site’ link from the dashboard, it takes me to Apache2 default page instead of the wordpress welcome page. Can you help me to solve this ?

  4. Joe says:

    I noticed a typo in step 4.

    $ tar-xzvf latest.tar.gz

    should read
    $ tar -xzvf latest.tar.gz

    there should be a space between tar and -xzvf

    • Ravi Saive says:


      Thats really a good catch man, yes there should be a space between tar and -xzvf option, corrected in the writeup.

  5. Sunja says:

    I’ve followed these instructions twice from scratch. not sure what I’m doing wrong but when I go to http://server-address, it takes me to Apache2 default page “it works” instead of the wordpress welcome page. Any ideas on what I’m doing wrong? Thanks in advance

  6. Mark says:

    Thanks Aaron. You’ve got a typo in the tar process for the WP file: should be “tar -zxcf” not “tar-xzvf“. For newbies staring at the “tar-xzvf: command not found“, it’s confusing. A Google search turned up the answer, but it’s not readily apparent.

    Also, if you change the name of the wp-config.sample.php file, WordPress won’t find it when it initially comes up. You’ll get a “Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.”

    when you connect to WP from the browser. I changed it back and got the config screen. One more thing for newbies or the inattentive: when you go into the config file to change things, make sure you note that you are using your sql name (probably root)/password.

    I used vi to make the changes, which was kinda’ nice to use again after 35 years (now where’s my cheat sheet… :^)

    Bottom line, it works. Thanks and cheers,

    • Aaron Kili says:


      Welcome, and many thanks for the wonderful suggestions and feedback. As for the typo, we shall correct it in the writeup. Lastly, i hope the newbies will find your insights useful and helpful.

  7. Askar says:

    Nice tutorial. How to make multiple wordpress installations?

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 202,035
  2. 9,267
  3. 38,621

Are you subscribed?