Installing WordPress Step 1B: Installing the WordPress Directory Directly on Linux (CentOS 6)

This post is part of a step-by-step series on installing WordPress on Linux (CentOS 6)

I prefer to install things with yum (or any package manager) when I can, but unfortunately there are some limitations to the epel WordPress package as we discussed in the post about installing WordPress using yum. This post will deal with how to install WordPress directly, though I will use yum for dependencies.

Requirements

The official requirements are as follows:

  1. PHP version 5.2.4 or greater
  2. MySQL version 5.0 or greater

If you wish to install these separately you may do using the following tutorials:

  1. Installing different versions of php
  2. Installing the latest version of MySQL

Making Sure All Dependencies are Installed

Technically we don’t have to do this step because the tutorials above will explain how to install the WordPress requirements, but let’s cheat a bit and use yum‘s awesome capabilities to get our dependencies in order:

Installing the EPEL Repo

Choose your OS here. I will be installing on CentOS 6:

[ahmed@amayem ~]$ sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Check here to see how to give a linux user sudo powers.

Temporary yum Installation

[ahmed@amayem ~]$ sudo yum install wordpress

For the dependencies you will notice a whole lot of extra things being installed:

 Package                  Arch          Version               Repository       Size
=====================================================================================
Installing:
 wordpress                noarch        3.9.2-3.el6           epel             4.7 M
Installing for dependencies:
 enchant                  x86_64        1:1.5.0-4.el6         base              49 k
 freetype                 x86_64        2.3.11-14.el6_3.1     base             359 k
 hunspell                 x86_64        1.2.8-16.el6          base             177 k
 libX11                   x86_64        1.5.0-4.el6           base             584 k
 libX11-common            noarch        1.5.0-4.el6           base             192 k
 libXau                   x86_64        1.0.6-4.el6           base              24 k
 libXpm                   x86_64        3.5.10-2.el6          base              51 k
 libxcb                   x86_64        1.8.1-1.el6           base             110 k
 libxslt                  x86_64        1.1.26-2.el6_3.1      base             452 k
 php-IDNA_Convert         noarch        0.8.0-1.el6           epel              35 k
 php-PHPMailer            noarch        5.2.2-1.el6           epel             474 k
 php-simplepie            noarch        1.3.1-3.el6           epel             465 k
 php55w-enchant           x86_64        5.5.15-1.w6           webtatic          15 k
 php55w-gd                x86_64        5.5.15-1.w6           webtatic         142 k
 php55w-mbstring          x86_64        5.5.15-1.w6           webtatic         941 k
 php55w-mysqlnd           x86_64        5.5.15-1.w6           webtatic         245 k
 php55w-pdo               x86_64        5.5.15-1.w6           webtatic          93 k
 php55w-process           x86_64        5.5.15-1.w6           webtatic          34 k
 php55w-xml               x86_64        5.5.15-1.w6           webtatic         144 k
 t1lib                    x86_64        5.1.2-6.el6_2.1       base             160 k

Transaction Summary
======================================================================================
Install      21 Package(s)

Notice all the extra packages, even though we had already installed the mentioned pre-requisites.

Uninstall the yum Version of WordPress

[ahmed@amayem ~]$ sudo yum remove wordpress

enter y when asked to confirm. Notice that the list of removed items is only wordpress and not the whole list of other programs.

Download the WordPress Installation file

[ahmed@amayem ~]$ wget http://wordpress.org/latest.zip

Let’s check it is there:

[ahmed@amayem ~]$ ls
latest.zip

Unzip the File

[ahmed@amayem ~]$ unzip latest.zip

A huge list of unzipped files should appear. Let’s see what it produced:

[ahmed@amayem ~]$ ls
latest.zip  wordpress

It made a directory called wordpress. Let’s peek inside:

[ahmed@marzooq wordpress]$ ls
index.php        wp-admin              wp-cron.php        wp-mail.php
license.txt      wp-blog-header.php    wp-includes        wp-settings.php
readme.html      wp-comments-post.php  wp-links-opml.php  wp-signup.php
wordpress        wp-config.php         wp-load.php        wp-trackback.php
wp-activate.php  wp-content            wp-login.php       xmlrpc.php

This is the directory where WordPress will run from, though we can change that in the future:

Next Steps

  1. Setting Up MySQL Database
  2. Updating wp-config.php with Database Settings and Security Keys
  3. Deciding the Site Root Directory and Moving Files there
  4. Running the WordPress php Install Script

References

  1. Official WordPress Installation Codex Installation

Ahmed Amayem has written 90 articles

A Web Application Developer Entrepreneur.