Pages

Fix eaccelerator issue

When tried to install accelerator for PHP, i got problem. my apache failed to start.

then open and edit php.ini

[eaccelerator]
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
eaccelerator.shm_size="128"
eaccelerator.cache_dir="/tmp"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="300"
eaccelerator.shm_prune_period="120"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9

using this line causing apache unable to start. to fix it, edit line eaccelerator.shm_only. change value "0" to "1"

restart apache.

sidiq:~ # /usr/local/apache2/bin/apachectl restart



sidiq:~ # php -v
PHP 5.2.11 (cli) (built: Jan 25 2010 21:04:17)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.6-svn358-dev, Copyright (c) 2004-2007 eAccelerator, by eAccelerator

No comments:

Post a Comment