Installing and Configuring Wordpress

A simple guide to Installing and Configuring Wordpress for your Cloud Server

Blue Light Tech

Wordpress is one of the most used Content Management Systems in the world today. Though started as a humble blogging software, through its extensive plugin framework and theme system, it has grown and blown up to be a full-featured web-creation tool today. Wordpress is built on LAMP or LEMP and it is a breeze to master once the installation is done right.

But herein lies the challenge. Installing it might be a little tricky especially for those without the helping hand of cPanel or Plesk. Since our main drive at Blue Light Host is to make your life easy when dealing with this software, our step by step guide will walk you through the process.

  1. Prerequisites
  2. Installing Wordpress
  3. Configuring Wordpress

Set your Server up correctly

We have written awesome posts that will help you understand the nitty-gritty of setting up your server and connecting with it. So, before pushing ahead, ensure you’ve used our guides “Setting Up Your Server With <OS>”.

Prerequisites

  • Check out your Hostname and Fully Qualified Domain Name (FQDN)

    Type:

    hostname
    hostname -f
  • Ensure you have either LAMP or LEMP. Read our guide how to create (LAMP) or (LEMP).
  • Ensure you have a database set up specifically for Wordpress. If you do not have one, quickly follow these steps:
    1. Enter Mysql Command line from your Terminal:
      mysql -u root –p
    2. Lets now create a Wordpress database
      create database wordpress
    3. Create a new user and grant it user privileges to run the wordpress database:
      grant all on wordpress.* to  'newuser'  identified by  'password';
    4. Step out of MySQL:
      quit

Installing WordPress

Now that we are through with the initial setup, let’s begin with the Wordpress installation.

  1. First, create a new directory (src) to store our soon to be downloaded wordpress files. This shall be in our home directory. Type:
    mkdir /var/www//example.com/src
    cd /var/www/example.com/src
  2. Moving on, now ensure that the owner of the directory is the web server's user, this helps to avoid permission errors down the line.
    chown -R www-data:www:-data /var/www
  3. Lets install WordPress now:
    sudo wget http://wordpress.org/latest.tar.gz
    sudo -u www-data tar -xvf latest.tar.gz
  4. We can now move the latest.tar.gz and rename it wordpress
    sudo mv latest.tar.gz wordpress-`date '+%Y-%m-%d'`.tar.gz
  5. Now lets now copy the Wordpress files in the public_html, while removing the folder from the src directory:
    sudo cp -R wordpress/* ../public_html/
    sudo rm -rf wordpress/

 

Now that we are through dealing with the server-side functions, let’s commence with configuration.

Configuring Wordpress

  1. Pay the newly installed Wordpress a visit by typing http://serveripaddress in the address bar of your favourite browser. It is assumed that you copied the wordpress files into the public_html folder, in the instructions given above.
  2. Review the informational start-up page and click 'Lets Go!'
  3. Next, supply the credentials of the database and its user/password. You can leave localhost and table prefix as it is. Click Submit.
  4. Run the 'Alright Sparky' install and next supply general details for your website, its public name, admin user details, email address, etc
  5. Right now, anytime you want to update/install your plugins or themes, you will be asked to supply your ftp details. But you can easily bypass this by doing this: Open up the wp-config file:
    nano /var/www/example.com/public_html/wp-config.php
    Then add the following towards the end of the file:
    /** Bypass FTP */ 
    define('FS_METHOD', 'direct');
  6. Next up, empower Wordpress to add and edit files in the public_html folder:
    sudo chown -R www-data:www-data /var/www/example.com/public_html
  7. Lastly,
    sudo a2enmod rewrite
  8. And restart Apache:
    service httpd restart

Note:

If you want to use customized posts url, then there is a need to enable your apache by adding the following file to your .htaccess

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Restart apache again and it should be enabled.

Welcome to Wordpress!


24 Comments


Phytolast Review - 19/05/2018 19:22:51

Your style is so unique in comparison to other folks I have read stuff from.

Thank you for posting when you have the opportunity, Guess I'll just book mark this web site. https://gogoalshop.com/Discuzen/upload/home.php?mod=space&uid=406923&do=profile


Elixiry Youth - 13/05/2018 12:16:33

It's difficult to find well-informed people for this subject, however, you sound like you know what you're

talking about! Thanks http://www.multisys.com.br/wiki/index.php?title=Usu%C3%A1rio:CelindaDms


Judi - 12/05/2018 13:25:44

uIfaKc https://www.genericpharmacydrug.com


Judi - 12/05/2018 12:34:12

qj1942 https://www.genericpharmacydrug.com


mike11 - 18/04/2018 05:00:53

88TUWc https://www.genericpharmacydrug.com


mike11 - 18/04/2018 00:12:03

BsNkQW https://www.genericpharmacydrug.com


mike11 - 16/04/2018 16:57:48

g6i1h3 https://www.genericpharmacydrug.com


HolaBromz - 25/03/2018 08:34:28

http://google0123.com/


HolaBromz - 23/03/2018 06:08:14

http://google0123.com/


holabromx - 22/03/2018 09:12:18

http://google0125.com/


HolaBromz - 20/03/2018 08:09:20

http://google0123.com/


HolaBromz - 20/03/2018 08:07:40

http://google0123.com/


jimgriffin22.deviantart.com - 15/03/2018 16:06:56

I've learn several good stuff here. Definitely worth bookmarking for revisiting.

I wonder how much attempt you put to create any such

fantastic informative web site. https://jimgriffin22.deviantart.com


GoldenTabs - 06/01/2018 07:47:31

vFFgoJ https://goldentabs.com/


GoldenTabs - 05/01/2018 20:27:29

de4NFY https://goldentabs.com/


Sammie - 06/12/2017 13:51:01

What qualifications have you got? http://avanafil.blog.hu/ june villager buy avanafil closed The election workers, who numbered at least five people including four election workers and the deputy mayor of Tessalit, were driven to Camp Amachache, a military camp located 7 kilometers (4 miles) outside Tessalit, which is the base of Chadian forces with the United Nations peacekeeping mission.


Barnypok - 09/07/2017 04:23:29

BAer5t http://www.LnAJ7K8QSpkiStk3sLL0hQP6MO2wQ8gO.com


Barnypok - 07/07/2017 12:08:35

o3sepo http://www.LnAJ7K8QSpkiStk3sLL0hQP6MO2wQ8gO.com


Barnypok - 07/07/2017 10:15:16

Uf5zh5 http://www.LnAJ7K8QSpkiStk3sLL0hQP6MO2wQ8gO.com


JimmiXzSq - 21/05/2017 11:24:21

A8yfoc http://www.LnAJ7K8QSpkiStk3sLL0hQP6MO2wQ8gO.com


JimmiXzSq - 20/05/2017 19:41:32

LDsDu3 http://www.LnAJ7K8QSpkiStk3sLL0hQP6MO2wQ8gO.com


JimmiXzSq - 18/05/2017 14:40:27

mqw8re http://www.LnAJ7K8QSpkiStk3sLL0hQP6MO2wQ8gO.com


Barnypok - 02/04/2017 02:15:14

K6jUEI http://www.LnAJ7K8QSpkiStk3sLL0hQP6MO2wQ8gO.com


JimmiXzSw - 19/02/2017 14:28:33

z2EGlj http://www.FyLitCl7Pf7ojQdDUOLQOuaxTXbj5iNG.com