How To: Eaccelerator!

I had the exact problem and this thread and site i found from google. It gave me the clue I needed about autoconf...

the whereis autoconf showed me that it's using autoconf259 but the eacellerator or is it phpize? Is trying to use autoconf and autoheader. I simply cp my autoconf259 and autoheader259 to autoconf and autoheader. Worked fine after that.

Thanks guys.
 
I have some problem while installing it on FreeBSD.

My box got php4.x from DA. I only use php 4.x

I tried to install Eaccelerator from ports.

#cd /usr/ports/www/eaccelerator
#make install clean

It tried to add php5-5.1.4 and php5-session-5.1.4, then got the following error.

.....
./configure.lineno: 3664: Syntax error: word unexpected (expecting ")")
===> Script "configure" failed unexpectedly.
Please report the problem to [email protected] [maintainer] and attach the
"/usr/ports/www/php5-session/work/php-5.1.4/ext/session/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/php5-session.
*** Error code 1

Stop in /usr/ports/www/eaccelerator.

How to stop it installing php5-5.1.4 and php5-session? Please help!
 
Last edited:
Used these instructions for installing version 0.9.5 of eAccelerator.
However got this error when restarting....

Starting httpd: PHP Fatal error: [Zend Optimizer] Zend Optimizer 2.6.2 is incompatible with eAccelerator 0.9.5 in Unknown on line 0

Should I upgrade Zend Optimizer?
I am using PHP 4.4.4
 
done that then it says this ==>

-bash-3.00# $PHP_PREFIX/bin/phpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20050606
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

Have same error. Please help me that solved it.

Thanks.
 
worked great

work fine with CentOS 4.2 100% TESTED
Code:
cd /

mkdir Eaccelerator

cd Eaccelerator

wget [url]http://jaist.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc1.tar.bz2[/url]

tar -xvjf eaccelerator-0.9.4-rc1.tar.bz2

cd eaccelerator-0.9.4-rc1

# Installation Steps
export PHP_PREFIX="/usr/local"

$PHP_PREFIX/bin/phpize
(Note that you need phpize, automake, autoconf and libtools installed)

work fine
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config

make

make install

cd /tmp

mkdir eaccelerator

chmod 0777 eaccelerator

cp /usr/local/lib/php.ini /usr/local/lib/php.ini.backup

pico -w /usr/local/lib/php.ini

Search for
;Directory in which the loadable extensions (modules) reside.

extension_dir = "/usr/local/lib/php/extensions/eaccelerator/"

# and change the dir according to what you get after make install, or you can use locate eaccelerator.so to check the directory

Search for ;Windows Extensions, if you don't know how, press Ctrl+W and add...

zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"
eaccelerator.shm_size="32"
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"

Save and Exit

service httpd restart

Wael

Worked great on my centos 4.4 VPs...thanks!

Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies
 
help dont show eaccelerator in my phpinfo ;( help j'm add to kernel this echo 6710864 > /proc/sys/kernel/shmmax
 
Tried to upgrade php 4.4.4 to 4.4.6 but got this error

Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
PHP Warning: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 4.4.4. Rebuild it for your PHP version (4.4.6) or download precompiled binaries.
in Unknown on line 0
PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0
make[1]: *** [install-pear-packages] Error 254
make: *** [install-pear] Error 2
 
Last edited:
remove eaccelerator lines from php.ini or rather comment them out otherwise the make install will fail, then after recompile eaccelerator before you reenable in php.ini.
 
hello i am getting the following error when trying
tar -xvjf eaccelerator-0.9.4-rc1.tar.bz2

does anyone have any ideas on this?


tar: bzip2: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors


Cheers
 
what's your operating system?

I did a short search on google, so try this.

# apt-get install bzip2
 
# With Zend

Unable to increase shm_size to more than 32mb.

# It is most probably because you are on kernel2.6, the standard shared memory is only 32mb, to increase it to (for example) 64mb we will have to do this.

echo 6710864 > /proc/sys/kernel/shmmax

then go to /etc/sysctl.conf and add this line so that it will remember the new value.

kernel.shmmax=6710864

There is an error in ONE bit - you forgot the one more symbol "8".
So, it should looks like:
Code:
echo 67108864 > /proc/sys/kernel/shmmax
...
echo 67108864 > /proc/sys/kernel/shmmax
 
Easiest thing to do is update your php to php5 then install eaccelerator via ports. Very easy with this method for freebsd users.
 
Back
Top