hcgtv wrote:CodeXP wrote:3. Install eaccelerator (the 0.9.5 rc1 was recently released, and works very well with the latest PHP versions).
I've thought of trying this out, any side effects or things to look out for?
I can't say that I've encountered any problems under Linux so far, and I've been using it since beta2 was released. I had seen some problem on Windows in that PHP would occationally crash, but that has not happened for me on linux. In fact, it seems to be perfectly stable so far. The performance gain is quite amazing, so if you have the possibility to use it I'd say go for it Here's the settings I'm using, in case you should need them:
$ cat /etc/php5/cgi/php.ini | grep -i eaccelerator
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/var/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
This will allocate 16MB of memory for the cache, use maximum compression & purge the cache ever 1 hour. These settings seems to work well for me, and I should think it would be the same for most people
* note that eaccelerator can be run as both a Zend module, and as a regular PHP extension. I'd recommend against running it as a Zend module though, as it seems to be running the fastest as an extension.