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...

30 Responses

  1. charlie says:

    I’m trying to get through this process on a fresh Linux mint os. Step 3, creating the info.php inside /var/www/html I do the sudo vi command and get asked for the root password into the file. But for some reason when i paste the code provided I get this. And am unable to even save the file.

    I have had success in the past installing, but everytime I see the Apache 2 Ubuntu Default Page, I’m right back to square 1. Could it be permissions? Or am I simply pasting this he wrong way? Any help would be greatly appreciated, even if you know another linux distribution that would ease the pain. I’m new to linux and had kali before mint, I like to keep it all open source as I cant really take the crap from windows anymore. Cheers and Thanks in advance.

    • Ravi Saive says:

      @Charlie,

      I think you not familiar with VI editor, better use nano editor to add the php code to info.php file under /var/www/html directory..

  2. Don McLaren says:

    Great tutorial kudos! Probably the most error free experience I’ve had, however a couple of things went wrong for me.

    1. WordPress was installed in my user folder and not /var/www/html
    2. /var/www/html didn’t have permissions to rename/delete wp-config-sample.php so had to use:

    $ sudo chmod -R 777 /var/www/html
    

    Thanks
    Don

  3. Jessie Jacques says:

    I’ve gone through this Tutorial twice, and I keep getting the “Error establishing a database connection” Error, what could I be doing wrong/ how can I fix it?

    • Ravi Saive says:

      @Jessie,

      Please make sure that your MySQL database is running and also make sure that you’ve added correct MySQL database settings in wp-config.php file..

      • Jessie Jacques says:

        I got it working, I was using the computer name in the host name slot, once i figured out the error of my ways I got it working, Thanks!

  4. Aniruddh Shandilya K says:

    After renaming wp-config-sample.php to wp-config.php you have mentioned “update it with your database system under MySQL settings section” where can i find it in Ubuntu ?

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?