WordPress Installation

What follows is a high-level overview of a WordPress (WP) installation we carried out in the first lab.

Here is a diagram of what we are aiming for – a WP installation talking to the MySQL database:

System diagram

Step-by-Step

Step 0: Make sure you have access to your W: at the university. You can check by going to http://itsuite.it.brighton.ac.uk/me93 (replace my username with yours). Then check you have a W: drive mapped in file explorer.

Step 1: Create a MySQL database to store the WP tables.
http://itsuite.it.brighton.ac.uk/mysql/
(In my case I created a database called me93_wordpress.)

Step 2: Login to phpMyAdmin to be able to check the install.
http://itsuite.it.brighton.ac.uk/phpmyadmin/
(By default this password will be your username)

Step 3: Download and unzip WordPress
Visit http://wordpress.org/download to download a zip archive.

Once downloaded, find an unzip the WordPress download. The archive will have a folder called ‘wordpress’ and the contents of that folder are what you are looking for. There should be ‘wp-admin’, ‘wp-content’, ‘wp-includes’ folders and about 20 files.

Step 4: Copy the files and folders found in Step 5 to the blog folder on your W:

Step 5: Edit the config file
Find ‘wp-config-sample.php’ in the folder and rename it to ‘wp-config.php’.

The following four lines need to be edited. Change the ‘replaceMe’ on each line to the required parameter.

/** Name of the database for WordPress */
define('DB_NAME', 'replaceMe');

/** MySQL database username */
define('DB_USER', 'replaceMe');

/** MySQL database password */
define('DB_PASSWORD', 'replaceMe');

/** MySQL hostname */
define('DB_HOST', 'localhost');

I also changed the database table prefix to the name of this module (default ‘wp_’), in case I want to install multiple WordPress sites:

$table_prefix = 'idm18_';

Step 6: Run the WP install. Go to the address of your install in your browser – this will not work in the file explorer. In my case: http://itsuite.it.brighton.ac.uk/me93/idm18/blog/ – edit path as appropriate. You will be asked to create a username.

Step 7: Change the permissions
WordPress will not have the ability to upload images or change themes by default on the university system. The system user needs to be be given permissions to gain control over the folder. Essentially promote the ‘cmisaspsql’ user to have modify permissions. Detailed instructions here.

Try to upload an image or change the theme to check the permissions are correct.

Step 8: Rejoice.


References

Please find all references here.

Leave a Reply