Creating a Home Server Part 6: How to Install WordPress on Ubuntu 14.04

Tweet about this on TwitterShare on Google+Share on FacebookShare on LinkedInShare on StumbleUponShare on RedditEmail this to someonePrint this page

WordPress is the most popular website builder on the internet. It has thousands of plugins and themes that allows making dynamic and professional websites simpler. Many functions do not need any familiarity with HTML, CSS, or Javascript to produces these sites. Find out how to install WordPress on an Ubuntu computer. 

Prerequisites

This tutorial assumes that you already have an Ubuntu Desktop computer setup with a web address (dynamic or static dns). Use the following tutorials to setup a computer with these requirements.

Video Tutorial

Written Instructions

If you already installed ownCloud using our tutorial, you already have a LAMP server installed. Skip to Installing WordPress

Installing a LAMP Web Server

LAMP stands for Linux Apache MySQL Php/Python/Perl, which are the components of creating a web server. Previously, the acronym was used to remember which packages to install, but now we can install them all in one step.

  1. Open Terminal (A) and type the command to install “Task Select” (B). You will need to enter your password.
    sudo apt-get install tasksel

    01-isntallTasksel

  2. Once the install is complete, run Task Select.
    sudo tasksel

    02-RunTasksel

  3. Use the arrow keys to navigate to “LAMP server” using the keyboard arrow keys, press the “Space bar” to select the option (A), then press the “Enter” key to confirm (B)
    03-SelectLAMP
  4. The install will ask for a password for the “root” use of MySQL. Create and enter a password and confirm it on the next screen.
    04-RootPaswd
  5. When the installation is complete, the LAMP Web Server will be setup and running.

Installing WordPress

  1.  Open a web browser and navigate to https://wordpress.org. Click on the “Download WordPress” button (A) and then the “Download WordPress 4.1.1” button (B).
    05-DowloadWordpressNOTE: The number after “Download WordPress” may be different because of updated versions.
    NOTE: This tutorial uses Firefox as the web browser.
  2. Open the zip file in Archive Manager
    06-OpenArchiveManager
  3. Select the “wordpress” folder (A) and extract the folder (B).07-ExtractFolderTohome
  4. Choose the “Home” folder (A) as the location to extract the folder and click the “Extract” button (B). 07-ExtractFolderTohome@
  5. Return to (or Open) Terminal. The following commands will first move the “wordpress” folder from the “Home” folder to the webserver location.
    sudo mv wordpress /var/www/html/

    08-Mv

  6. The next command will grant the web server ownership of the “wordpress” folder. This allows the web server to access the files
    sudo chown www-data:www-data -R /var/www/html/wordpress

    09-Chown

  7. In a web browser, navigate to the web address of your computer (click here if you missed the tutorial) but add “/wordpress” to the end of the address. (For example, http://technerdservices.ddns.net/wordpress).
  8. Select your preferred language and click the “Continue” button.
    10-Lang
  9. The following screen will display needed database information. Click “Let’s go!”.12-Database

Create a Database in MySQL

  1. Return to (or Open) terminal and log into MySQL with the following command. You will need to enter the password created when installing the LAMP server.
    mysql -u root -p

    13-MySQLlogin

  2. Create the database named “wordpress” (A). Exit MySQL by entering the “exit” command (B).
    create database wordpress;
    exit

    14-Exit

Finishing WordPress Installation

  1. Return the the WordPress installation webpage. Type in “root” (no quotation marks) for the username and the password created when installing the LAMP server (A) and click the “Submit” button (B). (None of the other fields require changing). 15-inputdatabase
  2. Click on the “Run the Install” button. 16-InstallButton
  3. Add in your site information and create the first user account of WordPress. Then click the “Install WordPress” button.17-siteinfo1
  4. The next screen will confirm the installation. Click on the “Login” button.18-Login
  5. Enter your login credentials.19-login2

Congratulations! You have arrived at the WordPress site dashboard. Click on the WordPress Site name in the header to view your site. 20-dashboard
21-Wordpress

Tweet about this on TwitterShare on Google+Share on FacebookShare on LinkedInShare on StumbleUponShare on RedditEmail this to someonePrint this page

Support Us!

Thank you for reading this article. If you found it useful, please consider buying us a coffee, subscribing to the YouTube Channel, and/or changing your Amazon bookmark to our affiliate link (CAN, USA, UK). We do this out of general interests and to help others. Thanks!




  • Hi there, i read your blog occasionally and i own a similar one and i
    was just curious if you get a lot of spam feedback?
    If so how do you protect against it, any plugin or anything you
    can recommend? I get so much lately it’s driving me mad so any help is very much
    appreciated.

    • Mike Zhang

      Hi, I use the all in one security plugin. I find it works well in keeping my site safe.

      Hope this helps

      (Link)

  • I was suggested this blog by means of my cousin. I am not sure whether
    this publish is written via him as no one else understand such
    precise approximately my problem. You’re wonderful! Thank you!

  • Excellent web site you’ve got here.. It’s hard to find high quality writing
    like yours these days. I really appreciate
    individuals like you! Take care!!