|
|

08-16-2005, 01:21 PM
|
|
Senior Member
|
|
Join Date: Dec 2004
Posts: 59
|
|
PHP5 + eAccelerator?
Hi.
I'm interested to find out, whether the latest stable lshttpd supports working with PHP5 and eAccelerator, instead of Tuck MMCache?
Thanks!
|

08-16-2005, 01:58 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
Yes, PHP5 + eAccelerator with either FCGI SAPI or our LiteSpeed SAPI works very well with lshttpd.
|

08-17-2005, 03:12 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
|
|
|
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.
|

08-18-2005, 06:19 AM
|
|
Senior Member
|
|
Join Date: Dec 2004
Posts: 59
|
|
|
Thanks!
Any special PHP5 installation instructions or tips? Or it will be enough simply to overwrite the bundled PHP installation that comes with lshttpd?
|

08-18-2005, 05:16 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
For PHP with fcgi SAPI, you can just overwrite the PHP binary.
If you want the best PHP performance, try lsws 2.1RC2 + PHP with litespeed API, instruction at: http://www.litespeedtech.com/lsapi/
|

08-19-2005, 07:54 AM
|
|
Senior Member
|
|
Join Date: Dec 2004
Posts: 59
|
|
Thanks!
The LSAPI looks interesting - I will give it a try.
Quote:
|
3) If you need optimization, install Zend Optimizer as it works well with or without eacc.
|
The CVS readme of EA says the following:
Quote:
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/s...r&Number=67958
What is the reason to have Zend Optimizer running with EA? Is it because EA optimizer is not stable in CVS yet?
|

08-21-2005, 01:02 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
|
|
|
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.
|

08-21-2005, 03:19 AM
|
|
Senior Member
|
|
Join Date: Dec 2004
Posts: 59
|
|
|
Hi xing.
Thanks for the explanation. Hope they will improve the optimizer one day...
|

08-24-2005, 09:09 AM
|
|
Senior Member
|
|
Join Date: Dec 2004
Posts: 59
|
|
|
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?
|

08-24-2005, 09:50 AM
|
|
Senior Member
|
|
Join Date: Dec 2004
Posts: 59
|
|
Quote:
|
Originally Posted by SyNeo
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 01:02 PM.
|
|