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.
- Creating a Home Server Part 1: Why Should I? Hardware and Software
- Creating a Home Server Part 2: Installing the Operating System
- Creating a Home Server Part 3: How to Install No-IP Client in Ubuntu
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.
- Open Terminal (A) and type the command to install “Task Select” (B). You will need to enter your password.
sudo apt-get install tasksel
- Once the install is complete, run Task Select.
- 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)
- 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.
- When the installation is complete, the LAMP Web Server will be setup and running.
- 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).
NOTE: The number after “Download WordPress” may be different because of updated versions.
NOTE: This tutorial uses Firefox as the web browser.
- Open the zip file in Archive Manager
- Select the “wordpress” folder (A) and extract the folder (B).
- Choose the “Home” folder (A) as the location to extract the folder and click the “Extract” button (B).
- 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/
- 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
- 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).
- Select your preferred language and click the “Continue” button.
- The following screen will display needed database information. Click “Let’s go!”.
Create a Database in MySQL
- 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
- Create the database named “wordpress” (A). Exit MySQL by entering the “exit” command (B).
create database wordpress; exit
Finishing WordPress Installation
- 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).
- Click on the “Run the Install” button.
- Add in your site information and create the first user account of WordPress. Then click the “Install WordPress” button.
- The next screen will confirm the installation. Click on the “Login” button.
- Enter your login credentials.
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!