Drupal multi-site setup on IIS 6.0, FastCGI 1.0, and PHP 5.2.11

It is possible to have a Drupal multi-site setup on IIS 6.0, using the FastCGI extension to connect to PHP. In fact, it is necessary to use FastCGI rather than ISAPI to have a multi-site setup, as well as to be able to setup up Clean URLs. FastCGI also tends to be faster than ISAPI because it recycles processes for server requests.

Rather than just repeat the instructions that are provided elsewhere, I will provide the links to the resources I used to get my setup running and points to give extra consideration. Please feel free to post any questions, or your own experiences in the comments. This article was inspired by the discussion on Drupal Groups "Production Drupal sites on IIS (or windows in general) - Experiences?". I wanted to migrate to a multi-site setup to make core and module updates easier.

Start by reading the article "Using FastCGI to Host PHP Applications on IIS 6.0" on IIS.net. This is the primary guide for the entire setup process.

"Confirguring FastCGI Extension for IIS 6.0"is another good resource. It is specific to setting up sites in IIS manually to work with FastCGI, and advisable to review as well.

Some tips before proceeding:

  • I had been running PHP 5.2.9 before deciding to upgrade to a multi-site install, but did not have success with that version and FastCGI. Therefore, I recommend completely scrubbing PHP 5.2.9, make a backup copy of php.ini but delete it from the install directory.
  • I removed all other traces PHP that had accumulated through my testing, as I had tried to use the FastCGI-PHP combo installer from IIS-aid.net, without success, and it had installed PHP to a different directory than usual. Same case with random files from the PHP installer from Microsoft.
  • I had also tried FastCGI 1.5 RC (beta), without success, and completely uninstalled this as well - by using the "Add/Remove Programs" Control Panel function in Windows, and then deleting the three FastCGI files from the system32 folder.
  • I made sure to remove the old ISAPI script mappings from all sites in IIS before starting the setup process.
  • I make no reference to installing MySQL here, I assume you already have it installed and running.
  • I usually run a Google search when tackling a tech issue, and gather as much information as possible before diving into the endeavor

Once you have a clean slate to work with, follow the steps in "Using FastCGI to Host PHP Applications on IIS 6.0", which are summarized below with extra notes.

1. Install FastCGI extension

  • the "Install Now" link on the right side of the page will install the Microsoft Web Platform Installer, which is recommended over the direct download links because it is possible to select the FastCGI 1.0 version rather than the 1.5 beta

2. Install PHP

  • make sure you download the PHP 5.2.11 Non-thread-safe installer, which can be found at the link above, towards the bottom of the page
  • select the following extensions when prompted during the process: BLENC, bzip2, Curl, EXIF, FDF, GD2, Gettext, IMAP, Multi-Byte String (mbstring), Mimetypec, MySQLi, OpenSSL, PDO, PDO_MYSQL, POP3, SMTP, SOAP, timezonedb, XML-RPC, zip, PEAR Install [thanks to Switchback for providing their list]
  • select the FastCGI option when prompted to configure the server

3. Configure FastCGI, PHP, and IIS to work with each other

  • follow the instructions in the article to manually set IIS up, and to change the fcgiext.ini and php.ini files by hand - the mappings and some of the settings in fcgiext.ini may be set automatically, but verify the settings and make sure to edit the CGI settings in php.ini (per the section "Setting FastCGI Configuration...")

4. Setup multi-site install of Drupal

  • follow the Drupal tutorial "Multi-site on Windows-IIS" -if you have trouble connecting to your sites, try using full ".com" names for your folders -it can be helpful to restart IIS as well if you cannot connect to your sites

Comments

Add new comment | arxic Drupal

Nice post. I was checking constantly this blog and I'm impressed!
Extremely useful info specifically the last part :) I care
for such info much. I was seeking this certain info for a long time.
Thank you and best of luck.

Add new comment | arxic Drupal

Hello! Someone in my Facebook group shared this site with
us so I came to give it a look. I'm definitely loving the information. I'm book-marking and will be tweeting
this to my followers! Great blog and amazing design.

Add new comment | arxic Drupal

Hey there! Do you know if they make any plugins to safeguard against hackers?
I'm kinda paranoid about losing everything I've worked hard on. Any suggestions?

Add new comment | arxic Drupal

