Introduction
This walkthrough is intended to help hosters verify that their customers can use the Windows Web Platform tools and services to download, customize, publish, and manage their applications in a Hosted Environment.
In this case we’ll play the role of the developer and use the Microsoft Web Platform Installer to deploy a popular blogging PHP application called “WordPress” in the local developer machine. Once we verify that works we’ll proceed to deploy it in the hosted server.
In summary this walkthrough covers:
- Using Web Application Installer to install WordPress in a developer machine
- Configuring the application to use MySQL and test it locally
- Using Visual Web Developer to modify and publish the application to the remote server.
- Using IIS Manager Remote Administration feature to change the application Default document list.
Prerequisites
- The hoster must have provided the developer with credentials that have access to an FTP site that shared its content with the corresponding Web Site. See FTP and VWD article <link: to FTP and VWD article> for details on how to setup this configuration so that users are isolated from each other.
- The hoster must have PHP installed <link: http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/>.
- The hoster must have provided the developer with a MySQL database <link: http://learn.iis.net/page.aspx/353/mysql-server/>.
- The developer must have installed Visual Web Developer (VWD) and MySQL.
- The developer must have installed the Web Platform Installer (WPI). Follow the instructions at <link: http://go.microsoft.com/fwlink/?LinkId=145510 >
Step 1: Using WPI, install the WordPress application on your development machine
As of the writing of this article a new version of Web Platform Installer is being released to the Web. Please visit http://go.microsoft.com/fwlink/?LinkId=145510 for more information. The set of applications include WordPress.
Step 2: Test the local WordPress Site and corresponding Database:
Use IE to browse to the site:

Now you are ready to publish the application.
Step 3: Use Visual Web Developer (VWD) to Modify and Publish Your Application
- Open your WordPress Site with VWD. The following dialog will display, press Yes.


- Modify the server name for the database and any other values provided by the hoster.

- Open the menu Website and select “Copy Web Site”:


- Click Connect. Select FTP Site and enter the Server name, Port and user account credentials. Ensure that “Passive Mode” is checked and press Open:

- Proceed to publish the entire content to the target server.
Step 4: Deploy the WordPress MySQL Database Schema and Test Site.
When WordPress runs for a first time it checks to see if the database schema is present, if it is not, it will allow the admin user to generate it.
- Using Internet Explorer browse to the new site, the following screen is displayed, enter the information requested:

- WordPress will auto-generate a random password for the admin user, make note of it and proceed to login:

- Enter the Admin credentials obtain in the previous step:

- Now you can browse to the wp-admin page:

Step 5: Use IIS Manager Remote Administration to change the WordPress Site Default Document List.
-
Start IISMgr, if you are running Vista ensure that you are running the remote version of IISMgr:

-
Connect to the Remote Site:

-
Enter the Hoster provided user credentials:

-
Assign a name to the new connection:

-
Install any IIS Manager extension modules that are offered in the following dialog:

-
Select your new WordPress site, find the Default Document icon and double click on it:

-
Select the index.php default document and move it up to the first place in the list. This will improve the performance.

-
WordPress deployment is complete.
Conclusion
This walkthrough covered:
- Using Web Application Installer to install the WordPress PHP application in a developer machine.
- Configuring the application to use MySQL and test it locally.
- Using Visual Web Developer to modify and publish the application to the remote server.
- Using IIS Manager Remote Administration feature to change the list of Default Documents for the site.