Running ZenMagick on IIS
For the sake of an exercise I’ve started installing IIS (5.1) and PHP 5.3.2 (fastcgi) to see if ZenMagick, and in particular the MVC code, will run without problems.
So far I’ve done the following (pretty much following these instructions):
- Installed IIS (on XP Professional – I know it’s old but it works for me…)
- Downloaded PHP5.3.2 nts VC6 (zip file)
- Downloaded and installed fastcgi 1.5
- Failed to be able to configure fastcgi using the scriped approach, so did some bits manually (registering fastcgi as handler for .php)
- Added a new virtual folder in IIS Admin pointing to my local ZenMagick installation
- Configure PHP to use a custom logfile to be able to see errors :/
- Run the Permission Wizard on the created virtual directory (right click -> All Tasks -> Permission Wizard) and configure permissions for a public access website
- Re-enable Default Documents and add index.php to the list
Right now I am at a point where things start to load, but Savant is unable to find the template file – I guess some of the code in ZMRequest that controls the various paths is not working in IIS, but I’ll have to debug that first.
I’ll update this list once I have found out more…
UPDATE:
So far I’ve found one compatibility issue and one regression! The regression was using ZMLangTools instead of ZMLangUtils, so that was easy to fix. The other issue was that in IIS $_SERVER['REQUEST_URI'] is not what Apache thinks it should be :/
UPDATE2:
I’ve also installed a self signed cert to test SSL. This is pretty simple:
- Download and install the IIS 6.0 Resource Kit
- Open the SelfSSL shell and run something like: ‘selfssl.exe /N:CN=ZenMagick /V:365′
UPDATE3:
Next on my list, but not yet done is enabling some sort of URL rewriting to allow to use some of the seo stuff. This mod looks quite promising…
