Wordpress installation and configuration: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{Stub}}
{{Stub}}


Please, also read [http://codex.wordpress.org/Installing_WordPress 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 - [[User:Daniel K. Schneider|Daniel K. Schneider]] 16:31, 19 January 2010 (UTC).
Please, also read [http://codex.wordpress.org/Installing_WordPress Installing Wordpress]. It's fine enough. I only created this article in order to have a shorter piece I could use with a projector in a web applications class - [[User:Daniel K. Schneider|Daniel K. Schneider]] 16:31, 19 January 2010 (UTC).


== Installation ==
== Installation ==
Line 35: Line 35:
* Enter the password twice (and remember it)
* Enter the password twice (and remember it)
* Important: Tick '''Create database with same name and grant all privileges''' (this will create a new database)
* Important: Tick '''Create database with same name and grant all privileges''' (this will create a new database)
* Crucial: Never grant any global privileges on a production server. Each database should have its own life (and hacking attacks).


[[image:phpmyadmin-createuser.jpg|frame|none|PhpMyAdmin 3.1.2 User and Database creation]]
[[image:phpmyadmin-createuser.jpg|frame|none|PhpMyAdmin 3.1.2 User and Database creation]]
Line 42: Line 43:
* database user name = blog
* database user name = blog
* password = rumpelstilskin
* password = rumpelstilskin
=== Base installation ===
; Download and put code in place
# Download unzip the WordPress package from http://wordpress.org/download/.
# Create a directory somewhere and call it ''junk''
# Dezip the package within the junk directory. You will see a directory called ''wordpress''
# If you wish to have a different URL on your server, e.g. http://xxxx/blog, then ''rename'' the wordpress directory.
# Transfer this directory to the web server tree, e.g. via FTP to a provider, to a local "www" directory or somewhere on your local area network.
; Base installation
# Rename the wp-config-sample.php file to wp-config.php. Make sure to get it right !
# Edit this file (''wp-config.php'') in a [[text editor]]. Do not use Word or Notepad. Enter information below and adapt to database name and database user name that you just defined above.




[[Category: Portalware]]
[[Category: Portalware]]
[[Category: Installation tips]]
[[Category: Installation tips]]

Revision as of 18:43, 19 January 2010

Draft

Please, also read Installing Wordpress. It's fine enough. I only created this article in order to have a shorter piece 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)
  • Crucial: Never grant any global privileges on a production server. Each database should have its own life (and hacking attacks).
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

Base installation

Download and put code in place
  1. Download unzip the WordPress package from http://wordpress.org/download/.
  2. Create a directory somewhere and call it junk
  3. Dezip the package within the junk directory. You will see a directory called wordpress
  4. If you wish to have a different URL on your server, e.g. http://xxxx/blog, then rename the wordpress directory.
  5. Transfer this directory to the web server tree, e.g. via FTP to a provider, to a local "www" directory or somewhere on your local area network.
Base installation
  1. Rename the wp-config-sample.php file to wp-config.php. Make sure to get it right !
  2. Edit this file (wp-config.php) in a text editor. Do not use Word or Notepad. Enter information below and adapt to database name and database user name that you just defined above.