PHP5 + eAccelerator?

Discussion in 'Install/Configuration' started by SyNeo, Aug 16, 2005.

  1. SyNeo

    SyNeo New Member

    Hi.

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

    Thanks!
  2. mistwang

    mistwang LiteSpeed Staff

    Yes, PHP5 + eAccelerator with either FCGI SAPI or our LiteSpeed SAPI works very well with lshttpd.
  3. xing

    xing LiteSpeed Staff

    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.
  4. SyNeo

    SyNeo New Member

    Thanks!

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

    mistwang LiteSpeed Staff

    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/
  6. SyNeo

    SyNeo New Member

    Thanks!

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



    The CVS readme of EA says the following:
    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?
  7. xing

    xing LiteSpeed Staff

    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.
  8. SyNeo

    SyNeo New Member

    Hi xing.

    Thanks for the explanation. Hope they will improve the optimizer one day...
  9. SyNeo

    SyNeo New Member

    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?
  10. SyNeo

    SyNeo New Member

    Hmm, probably the -with-config-file-path should be at the end, or perhaps the make distclean helped, but anyway, it's ok now.
  11. mistwang

    mistwang LiteSpeed Staff

    You need to do "make clean" after changing php configuration, order of configuration option does not matter. :)

Share This Page