This is my private howto for RPM based systems (for Gentoo I have another one):
INSTALL eAccelerator:
1)
The requirements to compile eAcceleraotr are autoconf, automake, libtool, m4,
on the host, m4 and libtool were installed. we just need install autoconf,
automake and php-devel(it inclides phpize).
Run the following commands in the following order:
cd /
mkdir ea
cd ea
wget
http://kent.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.x.tar.gz
tar xvzf eaccelerator-0.9.x.tar.gz
cd eaccelerator-0.9.x
export PHP_PREFIX="/usr"
(Note: You have to do 'make clean' before you do 'phpize' in the source
directory.)
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared
--with-php-config=$PHP_PREFIX/bin/php-config
make
make install
2) 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.x/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.x/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"
3) If your apache runs as wwwrun (change it accordingly to your system):
# mkdir /tmp/eaccelerator
# chown wwwrun /tmp/eaccelerator
4) Check how much space the cache is taking on the disk:
# du -sh /tmp/eaccelerator
Hope this would help you.
Regards,
Leon Kolchinsky
-----Original Message-----
From: eaccelerator-users-bounces@xxxxxxxxxxxxxxxxxxxxx
[mailto:eaccelerator-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Markus
Braun
Sent: Friday, November 17, 2006 8:24 AM
To: eaccelerator-users@xxxxxxxxxxxxxxxxxxxxx
Subject: [Eaccelerator-users] Problems php compile
Hello,
i have a problem:
[17-Nov-2006 07:11:18] PHP Warning: Unknown(): Unable to load dynamic
library '/usr/lib/php4/20020429/gd2.so' - /usr/lib/php4/20020429/gd2.so:
cannot open shared object file: No such file or directory in Unknown on line
0
[17-Nov-2006 07:11:18] PHP Warning: [eAccelerator] This build of
"eAccelerator" was compiled for PHP version 4.3.10-16. Rebuild it for your
PHP version (4.3.10-18) or download precompiled binaries.
in Unknown on line 0
[17-Nov-2006 07:11:18] PHP Fatal error: Unable to start eAccelerator module
in Unknown on line 0
How can i compile a new version?
Can this the problem that the apache is now not started yet?
Thanks
maarcus
_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit
Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu!
http://desktop.msn.de/ Jetzt gratis downloaden!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
eAccelerator-users mailing list
eAccelerator-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/eaccelerator-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|