How to Install WordPress 5 On Ubuntu 16.10/16.04 Using LAMP Stack

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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

177 Responses

  1. Artem says:

    Hi, everything worked well thanks, but when I’m in WordPress and go to customize the site I’m shown the Apache2 Ubuntu Default Page :( and not the site.

    Hope you can help me.
    Thanks

  2. Kim says:

    I stopped at step 2 (with this error) in this guide :(

    The following packages have unmet dependencies:
    mariadb-server : Depends: mariadb-server-10.1 (>= 1:10.1.40-0ubuntu0.18.04.1) but it is not going to be installed
    E: Unbale to correct problems, you have held broken packages.
    

    Do you have any solution to solve this error?

    Thanks, Kim

    • Ravi Saive says:

      @Kim,

      Run the following command to fix these dependencies.

      $ sudo apt-get install -f
      
      • Kim says:

        After running the command: "sudo apt-get install -f".

        I tried to run the command: "sudo apt-get install mariadb-server mariadb-client" again. But still got the same error.

        Is there other things that can solve this problem ??

        Thanks, Kim

        • Ravi Saive says:

          @Kim,

          First remove the installed MariaDB using the following commands.

          $ sudo apt-get remove --purge mariadb-server
          $ sudo apt-get autoremove
          $ sudo apt-get autoclean
          

          Once removed, try to install MariaDB again.

          $ sudo apt-get install mariadb-server mariadb-client
          
  3. Lester says:

    When i try the http://server-address – it shows me the Apache Ubuntu default page, did I miss something?, I was able to access the config file thru http://server-address/wp-admin/setup-config.php.

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

  5. seth Brunt says:

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

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

    Cannot go any further..

  7. 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
      
  8. Catypus says:

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

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

  10. 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 seth Brunt 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.