Like many people, my preference is Linux/Unix for hosting/servers but I'm trapped working in a Windows Server environment. There are also a lot of IIS 5 and IIS 6 servers still out there. I'd like to see more instructions for installation that are IIS-specific (that included recommendations for the best way to install PHP and run SilverStripe on it. (for example, changes to the php.ini file like whether one should, or should not, turn on auto_detect_line_endings).
In particular, we need a good (free) way to handle the rewrite stuff. I think that the IIRF looks like it should work, but since it uses its own .ini file instead of reading the .htaccess files, we need some regex guru to translate the rules that SilverStripe needs (writes in the .htaccess file) and translate it into the IIRF instructions in the .ini files. (Example .ini files are here, including one for Joomla). If someone can provide one for SilverStripe, I'll bet they will include a link on their site to it also.
This would open up SilverStripe to all sorts of additional potential users.
I just managed to get Silverstripe 2.2.3 work on IIS6.0.
With the help of Helicon ISAPI Rewrite (like mentioned in the installation guide).
But one strange thing happend:
The base url was changed to https !
I finally found out what the problem is:
The function protocolAndHost checks the presence of $_SERVER['HTTPS'].
But this is always available on IIS 6.0.
If no SSL is running, it has the value "off".
Ass a quick an very dirty hack I just skipped this line (258) and
and added $s = ''; and now it works.
Of course I have to find a better solution.
I just wanted to let you know.
I agree with gingercat.. I'd really love to see a configuration file for IIRF (http://iirf.codeplex.com).
It shouldn't be too hard to implement, or is it? I had a try with it but got not too far. Hopefully
someone with more IIRF knowledge will help us.