下载- wget http://www.xmspace.net/soft/eaccelerator-0.9.6.1.tar.bz2
- tar -vxjf eaccelerator-0.9.6.1.tar.bz2
- cd eaccelerator-0.9.6.1
- vi eaccelerator.c
复制代码
- } else if (strncasecmp(buf, "beta", 4) == 0) { a = 3; sscanf(buf, "beta%u", &b); }
复制代码
下面添加
- } else if (buf, "p1%u", &b) { a = 0; b = 0; }
复制代码- /usr/local/php/bin/phpize
- ./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config
- make && make install
复制代码
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
- extension_dir = "/usr/local/php/lib"
- extension="eaccelerator.so"
- eaccelerator.shm_size="32" ;..eaccelerator......32MB
- eaccelerator.cache_dir="/usr/local/php/eaccelerator"
- eaccelerator.enable="1"
- eaccelerator.optimizer="1"
- eaccelerator.check_mtime="1"
- eaccelerator.debug="0"
- eaccelerator.filter="*.php"
- eaccelerator.shm_max="0"
- eaccelerator.shm_ttl="0"
- eaccelerator.shm_prune_period="3600"
- eaccelerator.shm_only="0"
- eaccelerator.compress="1"
- eaccelerator.compress_level="9"
- eaccelerator.log_file = "/usr/local/apache2/logs/eaccelerator_log"
- eaccelerator.allowed_admin_path = "/usr/local/apache2/htdocs/ea_admin"
- [eaccelerator]
- ;zend_extension="/usr/local/php_fcgi/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
- extension_dir="/usr/local/php_fcgi/lib/php/extensions/no-debug-non-zts-20060613/"
- extension = "eaccelerator.so"
- eaccelerator.shm_size="32"
- 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="0"
- eaccelerator.shm_prune_period="0"
- eaccelerator.shm_only="0"
- eaccelerator.compress="1"
- eaccelerator.compress_level="9"
复制代码 |