Installing WordPress

WordPress

  • An Open Source CMS
  • Primarily aimed at creating blogs
  • Flexible enough to make a variety of different types of site

Publishing your webpage

  • You all have some webspace for publishing your own pages
  • You can put files in the public_html directory on your G: drive
    • If you put webpage.html in public_html
    • You can access it at doc.gold.ac.uk/~login/webpage.html
    • where login is your college login id

Downloading WordPress

  • http://wordpress.org/download/
  • Download it
  • unzip it
  • Rename directory (e.g. to wordpress)
  • copy the wordpress directory to your public_html folder
  • [Rename it]

Setting file permissions

  • If you want to be able to install new themes and content you need to make some folders public
    • Right click on the wp-content subfolder
    • Select properties
    • Under Security select Everyone and click edit
    • select full control
    • do the same for the subdirectories of wp-content
  • On a goldsmiths Mac it is a little harder
    • You need to use the terminal (the app whose icon is a black box with >_written in it
    • type ssh yourusername@igor.gold.ac.uk
    • login with your goldsmiths password
    • you are now on igor, you need to use unix commands from now on
    • type cd public_html
    • this changes directory to your public_html
    • type cd yourwordpress or whatever the name of the directory wordpress is in
    • type ls and check that wp-content is listed
    • type chmod -R 777 wp-content

Accessing your site

  • doc.gold.ac.uk/~[username]/wordpress
  • Replace wordpress with whatever you have called the wordpress directory
  • You get a screen telling you to edit wp-config.php

Setting up the database

  • Before you use WordPress you need to have a data base set up
  • You should have a username and password
  • Go to the department intranet
    • Select IT support information
    • Select MySQL database server
    • Follow the instructions to set up a new database

wp-config.php

  • Need to edit this file
  • Copy wp-config-sample.php to wp-config.php
  • Open it up in notepad

wp-config.php

  • You need to find the following line:
    • define('DB_NAME', 'putyourdbnamehere');
  • And replace:
    • putyourdbnamehere
  • With the name of the database you just created

wp-config.php

  • Find the following lines:
    • define('DB_USER', 'usernamehere');
    • define('DB_PASSWORD', 'yourpasswordhere');
  • Add your database username and password
  • Find the following line:
    • define('DB_HOST', 'localhost');
  • Replace:
    • localhost
  • With:
    • igor.gold.ac.uk

The install page

  • Now you can go to:
    • doc.gold.ac.uk/~[username]/wordpress/wp-admin/install.php
  • Enter the name you want to give to your site and your email address
  • You will be given a user name (admin) and password
  • Make a note of these and you can log in to your site

Your site!

  • You will see the dashboard, the area where you control your site
  • At the top there will be a note about changing your password: Do so
  • Once you have done that look at the top right
  • Next to the site name there is a link saying “Visit Site” click on it
  • Pretty minimal for now

Create PDF    Send article as PDF to