Install WordPress on a Windows 2008 Server with IIS 7

You can find many instructions on the Web on how to install WordPress on your own web server, but it might still be a complicated task. So I did my own instructions as per below:

  1. Make sure you have MySQL installed on your server
    image
  2. Make sure, IIS 7 is installed
    image
  3. Make sure PHP is installed and php.ini is configured correctly
    image
  4. Download the latest WordPress version (2.9.2 as of this writing) from wordpress.org
    image
  5. Unzip the downloaded file into a newly created Inetpub sub-folder
    image
  6. The newly created folder under Inetpub should now have the following contents
    image
  7. Make sure that the IUSR internal group has full rights on that directory to be able to upload files via WordPress and to auto-update themes etc.
    image
  8. In IIS Manager create the web site to host the WordPress blog
    image
  9. On MySQL, create a database for the new blog. For this, open a command prompt and type mysql –u root –p
    image
  10. At the mysql> prompt, type CREATE DATABASE blogexamplecom;
    image
  11. Now, give the WordPress service user (I called him wordpress) the full rights on the newly created database by typing
    GRANT ALL PRIVILEGES ON blogexamplecom.* TO 'wordpress'@'localhost';
    image
  12. Type FLUSH PRIVILEGES;
    Type EXIT to leave the mysql> prompt
    image
    image
  13. In the Inetpub sub-folder, create the wp-config.php file with the following contents:
  14. <?php
    define('DB_NAME', 'blogexamplecom');
    define('DB_USER', 'wordpress');
    define('DB_PASSWORD', 'password');
    define('DB_HOST', 'localhost');
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    define('AUTH_KEY', 'Random phrase 1');
    define('SECURE_AUTH_KEY', 'Random phrase 2');
    define('LOGGED_IN_KEY', 'Random phrase 3');
    define('NONCE_KEY', 'Random phrase 4');

    $table_prefix  = 'wp_';

    define ('WPLANG', 'en');

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');
    ?>

  15. Now you can start the installation of the WordPress tables by typing the following URL into your browser
    http://blog.example.com/wp-admin/install.php

Leave a Reply

Your email address will not be published. Required fields are marked *