Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
03-02-2009, 05:05 AM
|
#1
|
Member
Registered: Feb 2009
Posts: 119
Rep:
|
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
|
|
|
03-02-2009, 05:08 AM
|
#2
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
try
./configure --enable-eaccelerator
|
|
|
03-02-2009, 06:36 AM
|
#3
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
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.
|
|
|
03-02-2009, 06:48 AM
|
#4
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Code:
apt-get install make
You probably also want to install
Code:
apt-get install build-essential linux-headers-`uname -r`
|
|
|
03-02-2009, 07:12 AM
|
#5
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
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!
|
|
|
03-02-2009, 07:19 AM
|
#6
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
Quote:
Originally Posted by ludo33
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
|
|
|
03-02-2009, 07:26 AM
|
#7
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
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!
|
|
|
03-02-2009, 07:32 AM
|
#8
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
which php version are you using?
|
|
|
03-02-2009, 07:35 AM
|
#9
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
oops
php5 sorry that should of been etc/php5/apache2/php.ini
|
|
|
03-02-2009, 07:38 AM
|
#10
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
try add the " manually
it should give " not ″
|
|
|
03-02-2009, 07:54 AM
|
#11
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
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"
|
|
|
03-02-2009, 08:05 AM
|
#12
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Did you do the "make install" after the "make" command ?
|
|
|
03-02-2009, 09:15 AM
|
#13
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
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!
|
|
|
03-02-2009, 09:27 AM
|
#14
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
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 ?
|
|
|
03-02-2009, 12:06 PM
|
#15
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
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
and
|
|
|
All times are GMT -5. The time now is 02:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|