eAccelerator install issues
i am having trouble on this step of the install:export PHP_PREFIX="/usr"
[11:18pm]# export PHP_PREFIX="/usr"
export: Command not found.
[11:18pm]# whereis phpize
phpize: /usr/bin/phpize
any idea why i get the error?
these are the install instructions that i am following:
cd /usr/local
mkdir ea
cd ea
wget http://kent.dl.sourceforge.net/sourc...r-0.9.3.tar.gz
tar xvzf eaccelerator-0.9.3.tar.gz
rm eaccelerator-0.9.3.tar.gz
cd eaccelerator-0.9.3
export PHP_PREFIX="/usr"
Note: This could also be: export PHP_PREFIX="/usr/local"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
3) Edit php.ini - usually it's /etc/php.ini or /usr/local/lib/php.ini
Find this:
;Windows Extensions
Above this, comment out or remove the PHPA or mmcache lines if you have them. Replace them with this:
To install as a ZEND extension:
zend_extension="/ea/eaccelerator-0.9.3/modules/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/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"
OR to install as a PHP extension:
extension="/ea/eaccelerator-0.9.3/modules/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/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"
4) Create the cache directory by doing the following at the command line
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
5) Restart Apache
service httpd restart
Done!
6) Optional - upload ea.php file
I modified the eaccelerator.php file so that only you can control the eaccelerator config and see the stats.
Edit ea.php - change 1 to your userid.
Upload to your forum directory.
When you link to ea.php you can see your eaccelerator stats like this:
eAccelerator 0.9.3
eAccelerator support enabled
Caching Enabled true
Optimizer Enabled true
Memory Size 33,554,396 Bytes
Memory Available 22,675,372 Bytes
Memory Allocated 10,879,024 Bytes
Cached Scripts 101
Removed Scripts 0
Cached Keys 0