Wordpress installation and configuration

The educational technology and digital learning wiki
Jump to navigation Jump to search

Draft

Please, also read Installing Wordpress. I only created this article in order to have a shorter thing I could use with a projector in a web applications class - Daniel K. Schneider 16:31, 19 January 2010 (UTC).

Installation

Creating a database

WP needs a MySQL database. The installation procedure will create many tables that should normally sit in their own database.

In practice, you have several situations.

(1) If you have a cheap or free provider or if you have a student account, you only may have access to single database. This means that WP will have to co-exist with other applications. That is not a big problem, since most applications add a prefix to each table. By default, WP will add a

(2) If you want to install WP with a "normal" shared webhosting provider, then you likely may use several databases. Consult the admin interface. Usually there is a tool that allows you to manage databases, e.g. add users and tune permission.

(3) If you have your own MySQL server, then you should install WP in its own database that you'll have to create, i.e.

  • Create a database user (that WP will then use to connect to the database)
  • Create a database that database user can access and fill up with table (and later, data)

In both cases you must create and/or remember:

  • The name of the database
  • The name of the database user
  • The password of the database user
Creating a database and database user with phpMyAdmin

PhpMyAdmin is a popular database management system that is installed with most providers. You may create a new database and user in different orders. The most easiest way is to use the following procedure:

(1) Click on the Privileges tab on the top horizontal menu

(2) Click on Add User at the bottom

  • Then choose a user name, e.g. 'blog'
  • Then select host=local or type localhost
  • Enter the password twice (and remember it)
  • Important: Tick Create database with same name and grant all privileges (this will create a new database)
PhpMyAdmin 3.1.2 User and Database creation

If you do it right you'll have

  • database name = blog
  • database user name = blog
  • password = rumpelstilskin