How to Install WordPress 5 On Ubuntu 16.10/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. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  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...

166 Responses

  1. James says:

    I followed the instructions and this worked great! Built it on an EC2 Instance ion AWS and shut it down over night. When i restarted the server in the morning, It no longer starts the WP site. I have checked the services to ensure Apache and mySQL services are running.

    I’m not a Linux engineer, but what else do i need to check to get it started?

    It all installed fine :(
    Thanks

  2. seth Brunt says:

    Had some issue at the PHP install a bit, but followed these instructions and got it working :-)

  3. dr2234 says:
    #  mysql -u root -p
    Enter password: 
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    

    Cannot go any further..

  4. Freeman Phiri says:

    Help please I am stuck on step 3 and I am getting the following error messages:

    E: Couldn't find any package by glob 'php7.0-mysql'
    E: Couldn't find any package by regex 'php7.0-mysql'
    E: Unable to locate package libapache2-mod-php7.0
    E: Couldn't find any package by glob 'libapache2-mod-php7.0'
    E: Couldn't find any package by regex 'libapache2-mod-php7.0'
    E: Unable to locate package php7.0-cli
    E: Couldn't find any package by glob 'php7.0-cli'
    E: Couldn't find any package by regex 'php7.0-cli'
    E: Unable to locate package php7.0-cgi
    E: Couldn't find any package by glob 'php7.0-cgi'
    E: Couldn't find any package by regex 'php7.0-cgi'
    E: Unable to locate package php7.0-gd
    E: Couldn't find any package by glob 'php7.0-gd'
    

    What should I do?

    • Ravi Saive says:

      @Freeman,

      Are you sure you are using Ubuntu 16.10 or 16.04? please confirm this first. If you are using older Ubuntu 14.04, then PHP 7 is not available from the standard Ubuntu repositories (2016-01-02).

      You could use the PPA ppa:ondrej/php.

      $ sudo apt-add-repository ppa:ondrej/php
      $ sudo apt-get update
      $ sudo apt-get install php7.0
      
  5. Catypus says:

    You forgot to delete index.html – Did you test your steps? Ubuntu 16!

  6. Ajay says:

    Hello,

    I have setup vista CP + WP but i am getting issue to edit files through ftp and can’t upload images in admin.

  7. cheerupchuck_ says:

    I am having issues with restarting mysql. It says it failed because the control process exited with error code.

Leave a Reply to Aaron Kili Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.