How to install wordpress on Internet Information Services ( IIS ) Server?

I assume you have PHP/MySQL running on your IIS server.

Here are the steps to install wordpress which will make your life easy.

Configure Database:
– Create database from plesk or cpanel.
– Assign proper user to that database ( you can create new user and assign that user to the database ).
– Note database name , database username , database password , database host in notepad.

Setup wordperss
– Now download wordpress from wordpress.org but you have to download IIS version of wordpress not the regular wordpress download. Download it from here

– Save the zip file in your local computer.

– Extract the zip file

wordpress_iis

– Upload the content of “wordpress” folder on your server.

– Copy all other files install.sql , manifest.xml , parameters.xml , tbex.xml , web.config in to same directory where you uploaded wordpress.

Download wordpress database abstraction plugin

– Save the zip file in your local computer.

– Extract the zip.

wordpress_database_abstraction

– Upload the wp-db-abstraction.php and the wp-db-abstraction folder to wp-content/mu-plugins folder. If the mu-plugins directory does not exist, you must create it on same level of plugins directory.

– Move db.php from wp-db-abstraction folder to wp-content/db.php

Now we are ready to run wordpress install :)

– To this browse http://www.yourwebsite.com/wp-content/mu-plugins/wp-db-abstraction/setup-config.php page in browser.

– Click on Let’s Go.

– Please fill all the details. You will ask to fill databasename , database username , database password , host , database type , table prefix .

– Click on submit.

Troubleshooting
– Make sure you have set permission for IUSR.
– Make sure you changed the code of web.config with following code.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"/>
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

– Change code in wp-content/mu-plugins/wp-db-abstraction/translations/sqlsrv/translations.php at line #726 .

$pattern = '/LIMIT\s*(\d+)((\s*,?\s*)(\d+)*)(;{0,1})$/is';

to

$pattern = '/LIMIT\s*(\d+)((\s*,?\s*)(\d+)*);{0,1}$/is';

If you are still getting any issue please comment here i will try my best to resolve your case.

Sudhir Tiwari

I'm technical executive with a 6 years track record of delivering complex, high value projects through development, programming , and product management. I'm solution expert in Magento, WordPress, Prestashop, X-cart, Cakephp, CodeIgniter , NetSuite.

You may also like...

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>