It looks like the solution is to use the apc cache with fastcgi (and a
slightly modified suexec).
After doing some crude bench testing, I came up with the cgi mode taking
1.6 times as long to process 400 requests (50 concurrently) on large (28K
lines) files. On small files (less than 10 lines), cgi mode took over 10
times longer. That of course is not good.
After implementing fastcgi and a modified suexec (to skip the owner/group
checks so I could get away with just one copy of the php binary), cgi mode
was fairly close to using mod_php statically in the httpd binary. The
average times for cgi were still a little slower, but the max times were
better than doing the module.
After implementing apc built statically into the php binary, the numbers
changed drastically. using that setup, cgi was now over 10x faster than
doing a module for the large files, and a bit better with smaller files
too.
As far as performance and security it looks like this will work well. Now
the test will be time in making sure that it ends up being stable...
On Thu, 14 Aug 2003 08:04:43 -0500, Nick Bartos wrote:
I am looking for an open source php accelerator that works in cgi mode.
I am guessing that to do that the cache would have to be on disk and not
in memory. I was looking at the turk accelerator (since it will cache
to disk), but it says somewhere that it will not work in cgi mode. I am
almost tempted to try it though.
Ideas? BTW my platform is linux.