I am looking at installing php eAccelerator on my production server. I guess looking over the website I don't understand why anybody WOULD not do this. Any why inst this just built into php? It is my understanding that it compiles code and then stores these compiled version in memory/cache. So, since this seems to speed up php significantly, what, if any, are the drawbacks? Why would anyone not implement eAccelerator? Thanks for the insight.
The only reason I can think of that I don't use eAccelerator is because I like APC better. I believe that APC will be included as part of the core of PHP6.
I haven't used eAccelerator myself but have read reports that it can lead to seg faults - calling into question its stability. APC is almost always suggested as an alternative.
So I am trying to get APC installed but have a few problems. I am using CentOS + lighttpd, and every guide (or RPM) I am seeing says I need php-devel (PHPIZE), which then needs to install httpd and php. I don't want to install those packages as they are not needed because I am using lighttpd with php-cli and fastcgi.
Basically how do I go about installing APC from source? A quick guide with steps would be awesome. Thanks.
I've never installed APC from source. I've always use "pecl install apc" and to get pecl I think you need to install the php-pear package which does require "one of the php development packages."
According to this you only need php-pear plus the development packages. I don't think httpd-devel installs an actual web server so your lighty setup should be ok.
@justink101, what operating system are you using? I'm running Ubuntu Intrepid and the installation was as simple as sudo aptitude install php-apc. Any needed dependencies are installed automatically and it even adjusts your php.ini for you.
So I got close, I just bit the bullet and installed php-devel which installed httpd and php, but just figured I would uninstall them after it was complete. Unfortunately the source build errors out saying I am missing apsx or something along those lines. I think I am going to give xcache a try from source now.