JOB/PHP2010. 4. 16. 15:44

aix 5.3

 

export PHP_PREFIX="/web/app/php5"

 

$PHP_PREFIX/bin/phpize

./configure --enable-eaccelerator=shared \

--with-eaccelerator-userid=root \  <=== 에러발생하여 추가한부분

--with-php-config=$PHP_PREFIX/bin/php-config

 

make

make install

 

 

/web/app/php5/lib/php/extensions/no-debug-non-zts-20060613

eaccelerator.so 파일 확인

 

php.ini 에 

========================================================================

extension=eaccelerator.so

 

 

zend_extension="/web/app/php5/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so" <-- Linux인 경우만 추가. 설치경로와 맞게 지정
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="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

 

 

mkdir /htdoc/cache

chown nobody cache

chmod 0700 cache

 

 

참고문서 : http://eaccelerator.net/wiki/InstallFromSource

설치파일 : http://sourceforge.net/projects/eaccelerator/

Posted by webfeel