The quick guide to setup Movable Type 3.2 on Windows IIS, including the setup of MySQL, Perl, and PHP.
Table of ContentsPHP Installation
It is now time to install PHP. You may download the PHP package from php.net.
Under the Windows Binaries heading, download the most recent ZIP Package (NOT the installer package)
Unzip the files on your server. For this guide I will assume they are unzipped to c:\php

Locate the file named php.ini-recommended and rename it to php.ini. Once renamed, open the file in your favorite text editor.
Locate the line that reads extension_dir = "./" around line 515 and change it to extension_dir = "c:/php/ext/"
Locate the section labeled Dynamic Extensions (around line 596) and remove the semicolon ; before the following two lines:
; extension=php_mbstring.dll (around line 621)
; extension=php_mysql.dll (around line 645)
so it looks like this:

Save and close the file.
Next we need to add the proper folders to the system path.
Click Start Right-click My Computer and select Properties
Click the Advanced tab then click Environment Variables

Locate the Path variable in the System Variables section

Click Edit and go to the end of the Variable value text box
Add the following ;C:\php;C:\php\ext be sure to add the leading semicolon ; as shown (highlighted)

Click Ok three times
Now we will allow PHP to run in IIS. This is a two part process.
Open the IIS Manager and select the Web Services Extensions folder and click on the Add a new Web service extension... task

Enter PHP ISAPI Extension for the Extension Name then click the Add button
Enter c:\php\php5isapi.dll then click Ok

Now select the new Extension (PHP ISAPI Extension) and click Allow
You may receive the following notice:

Inheritance Overrides. This notice is informing you that you have multiple web sites currently configured that do not include the PHP association you just set. Select the servers you with to enable PHP on and click Ok
Now we will add PHP as an associated extension on the server. Right click the Web Sites folder in the IIS manager and select Properties. Next, select the Home Directory tab and click on the Configuration... button
This step is similar to what we did with Perl on page one. Click the Add button and enter c:\php\php5isapi.dll into the Executable field.
Enter GET,POST,HEAD into the Verbs - Limit to field and click Ok twice.

Select the Documents tab and click Add... Type index.php into the field and click Ok

Select index.php in the list and click the Move Up button until it is in the preferred priority for your system. If you do not have a preference then move it to the top.

Click Ok and close IIS manager
PHP is now installed on your server. You may have to restart IIS to enable PHP. Do this by selecting your server in the IIS Manager folder tree. Click Actions - All Tasks - Restart IIS... Select Restart Internet Services and click Ok.
Now its time to test PHP. Point your browser to test.php from the previously unzipped test files. You should now see a purple PHP logo along with a list of all PHP environment variables.

Continue to MySQL Installation >>
Table of Contents