andrew.mcmillan.net.nz
cd /var/www; more /dev/rant >>index.html
 
projects


tags
CalDAV Catalyst DAViCal Debian Family FOSS Howto Humour installs ipv6 Kids lca moodle Music N770 Programming Rants RSCDS Travel Ubuntu Web


Recent comments


 
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.

Enjoy!



Attachments removed since they are no longer current

Patrick

I have been using eaccelerator for the project here. It works really well. I built it from raw source package on an amd64 dapper server with apache2 and php5.

oh FYI, there are FREE wifi

oh FYI, there are FREE wifi in sydney airport now. Jasmin just been there and surfing.

Just to confirm that it

Just to confirm that it builds a beautiful debian package on the server I have just mentioned.

thanks ...

... for the package, i use it with ubuntu / php5 / apache2 / gallery2 on my slow PC! it seems to be quicker!

thanks a lot

Great package, works perfect. Could you build another package for me which is included already in ubuntu but seems to be old. I need php5-json for dapper but I do not know wether the edgy package fits my needs? Could you leave a message here about that?
Thanks, Robert.

Thanks

Thanks for the deb package, worked like a champ on my dapper web server. The only thing I'd recomment and note here for others is that the following line needs to be added to your php.ini:

eaccelerator.debug=0

Without that line, you get a bunch of lines in your apache2 error log file for each file that eaccelerator hits.

Edgy Packages

I have repackaged this for eAccelerator 0.9.5 final with Ubuntu Edgy and PHP 5.1.6 at LinuxJedi

package for AMD64

I am trying to install gforge and it requires eAccelerator, they have included this package in the installation but my machine is AMD64 so the package does not work. Could you please provide AMD64 package as well. Thanks alot

There are better and newer places to get this now...

There are better and newer places with this, and not with a pre-release.

E-mail me if you can't find an AMD64 package of it somewhere else.

Cheers,
Andrew.

AMD64 (2007-04-09)

Hi
Where can I download it for AMD64?? For using it on Etch w/PHP5 and Apache2
Thank you
Regards

dhcmega

This is great!

Thanks for packaging this up -- my server running WordPress MU is now about 1000msec faster!

dapper packages for amd64

Ok, I haven't been able to find any packages for dapper amd64. Anybody know where to download them or if there's a repo I can add to sources? I'm running apache2 and php5.

You can download my sources

My repository should be serving the sources fine, and if you have an AMD64 to build them on you should be able to do so without problems.

Regards,
Andrew.

Thanks. I feel really

Thanks. I feel really stupid, but are you saying I can simply add your etch repository to my sources file (I'm running dapper) and it should work fine? I don't see a Ubuntu repository, only a debian one.

Ubuntu is based on Debian

So yes, you can add my Debian repository as:

deb-src http://debian.mcmillan.net.nz/debian unstable awm

and then you should be able to:

apt-get update
apt-get build-dep php5-eaccelerator
apt-get --build source php5-eaccelerator

and you should get some nice shiny packages that work on whatever Debian-derived distribution you may be using. I don't have enough systems to build for them all, I'm afraid.

I understand (and I

I understand (and I appreciate your work!). I just know that ubuntu doesn't always stay completely compatible with the upstream debian version, but eacclerator should be so straightforward it doesn't matter. Thanks again!

Just to Help Others..

Thanks again for all your help on this. I'm just leaving this for anybody else that needs to build this. I'm on Dapper and I had to change the line:

deb-src http://debian.mcmillan.net.nz/debian unstable awm

to

deb-src http://debian.mcmillan.net.nz/debian etch awm

because at the moment there does not appear to be a source repository under unstable; it's all binary. It seemed to build just fine from etch though (isn't that what dapper's built from anyway)?.