View Full Version : [HOWTO] Install Eaccelerator
Notes: ALL Bold text are commands you type in SSH and run.
1. Download Eaccelerator, extract and CD into
wget http://easynews.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.3.tar.gz
tar -zxf eaccelerator-0.9.3.tar.gz
cd eaccelerator
2. Find out where php is
which php
Example: "/usr/local/php" you want to ignore the /php, all you want is the prefix to php directory. In my installation it was "/usr/local"
*All BLUE text represents where your php prefix should be.
3. Create configuration files, run in SSH, DO NOT MKDIR
/usr/local/bin/phpize
4. Compile eaccelerator
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config
make
make install
5. Now install eaccelerator
You need to edit your php.ini file usually located (/etc/php.ini)
You now have two options of installing eaccelerator
A. As a Zend extension:
#the location of eaccelerator.so will vary on your installation
zend_extension="/usr/lib/php4/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"
B. As a PHP extension
#the location of eaccelerator.so will vary on your installation
extension="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"
6. Create cache directory
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
7. Reboot Apache
/etc/rc.d/init.d/httpd restart
Thanks for the instructions! I have question.
I'm interested in using eAccelerator just to encode a PHP program I'm writing. If I encode it, must I do anything else (like install eAccelerator or a loader) on a client's Apache server (not necessarily mine) to get the encoded file to work or will Zend be able to decode the bytecode encoded file?
arazzz
04-06-2005, 11:32 AM
Thank you for your how-to!!!
I've installed Eaccelerator from binary rpm. Are there anything special I need in order to make it work?
Thanks!!!
SlAiD
04-06-2005, 01:07 PM
Hi.
I have two qustions.
I located the php dir:
root@host [/eaccelerator]# which php
/usr/bin/php
Now, now i do this?
3. Create configuration files
/usr/local/bin/phpize
Create a dir, like this?
mkdir phpize
And, how i find where is php.ini and where i put the PHP extencion? in the end of the file?
arazzz
04-06-2005, 01:28 PM
Create a dir, like this?
mkdir phpize
Basically, yes.
And, how i find where is php.ini
Look in /etc - usually it's there.
Good luck!
SlAiD
04-06-2005, 01:58 PM
Hi;
I still have an error:
root@host [/eaccelerator]# cd /usr/bin/php
bash: cd: /usr/bin/php: Not a directory
root@host [/eaccelerator]# cd /usr/bin/
root@host [/usr/bin]# mkdir phpize
mkdir: `phpize' exists but is not a directory
root@host [/usr/bin]#
---
How i find where is php.ini and where i put the PHP extencion? in the end of the file?
arazzz
04-06-2005, 02:03 PM
How i find where is php.ini
As per above post - look in /etc !!!
PvUtrix
04-11-2005, 08:24 PM
Thank you for your how-to!!!
I've installed Eaccelerator from binary rpm. Are there anything special I need in order to make it work?
Thanks!!!
So did you need to do anything else in the end?
arazzz
04-12-2005, 01:26 AM
So did you need to do anything else in the end?
I can't see anybody answered this question... :(
PvUtrix
04-25-2005, 07:26 AM
It doesn't work with phpsuexec enabled, does it?
MDurai
04-26-2005, 06:18 AM
How do we make sure that its working?
BornOnline
04-26-2005, 07:18 PM
It will be listed in phpinfo if it is.
arazzz
04-26-2005, 07:25 PM
It will be listed in phpinfo if it is.
You mean if I'm getting something like this in phpinfo it means it's working?
quote
=====
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with eAccelerator v0.9.2, Copyright (c) 2004-2005 eAccelerator, by eAccelerator
unquote
=======
Thanks!!!
fourbit
05-10-2005, 07:58 PM
Howdy,
It's the slow/old guy again.:)
I want to speed up my sites a bit and found this thread. ;)
I got as far as step 3. I can create a dir. But, how do you create the "configuration files".
I am getting 'spooked' again. Since this is a live server.
Can someone just walk me through it?
Thanks,
Paul
Never mind. Veena already got back to me.
"For step 3, you need to run the following from ssh:
/usr/local/bin/phpize"
How simple is that? :o
PvUtrix
05-13-2005, 02:48 PM
eAccelerator 0.9.3 release candidate 2 is out. This release fixes lot's of bugs with php4/php5.
http://eaccelerator.net/HomeUk
fourbit
05-14-2005, 03:08 AM
Oh, Great. :p
I just got this one installed. (well actually support did it). :D
Thanks for the info.
PvUtrix
05-17-2005, 05:03 AM
mine is not working :(
I get this
"eAccelerator 0.9.3-rc2 is not active! It doesn't work in CGI or command line mode!"
and I have php running as CGI because of phpsuexec...
Is there anything I can do to make phpsuexec and eaccelerator coexist?
PvUtrix
05-21-2005, 03:31 PM
eAccelerator 0.9.3 final release is out...
Seaniboy
06-01-2005, 07:14 AM
which phph brings up "/usr/bin/php" so when i mkdir phpize in "/usr/bin" i get "mkdir: `phpize' exists but is not a directory"??
PvUtrix
06-01-2005, 12:23 PM
you don't need to create any dirs at this step, SlAiD & Arazzz's posts are a bit confusing, I think they should edit them...
just run - /usr/local/bin/phpize
1.Updated the link
2.Updated the howto for more clarity on instructions
netrider
06-21-2005, 01:48 AM
4. Compile eaccelerator
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config
If you get the following error ...
root@host [/tmp/eaccelerator-0.9.3]# ./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config
-bash: ./configure: /bin/sh: bad interpreter: Permission denied
The answer is not to use /tmp as PowerVPS have excellently secured/hardened /tmp for us to diallow execution of anything in there.
Hostultrix
06-21-2005, 08:53 PM
I am being bold, and trying this myself. But, I get this little message when I run phpize.
Configuring for:
PHP Api Version: 20031224
Zend Module Api No: 20041030
Zend Extension Api No: 220040412
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
Any idea what that might be?
danweber
06-22-2005, 09:58 AM
I got some of these warnings too but decided to go ahead anyway and see what happens. It all went well and it trully is quite a difference in performance. Well worth it.
Hostultrix
06-22-2005, 10:03 AM
I had support finish the installation, and it all went well. :)
Highly optimized system and eaccelerator you can achieve super low load times.
One of the forums I run. Invision Board 2.0x 25mb database and growing
Generated in: 0.0314sec - 5 queries - GZIP Enabled - Time is now: 22nd June 2005 - 09:43 AM
One of the sites I run. Mambo Server.
Page was generated in 0.050113 seconds
I can post my PHP compile configurations and my.cnf if anybody wants them.
Running PHP 4.3.11, eaccelerator 0.9.3, mysql 4.1.12
BornOnline
06-22-2005, 02:12 PM
Please do post your my.cnf.
Geez.. I'm still running MYSQL 4.0.22 and 10.2.0-STABLE_83, is this the lastest version with this version? Or do I have to manually upgrade and will it cause issues with the current databases?
my.cnf
[mysqld]
skip-locking
max_connections=150
connect_timeout=15
key_buffer=16M
join_buffer=1M
record_buffer=1M
sort_buffer=2M
table_cache=1024
thread_cache_size=286
max_allowed_packet=5M
wait_timeout=15
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
thread_concurrency=2
PHP configure for Apache 2
./configure \
--with-apxs2 \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars
PHP configure for Apache
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit
These are base Directadmin PHP configurations with one modification "--with-mysql=/usr" rather "--with-mysql"
To make sure these work make sure you have MySQL-client, MySQL-devel, MySQL-server installed.
Hostultrix
06-22-2005, 02:45 PM
What is memory limit? I think in whm it says "experimental"
Upgrading mysql 4.0 to 4.1 you'll have password hash difference. Databases will stay the same. I've had no problems changing from 4.0.x to a 4.1.x server. The way I updated was with RPMs.
Instructions (Bold = Run in SSH)
1.
wget http://mysql.he.net/Downloads/MySQL-4.1/MySQL-server-4.1.12-1.i386.rpm
wget http://mysql.he.net/Downloads/MySQL-4.1/MySQL-client-4.1.12-1.i386.rpm
wget http://mysql.he.net/Downloads/MySQL-4.1/MySQL-devel-4.1.12-1.i386.rpm
2.
rpm -Uvh ./MySQL-server-4.1.12-1.i386.rpm ./MySQL-client-4.1.12-1.i386.rpm ./MySQL-devel-4.1.12-1.i386.rpm
3.
service mysql restart
If you are NOT sure of what your doing or are afraid of messing up your production site. Have PVPS/Defender team do this for you.
PvUtrix
06-23-2005, 10:55 AM
You went a bit off topic guys... there's already a thread for mysql configs
mikelbeck
06-29-2005, 11:39 PM
I've got eaccelerator installed, phpinfo shows:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with eAccelerator v0.9.3, Copyright (c) 2004-2004 eAccelerator, by eAccelerator with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies
But, in my root directory I've got a file called error_log that has in it:
[29-Jun-2005 00:29:29] PHP Warning: Unknown(): Unable to load dynamic library './/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so' - .//usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
I've verified that the file is actually there, but it's listed in php.ini without the two "//" in front. Where's that coming from?
Also, what's the difference between installing it as a Zend extension or installing it as a PHP extension?
falsedawn
07-10-2005, 01:23 AM
I just finished installing it, and nothing appears to be happening, ho hum.
What exactly do I need to change in the php.ini file?
I already have this at the end of the file:
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.7
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.7
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
So if I want to install as a Zend extension, I assumed I just need to copy the given lines after these? Do I need to edit them? What on earth do these lines do anyway?
Are we ever going to see an official tutorial as to how to do this properly?
I'm off to badger support to see if they can get it working for me, anyway. I think I was optimistic trying to get it done myself in the fist place. :-o
To install as zend extention you to delete those lines and add the lines from the first post. I have mine installed with both Zend and Eaccelerator running. Heres the end of my php.ini
zend_extension="/usr/local/lib/php/extensions/eacceleratorzeus/eaccelerator.so"
eaccelerator.shm_size="64"
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="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="0"
eaccelerator.compress_level="9"
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.10
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.10
zend_optimizer.version=2.5.10
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
Seaniboy
07-11-2005, 08:23 AM
This is my php.ini
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.7
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.7
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20020429/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"
Is it ok?
When i type php -v it says Zend blah blah....With Eaccelerator, so i guess its working?
Robert
07-11-2005, 05:33 PM
As long as your output looks something like:
root@server01 [~]# php -v
PHP 4.3.11 (cli) (built: Jun 6 2005 01:03:31)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with eAccelerator v0.9.3, Copyright (c) 2004-2005 eAccelerator, by eAccelerator
with Zend Extension Manager v1.0.7, Copyright (c) 2003-2005, by Zend Technologies
with Zend Optimizer v2.5.10, Copyright (c) 1998-2005, by Zend Technologies You should be just fine. :)
the.one
07-20-2005, 04:10 AM
thank you for a great how to!
mikelbeck
07-22-2005, 10:40 AM
This won't work with phpsuexec enabled, is that correct?
This won't work with phpsuexec enabled, is that correct?
Yes, that's correct.
mikelbeck
07-22-2005, 11:30 AM
Yes, that's correct.
Bummer.
So I guess there's a choice to be made here... Either have the added security of phpsuexec or the added performance of eAccelerator.
Any suggestions?
PvUtrix
07-22-2005, 04:31 PM
Bummer.
So I guess there's a choice to be made here... Either have the added security of phpsuexec or the added performance of eAccelerator.
Any suggestions?
I was using phpsuexec but the performance benefits Eaccelerator provides outweigh the security benefits of phpsuexec for me.
Seaniboy
07-29-2005, 12:32 PM
This won't work with phpsuexec enabled, is that correct?
This would explain the trouble i was having. Once i installed eaccelerator about a day later the load on my VPS was extremely high and my site lagged very bad. The support fella told me to disable phpsuexec and after that everything seems to be fine :D
i believe i should disable phpsuexec too ... i will look at this this week... i had some complains last week about page loads that take 5secs...
i just fear a bit about the security ...
jpetrov
08-08-2005, 05:51 PM
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
- isn't this a problem - I have hardened tmp...
Also - after nice initiation weekend and many succesful installs - this was the first bummer - httpd failed the restart... i retreived the old php.ini in /zend/... and everything started again...
I was even tempted to submit a ticket to the support to ask them to do my install... so not cool! ;)
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
- isn't this a problem - I have hardened tmp...
Also - after nice initiation weekend and many succesful installs - this was the first bummer - httpd failed the restart... i retreived the old php.ini in /zend/... and everything started again...
I was even tempted to submit a ticket to the support to ask them to do my install... so not cool! ;)
Need someone to install eAccelerator with the tmp dir located somewhere else? :)
PM me.
ozgreg
08-12-2005, 01:45 AM
Just a few extra tips
A) eaccelerator is available via YUM / DAG repository so if you have added DAG to your yum repository list you should be able to install it via yum :-)
B) The standard eacc default of 16MB memory is very low, if you have a 512KB account you should increase that to 64MB to get that extra performance (it is worth the extra memory)
C) eaccelerator also comes with a php page eaccelerator.php which also acts as a statistics page (and controls some eaccelerator functions) at least initially copy that file to your webdirectory and point your browser to it.. Just remember this page does control eaccelerator interface so I would strongly recommend securing it.
D) Disable GZIP compression on boards with eAccelerator, you are just doubling the CPU load for no gain..
jpetrov
08-12-2005, 01:04 PM
powervps installed eacc for me, but now I am thinking about 4.4.0 - and i need to learn to do this by myself (like every other install i did).
will yum eaccelerator install itself as a zend plugin? should i be caucious about this?
and thanks for the gzip hint..
vps-vince
08-12-2005, 05:03 PM
Dumb question, but I can't find the eaccelerator.php file :-(
Thanks
Dumb question, but I can't find the eaccelerator.php file :-(
Thanks
Was it not in the tar ball?
Anyhow, just make a PHP file with this in it:
<?php
if (function_exists("eaccelerator")) {
eaccelerator();
} else {
echo "<html><head><title>eAccelerator</title></head><body><h1 align=\"center\">eAccelerator is not installed</h1></body></html>";
}
?>
vps-vince
08-12-2005, 09:00 PM
thanks elix
jpetrov
08-13-2005, 05:36 PM
so does eaccelerator 0.9.3 work with 4.4.0? I know Zend does...
so does eaccelerator 0.9.3 work with 4.4.0? I know Zend does...
Tested it on a sandbox and no it does not work. (caused apache to fail)
jpetrov
08-13-2005, 07:18 PM
my httpd failed as well.
Has anybody repoted this to eAccelerator's team yet? Hopefully, they will release a fix soon
ozgreg
08-13-2005, 10:42 PM
Hiya Elix.
Not that I have tried this myself but Others (http://sourceforge.net/forum/forum.php?thread_id=1317790&forum_id=416741) do report it is working
Hmm..I'll try it again, I guess.
Dumb question, but I can't find the eaccelerator.php file :-(
Thanks
Dumber question...I can't find eaccelerator.so
i've got a .everythingelse but no .so!
It should have outputted where it placed the .so file.
Somewhere /usr/local/lib/php/extensions/no-debug-non-zts-xxxxxxx/eaccelerator.so
It should have outputted where it placed the .so file.
Somewhere /usr/local/lib/php/extensions/no-debug-non-zts-xxxxxxx/eaccelerator.so
Nothing in that dir. I'm trying it on my older server before tackling it on the one hosted here. It's runnign RH9 if that makes any sort of difference?
Bogdan
09-26-2005, 08:25 AM
Why don't you run a
locate -u
locate eaccelerator.so
?
Bogdan
Why don't you run a
locate -u
locate eaccelerator.so
?
Bogdan
I'd tried locate last night and zip. Checked in the dir above this morning and zip.
Run the above just now (and haven't touched anything today) and there are three copies of eaccelerator.so (including one in mentioned dir. Bizaare, I guess this was the locate -u doing something?. But now working! Thanks!
charles
09-26-2005, 09:28 AM
I'd tried locate last night and zip. Checked in the dir above this morning and zip.
Run the above just now (and haven't touched anything today) and there are three copies of eaccelerator.so (including one in mentioned dir. Bizaare, I guess this was the locate -u doing something?. But now working! Thanks!
locate -u updates the slocate database which is what is used by locate. We disable the cron job for that by default as most users don't know or care what that is. Just re-enable it you use locate a lot, or run locate -u whenever you do need it. If you don't use it, its just a needless waste of cpu cycles each day.
charles
the.one
10-29-2005, 04:52 PM
2. Find out where php is
which php
Example: "/usr/local/php" you want to ignore the /php, all you want is the prefix to php directory. In my installation it was "/usr/local"
*All BLUE text represents where your php prefix should be.
3. Create configuration files, run in SSH, DO NOT MKDIR
/usr/local/bin/phpize
4. Compile eaccelerator
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config
make
make install
Lets make it easier for everyone shall we? :)
Run the following commands instead of the above:
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
Robert
10-29-2005, 05:39 PM
It's important to determine where your phpize is first before just putting in /usr, or else ya will not be able to use the configure line. I have seen many servers with both locations... /usr/local/ or just /usr.
PvUtrix
11-03-2005, 06:32 AM
after updating to php 4.4.1 mine changed to /usr/ while it was /usr/local/ before... weird...
Just to let you know how much difference eAccelerator makes, before I recompiled it the load was hovering above 4... after recompiling it and restarting apache, load dropped to 0.8 immediately
the.one
11-05-2005, 04:34 PM
If it shows up in php info, then it works, correct?
If it shows up in php info, then it works, correct?
yup (: congrats on installing ea
yeshoward
03-09-2006, 07:58 PM
eAccelerator 0.9.4 is out on15/Feb
anyone tried it yet?
thanks
yeshoward,
I actually use 0.9.4 with no issues, I created a little script that can install eA for you:
http://noc.medialayer.com/ea.txt
Default settings are fine for cPanel, if you want to run it, just do:
wget http://noc.medialayer.com/ea.txt -O ea_install.sh # download..
nano -w ea_install.sh # Confirm that settings are OK.
sh ea_install.sh
if you already have a current eA installation I do recommend that you remove it.
yeshoward
03-09-2006, 09:43 PM
Hello
DO I have to do
6. Create cache directory
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
7. Reboot Apache
/etc/rc.d/init.d/httpd restart
after running your scripts? because seems no directory there?
yeshoward
03-10-2006, 08:13 AM
I notice that you use php-cache
working fine so far
thanks a lot!
Yes, indeed it is /php-cache by default, I prefer it that way as /tmp gets filled up otherwise (I run a lot of PHP apps so tons of cache naturally)
DavidP
03-26-2006, 10:30 PM
I'm not sure if eaccelerator will work with phpsuexec installed, but it probably won't. phpsuexec seems to break a lot of things.
If anyone wants to test this for us on a non-production VPS, I promise to fix what goes wrong if you submit a support ticket. :D
If anyone installs eaccelerator and discovers that apache refuses to restart because "apache config is broken, please run apachectl configtest", but apachectl configtest (or service httpd configtest) shows no errors you will need to reinstall the zend optimizer.
On a cpanel system just run /scripts/installzendopt and follow the prompts and everything should be fine.
On other systems, you'll need to grab the zendoptimizer install files and do it that way.
David, it doesn't work on suexec (well documented, actually)
Neither does APC if you're interested :)
David
asterisk
03-28-2006, 08:49 AM
How does one go about installing FastCGI on Apache 1.3x using their SuExec directive as a secure replacement for PHPSuExec please (since PHPSuExec does not work with Eaccelerator)?
I have tried installing mod_fastcgi as a DSO for Apache but am at a lost as to the configuration changes for httpd.conf within the IfModule.
I would be really appreciative if someone who has installed FastCGI would be able to offer any advice on this please.
mikekey
05-16-2006, 03:15 PM
Hurm, I noticed that these instructions are a bit out of date.
I'm currently getting hung up on steps 2,3 and 4.
which php gave me
/usr/bin/php
and you're telling me /usr/local/bin/phpize
But what about when I'm already at bin ? I'm just getting errors trying any of the above commands
mikekey
05-16-2006, 04:00 PM
I keep getting this crap:
[root@host eaccelerator-0.9.4]# /usr/bin/phpize
/usr/bin/phpize: line 57: aclocal: command not found
I keep getting this crap:
[root@host eaccelerator-0.9.4]# /usr/bin/phpize
/usr/bin/phpize: line 57: aclocal: command not found
paste the output of
whereis aclocal
mikekey
05-16-2006, 08:12 PM
paste the output of
whereis aclocal
[root@host ~]# whereis aclocal
aclocal:
I bet that's informative :confused:
[root@host ~]# whereis aclocal
aclocal:
I bet that's informative :confused:
Contact support and ask why that's not there already.
aclocal should really be there by default.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.