PHP5 + eAccelerator?

SyNeo

Well-Known Member
#1
Hi.

I'm interested to find out, whether the latest stable lshttpd supports working with PHP5 and eAccelerator, instead of Tuck MMCache?

Thanks!
 

xing

LiteSpeed Staff
#3
If you want to use PHP5 + eaccelerator, make sure you following the follwing:

1) Instal eAccelerator CVS version. Most of the bug fixes are for php5 and the releases are too slow. So get CVS and install every 2 weeks or when something changes in the tree.

2) Disable code optimization within eacc. Just enable the caching part.

3) If you need optimization, install Zend Optimizer as it works well with or without eacc.
 

SyNeo

Well-Known Member
#4
Thanks!

Any special PHP5 installation instructions or tips? Or it will be enough simply to overwrite the bundled PHP installation that comes with lshttpd?
 

SyNeo

Well-Known Member
#6
Thanks!

The LSAPI looks interesting - I will give it a try.



3) If you need optimization, install Zend Optimizer as it works well with or without eacc.
The CVS readme of EA says the following:
eAccelerator is compatible with Zend Optimizer's loader. Zend Optimizer must
be installed after eAccelerator in php.ini. If you don't use scripts encoded
with Zend Encoder then we do not recommend you install Zend Optimizer with
eAccelerator.
I don't use any encoded scripts.

Also, I found out the following link, comparing Zend Optimizer and EA:
http://www.clarkconnect.org/forums/showflat.php?Board=webserver&Number=67958

What is the reason to have Zend Optimizer running with EA? Is it because EA optimizer is not stable in CVS yet?
 

xing

LiteSpeed Staff
#7
Zend Optimizer works perfectly with EA in my production system under php 5.0.4 so you have no trouble in your setup.

eAccelerator is a updated port of TurckMMC and even back in TurckMMC days, the "code optimizer" was very buggy. It is, I believe, still very buggy at best. One thing you learn about adopting software is to use only the best part of one piece and combine the best pieces. The goal of eacc product is to cache code, not to optimize, so optimizing is not high on their agenda thus less people testing it which means to more bugs.

Stick with Zend Optimizer for code optimization.
 

SyNeo

Well-Known Member
#9
Hi.

I installed the lshttpdRC2+php5+lsapi. Everything went smoothly, but apparently the php can't find the php.ini file. Even if I give it a full path, it doesn't load the values from there.

For example, I have magic_quotes_gpc set to off php.ini - but the phpinfo returns that they on.

Perhaps I'm missing something?
 

SyNeo

Well-Known Member
#10
SyNeo said:
Hi.

I installed the lshttpdRC2+php5+lsapi. Everything went smoothly, but apparently the php can't find the php.ini file. Even if I give it a full path, it doesn't load the values from there.

For example, I have magic_quotes_gpc set to off php.ini - but the phpinfo returns that they on.

Perhaps I'm missing something?
Hmm, probably the -with-config-file-path should be at the end, or perhaps the make distclean helped, but anyway, it's ok now.
 
Top