Friday 10 July 2009 8:50:15 am
- use fastcgi extension for iis from ms: http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1521 - setup proper php config in fcgiext.ini. You can even have different php versions running side by side, ex:
[types]
; old app runnings on php4, identified by ID of its site
php:226849490=PHP4
; default apps run on php 5.2
php=PHP52
[PHP52]
ExePath=c:\php52\php-cgi.exe
MaxInstances=100
ActivityTimeout=300
RequestTimeout=300
Arguments="-c c:\php52"
InstanceMaxRequests=10000
[PHP53]
ExePath=c:\php53\php-cgi.exe
MaxInstances=100
ActivityTimeout=300
RequestTimeout=300
Arguments="-c c:\php53"
InstanceMaxRequests=10000
[PHP4]
ExePath=c:\php\php.exe
- use vhost mode for ezp, using ionics isapi rewrite filter from http://iirf.codeplex.com - setup proper rewrite rules for it, ex:
# Direct access files: images, css, js, etc...
RewriteRule ^/(design|extension/(.+)/design|var/storage|var/plain_site/storage)/(.*)\.(gif|jpe?g?|png|css|js|swf|html?)$ - [L]
# Direct access binary content: pdf, ppt, etc
#RewriteRule ^/(var/storage|var/plain_site/storage)/(.*) - [L]
# Direct access to 'share' content: icons, etc
RewriteRule ^/share/(.*)\.(gif|jpe?g?|png|ico)$ - [L]
# Direct access to ezoe compiled files
RewriteRule ^/var/plain_site/cache/public/(.*)\.(css|js)$ - [L]
# Robots, favicon
RewriteRule ^/robots\.txt$ - [L]
RewriteRule ^/favicon\.ico$ - [L]
# Contentstructuremenu
RewriteRule content/treemenu/? /index_treemenu.php [L]
RewriteRule ^/(.*) /index.php/$1
- wait for some nice soul to fix the thread/process model of iis-fastcgi or the memory-sharing model of apc or xcache to make them useful on that platform. Currently memory sharing does not work between php processes spawned by iis-fastcgi, which kind of defeats the goal of the accelerators - make sure your content editors do not try to create images with overly long names, as the generated file names will be longer than the maximum allowed by windows
Principal Consultant International Business
Member of the Community Project Board
|