PHP Script Caching - APC, eAccelerator and some Debian/Ubuntu packaging
Updated 2007-04-10: This post was written in August, 2006 and has been superseded. Here are some pre-built eAccelerator packages for Ubuntu, you could also build your own from my Debian source for eAccelerator or you could use my pre-built eAccelerator packages for Debian Etch.
... back to the original post...
PHP script caching has been flavour of the week for me here. First I tried out APC (the APC docs are here), because it seems it is The Coming Thingtm (somewhat belying it's name as the "Alternative PHP Cache"). Unfortunately at present APC does not cope with Gallery2 although it is just fine and dandy with Drupal.
No doubt that will be fixed in due course, and I will probably switch to it, but in the meantime I am using eAccelerator which works just fine with both Drupal, Gallery2 and as much of my own code as I have tried. I'm now running it on my development environment, so I guess everything will work with it eventually, even if it doesn't at the moment :-)
As a result, I now have packages of eAccelerator for i386 / PHP5 / Apache2 / Ubuntu Dapper and for i386 / PHP5 / Apache2 / Debian Sid, and it is time to share the love.
While these aren't exactly raw packages (e.g. they add the line to your php.ini file) they aren't polished either. At this point they don't build php4-eaccelerator packages, and I haven't tried to build them against apache 1.3.
The Deb for Sid should verify thusly:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.0 Source: eaccelerator Version: 0.9.5-rc1-1 Binary: eaccelerator Maintainer: root
Architecture: any Standards-Version: 3.7.2 Build-Depends: debhelper (>= 5) Files: 6234c7a3f463c9a982e89a038841a04f 154119 eaccelerator_0.9.5-rc1.orig.tar.gz a472af17d7992012c5eee077579c858a 3807 eaccelerator_0.9.5-rc1-1.diff.gz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE4vQgjJA0f48GgBIRAjp1AKCWwOTgQKZZ2cxqAuBRWFmU5I9yBACePDbW gslWRtUeasGAhu1YmLgoUxg= =OFZL -----END PGP SIGNATURE-----
Assuming you munge the name the way I have.
If you want more, send me a request and I'll see if I can build them in other environments (like Sarge, AMD64, PHP4 with Apache 1.3), or add stuff to them to support that. Unfortunately I believe there are licensing issues somewhere in the dark past of eAccelerator, so I probably can't upload them to Debian.
Attachments removed since they are no longer current