Since I got no real feedback about mpm worker, I installed one this
morning to answer my own question.
Apache mpm worker and php-cgi under mod_fcgid installs OK from dist
sources for me and the gallery installs and runs OK as well.
I also struggled and got mod_fastcgi to work for php as well and there
is another mod_scgi that I haven't tested yet.
Found help here: http://www.howtoforge.com/apache2_with_php5_and_php4_p2
Saved some screen shots here http://trbailey.net/svninstall/
First Impression, it's not faster but it does have a smaller memory
footprint and this Apache (mpm worker) handles a load better, lots
better. It also seems to release unused ram more readily than prefork.
Using mod_fcgid I get a strange browser error running unit tests just
after the popup begins counting so I wasn't able to complete them.
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Apache error.log shows:
[Thu Aug 28 16:29:50 2008] [notice] mod_fcgid: call /var/www/gallery2/lib/tools/phpunit/index.php with wrapper /usr/lib/cgi-bin/php5
[Thu Aug 28 16:37:08 2008] [notice] mod_fcgid: process 25941 going graceful shutdown, sending SIGTERM
[Thu Aug 28 16:37:14 2008] [warn] mod_fcgid: process 25941 graceful shutdown timeouted, sending SIGKILL
[Thu Aug 28 16:37:15 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Thu Aug 28 16:37:15 2008] [warn] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request function
[Thu Aug 28 16:37:20 2008] [notice] mod_fcgid: process /var/www/gallery2/lib/tools/phpunit/index.php(25941) exit(communication error), get stop signal 9
[Thu Aug 28 16:37:21 2008] [notice] child pid 25863 exit signal Segmentation fault (11)
[Thu Aug 28 16:37:21 2008] [error] mod_fcgid: fcgid process manager died, restarting the server
[Thu Aug 28 16:37:21 2008] [notice] SIGHUP received. Attempting to restart
[Thu Aug 28 16:37:22 2008] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
And I see a few references to this type of error on the net but no real
fixes. It seems listed as a known bug.
Installed mod_fastcgi to replace mod_fcgid.
How-to documentation is scarce for this combination. Installation
consisted of compiling a recent copy of mod_fastcgi then making
/fastcgi.load/ and /fastcgi.conf /files and placing them in
/apache/mods-available, then enabling them via Webmin. Could have used
a2enmod just as easily. I'm sure there are other ways to install it but
for testing this seems OK. It's adding photos while I type and it's
definitely faster than mod_fcgid. Why I don't know.
I notice the output is heavily buffered. Browser updates are sporadic
and slow. I hope there is a way to alter this behavior.
But, will it run unit tests?
I started a test but stopped it after 15 minutes thinking it was hung.
It was probably the buffered output.
I'll restart the box, restart the unit tests and see if it's finished
before I hit the sack.