LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > PHP5 + eAccelerator?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2005, 01:21 PM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Default 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!
Reply With Quote
  #2  
Old 08-16-2005, 01:58 PM
mistwang mistwang is offline
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.
Reply With Quote
  #3  
Old 08-17-2005, 03:12 PM
xing xing is offline
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.
Reply With Quote
  #4  
Old 08-18-2005, 06:19 AM
SyNeo SyNeo is offline
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?
Reply With Quote
  #5  
Old 08-18-2005, 05:16 PM
mistwang mistwang is offline
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/
Reply With Quote
  #6  
Old 08-19-2005, 07:54 AM
SyNeo SyNeo is offline
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?
Reply With Quote
  #7  
Old 08-21-2005, 01:02 AM
xing xing is offline
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.
Reply With Quote
  #8  
Old 08-21-2005, 03:19 AM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Hi xing.

Thanks for the explanation. Hope they will improve the optimizer one day...
Reply With Quote
  #9  
Old 08-24-2005, 09:09 AM
SyNeo SyNeo is offline
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?
Reply With Quote
  #10  
Old 08-24-2005, 09:50 AM
SyNeo SyNeo is offline
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eaccelerator shared memory JFK Install/Configuration 1 06-20-2007 03:01 PM
eaccelerator installation with litespeed aww PHP 6 05-04-2007 07:51 PM
PHP4 and PHP5. NetJaro Install/Configuration 8 08-30-2006 09:48 AM
Litespeed and eAccelerator on Mac OS X Justin PHP 5 04-28-2006 11:45 AM
lsapi & eaccelerator (or mmcache) IO Install/Configuration 3 09-25-2005 06:39 PM


All times are GMT -7. The time now is 01:02 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.