LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help installing eAccelerator (https://www.linuxquestions.org/questions/linux-software-2/help-installing-eaccelerator-708545/)

ludo33 03-02-2009 05:05 AM

Help installing eAccelerator
 
Hello,

I'm trying to install eAccelerator on Debian Lenny.
I followed the instructions at http://www.debianadmin.com/php-cache...tutorials.html and got as far as
./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config and got the result configure: error: invalid variable name: –enable-eaccelerator

Has anybody had any success in getting eAccelerator to work with Debian Lenny?

TYIA

repo 03-02-2009 05:08 AM

try
./configure --enable-eaccelerator

ludo33 03-02-2009 06:36 AM

Thanks...but
 
Hello,

Many thanks for your reply, that did something. Then I ran "make" as per instruction...got "make: command not found" guess I'm missing something from my installation.

Many Thanks.

repo 03-02-2009 06:48 AM

Code:

apt-get install make
You probably also want to install
Code:

apt-get install build-essential linux-headers-`uname -r`

ludo33 03-02-2009 07:12 AM

Yep
 
That did the trick, thank you very much for your help. One last question, is there any merit in installing it as a Zend extention? Whatever that is!

jdkaye 03-02-2009 07:19 AM

Quote:

Originally Posted by ludo33 (Post 3462311)
That did the trick, thank you very much for your help. One last question, is there any merit in installing it as a Zend extention? Whatever that is!

If you're building a web server or using a database like mysql, then it might be. I have lived a long and happy life without it ;)
cheers,
jdk

ludo33 03-02-2009 07:26 AM

Hmm
 
Spoke too soon.

Put

xtension=”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″

In my /etc/php/apache2/php.ini restarted apache and it gets changed to

extension=eaccelerator.so
eaccelerator.shm_size=163
eaccelerator.cache_dir=/tmp/eaccelerator
eaccelerator.enable=13
eaccelerator.optimizer=13
eaccelerator.check_mtime=13
eaccelerator.debug=03
eaccelerator.filter="
eaccelerator.shm_max=03
eaccelerator.shm_ttl=03
eaccelerator.shm_prune_period=03
eaccelerator.shm_only=03
eaccelerator.compress=13
eaccelerator.compress_level=93

It doesn't like the quotation marks!

repo 03-02-2009 07:32 AM

which php version are you using?

ludo33 03-02-2009 07:35 AM

oops
 
php5 sorry that should of been etc/php5/apache2/php.ini

repo 03-02-2009 07:38 AM

try add the " manually
it should give " not ″

ludo33 03-02-2009 07:54 AM

Why
 
Why oh why when I try to install something on debian that's not an apt-get do I end up in the $#~* ?

Edited with " and that seems ok now in the php.ini but trying the test page with
<?php
eaccelerator();
?> (after re-starting apache) and I get:

"Fatal error: Call to undefined function eaccelerator() in /var/www/test.php on line 1"

repo 03-02-2009 08:05 AM

Did you do the "make install" after the "make" command ?

ludo33 03-02-2009 09:15 AM

Yep
 
I followed http://www.debianadmin.com/php-cache...tutorials.html religeously.

The only difference was the line ./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config which was changed to ./configure –enable-eaccelerator

Arggggghhh!

ludo33 03-02-2009 09:27 AM

Hmmm
 
./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config

I dont see a /usr/bin/php-config file but I do have a /usr/bin/php-config5. Should the line be ./configure –enable-eaccelerator=shared –with-php-config5=/usr/bin/php-config5 ?

repo 03-02-2009 12:06 PM

Quote:

./configure -enable-eaccelerator=shared –with-php-config5=/usr/bin/php-config5
you could try, look for error messages.
If there are error messages, you will not be able to use make until the errors are gone.
then do
Code:

make
and
Code:

make install


All times are GMT -5. The time now is 10:23 AM.