bjdea1
12-15-2005, 06:29 AM
Hi,
we have a number of cPanel server with Fantastico included. We'd like to optimize php and were wondering if its possible to use eAccelerator on cPanel servers with Fantastico that use ioncube. Zend Optimizer is also installed on all servers.
ThinkSupport
12-16-2005, 08:17 AM
Hi bjdea1,
Yes, its possible to use eAccelerator on cpanel servers that have Zend Optimizer installed on them. It will enhance the php performance on your server.
linux-tech
12-17-2005, 03:59 PM
It's possible to install EA with (or without) Zend on them. Using Zend as a loader is one way to do it, though certainly not the best.. The best way to do this is to load EA directly into the system.
flashwebhost
12-18-2005, 02:31 AM
I have installed eAccelerator on my Cpanel server with Zend. But it won't work well. I have read i have to put eAccelerator before Zend, if any one got it working, please post php.ini section that include eAccelerator and Zend.
Bilco105
12-18-2005, 12:54 PM
I have installed eAccelerator on my Cpanel server with Zend. But it won't work well. I have read i have to put eAccelerator before Zend, if any one got it working, please post php.ini section that include eAccelerator and Zend.You need to place all eAccelerator binaries and configuration before the Zend optimiser part ONLY. Add it as a zend extension. So it will go
-Zend Extension Manager
-eAccel
-Optimizer
Although, it's a bit pointless running zend opt and eAccel on the same box.
I reccommend you take a look at APC, i've been using this recently and much prefer it. Developed and actively maintainted by the PHP crew themselves.
http://pecl.php.net/package/APC
flashwebhost
12-18-2005, 01:59 PM
Thanks SolidLogix, i will look into APC.
Zend Optimizer and eAccelerator do similar job ? eAccelerator make binary of PHP scripts, will make PHP script execution faster. Zend Optimizer do the same job or its only for Zend Encoded scripts ?
layer0
12-18-2005, 02:00 PM
Thanks SolidLogix, i will look into APC.
Zend Optimizer and eAccelerator do similar job ? eAccelerator make binary of PHP scripts, will make PHP script execution faster. Zend Optimizer do the same job or its only for Zend Encoded scripts ?
Zend Optimizer is not a cache. eAccelerator caches PHP scripts to prevent them from being compiled every singel time they are run. So yes, it does improve performance.
However - one of my production servers actually does better without eAccelerator. It really depends on your application.
Bilco105
12-18-2005, 02:12 PM
Zend Optimizer is not a cache. eAccelerator caches PHP scripts to prevent them from being compiled every singel time they are run. So yes, it does improve performance.
However - one of my production servers actually does better without eAccelerator. It really depends on your application.
Correct, however, eAccelerator isn't just a cache facility, which is I reccommended not using both in conjunction.
Both eAccelerator and APC serve the same purpose, they will compile PHP scripts once and cache the result for later requests reducing the amount of work PHP needs to do.
Tekerz
12-18-2005, 04:58 PM
I use eAccelerator with Zend Optimizer on my cpanel server's with Fantastico and haven't had any problems (I've been doing so for quite awhile). Here is ev1's how-to on the subject which shows you how to install it as a zend extension as well.
http://forum.ev1servers.net/showthread.php?t=23574
On a shared web server (cPanel) or other commercial hosting setup running MySQL you might want to also enable the mysql query cache feature. To do so just open my.cnf in your fav *nix text editor and add this line:
query_cache_type = 1
Then restart MySQL and it should be on. And changing that 1 to 0 and restarting MySQL again will turn it off. I haven't done any benchmarking in this regard but it's recommended in the O'Reilly book "High Performance MySQL" (which is a decent read for web develolpers and sys-admin's both). I've been using that setting for at least a year as well without any negative problems. And on my 3.0GHz HT machines with close to 200 websites (forums, galleries, PHP scripts) load averages around 0.15 and 0.20 which I'm happy with.