Hi! I just wanted to ask if you ever have any issues with hackers?
My last blog (wordpress) was hacked and I ended up losing
months of hard work due to no back up. Do you have any solutions to stop hackers?

Add new comment | arxic Drupal

Thanks for every other great article. Where else may just anybody get that kind of info in such a perfect approach of
writing? I've a presentation subsequent week, and I am on the look for such information.

Add new comment | arxic Drupal

hey there and thank you for your info – I have definitely picked up anything new
from right here. I did however expertise a few technical points using this
site, since I experienced to reload the web site many
times previous to I could get it to load correctly. I had been wondering if your web host is OK?
Not that I'm complaining, but slow loading instances times will very frequently affect your placement in google and could damage your high-quality score if ads and marketing with Adwords.
Anyway I am adding this RSS to my e-mail and can look out
for much more of your respective fascinating content.
Ensure that you update this again very soon.

Add new comment | arxic Drupal

Hi! I realize this is somewhat off-topic however I
needed to ask. Does managing a well-established blog like yours take a lot of work?
I'm completely new to operating a blog however I
do write in my journal everyday. I'd like to start a blog so I can share
my own experience and feelings online. Please let me know if you
have any kind of recommendations or tips for new aspiring
bloggers. Appreciate it!

Add new comment | arxic Drupal

My programmer is trying to persuade me to move to .net from
PHP. I have always disliked the idea because of the expenses.
But he's tryiong none the less. I've been using
WordPress on numerous websites for about a
year and am worried about switching to another platform.
I have heard fantastic things about blogengine.net. Is there a way I can import all my
wordpress posts into it? Any help would be greatly appreciated!

Add new comment | arxic Drupal

I am really loving the theme/design of your web site.
Do you ever run into any internet browser compatibility issues?
A handful of my blog visitors have complained
about my blog not working correctly in Explorer but looks great in Safari.

Do you have any recommendations to help fix this problem?

Add new comment | arxic Drupal

Greetings! Very useful advice in this particular post!
It's the little changes that produce the most significant changes.
Thanks a lot for sharing!

Add new comment | arxic Drupal

Nice post. I was checking constantly this blog and
I'm impressed! Extremely useful information specifically the last part :) I care for such information a lot.
I was looking for this certain info for a long time. Thank
you and best of luck.

Add new comment | arxic Drupal

Your style is so unique in comparison to other folks I've read stuff from.
Many thanks for posting when you've got the opportunity, Guess I will just bookmark this blog.

f12kvs6 o151ti

Very good tips. Kudos.
[url=https://viaonlinebuymsn.com/]viagra without perscription[/url] [url=https://safeonlinecanadian.com/]canada drugs[/url] [url=https://canadianpharmacyntv.com/]drugstore online shopping[/url] [url=https://canadianpharmacycom.com/]mexican pharmacies shipping to usa[/url] [url=https://trustedwebpharmacy.com/]canadian online pharmacies legitimate by aarp[/url] [url=https://buymodafinilntx.com/]provigil medication[/url]

Add new comment | arxic Drupal

Oh my goodness! Awesome article dude! Many thanks, However I am encountering troubles with your RSS.
I don't know why I am unable to subscribe to it.

Is there anyone else having identical RSS problems? Anyone who knows the answer can you kindly respond?

Thanks!!

Add new comment | arxic Drupal

Wow! This blog looks just like my old one! It's on a totally different subject
but it has pretty much the same layout and design. Great choice of colors!

k54kfnx p84goq

You said it adequately.! <a href="https://canadianonlinepharmacytrust.com/">canada pharmaceuticals online</a> <a href="https://lisinopriltrust.com/">Lisinopril Norvasc</a> <a href="https://comprarbaclofensinreceta.com/">lioresal</a> <a href="https://celexa-today.com/">Exhaustion While Taking Celexa</a> <a href="https://levitraoua.com/">levitra 20mg</a> <a href="https://weightlosswellbutrin.com/">another name for wellbutrin</a> <a href="https://atarax-hydroxyzine.com/">hydrochloride medication</a>

Add new comment | arxic Drupal

Hello there, You have done an incredible job.
I'll certainly digg it and personally suggest to my
friends. I am sure they'll be benefited from this site.

Pages

Add new comment