This may help someone else – I was setting up a test server with Windows Server 2008 Standard with the update to R2. I wanted it to use for testing of some WP sites and plugins I’m working on. I installed MySql, that was pretty straight forward.

Then I put PHP in. I loaded it into c:\php. (See PHP.INI Settings below)

I then added a new web site and put a test page in with this:

<?php
phpinfo();
?>

Then when you go to it if  php is running you should get the PHP Info table. If you can’t get this, no sense putting WP in yet, it won’t work.

Then set the permissions for the web directory. Adding to the defaults I used Modify for Users, Full for NETWORK SERVICE and Modify for IIS_IUSERS.

Then downloaded WP and unzipped it to the web directory. Then next thing is to edit wp-config.php and set the values for host, database, login and pw for mysql access.

PHP.INI settings –

Then I had to edit php.ini, here are the changes I made. That means uncomment the line and set it’s value:

; display_errors
Default Value: On
; Development Value: On

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
error_log = syslog

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
upload_tmp_dir = c:\tmp

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 22M

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 10

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = put@youremailhere.com

; Log mail to syslog (Event Log on NT, not valid in Windows 95).
mail.log = syslog

[ExtensionList]

extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_exif.dll ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll