The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

apache2.0 and eaccelerator no love

Discussion in 'EasyApache' started by katmai, Oct 19, 2007.

  1. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    centos 5 + latest edge.

    [root@viper ~]# php -v
    PHP 5.2.4 (cli) (built: Oct 19 2007 13:53:43)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
    with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project
    with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies


    i got no clue why the eaccelerator will not show up.

    www.design-services.us/info.php - thats the phpinfo.

    i see no error logs ...

    ;;eAccelerator
    zend_extension="/usr/local/lib/php/extensions/no-debug-zts-20060613/eaccelerator.so"
    eaccelerator.shm_size="1024"
    eaccelerator.cache_dir="/php-cache"
    eaccelerator.enable="1"
    eaccelerator.optimizer="1"
    eaccelerator.check_mtime="1"
    eaccelerator.debug="0"
    eaccelerator.filter=""
    eaccelerator.shm_max="1000M"
    eaccelerator.shm_ttl="86400"
    eaccelerator.shm_prune_period="3600"
    eaccelerator.shm_only="0"
    eaccelerator.compress="1"
    eaccelerator.compress_level="9"
    eaccelerator.keys="shm_and_disk"
    eaccelerator.sessions="shm_and_disk"
    eaccelerator.content="shm_and_disk"


    [root@viper ~]# ls -la /usr/local/lib/php/extensions/no-debug-zts-20060613/eaccelerator.so
    -rwxr-xr-x 1 root root 458120 Oct 19 14:17 /usr/local/lib/php/extensions/no-debug-zts-20060613/eaccelerator.so
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Remove the full path to the eaccelerator.so file. Here's what is working for me:

    Code:
      zend_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"
    
    Additionally, when troubleshooting these problems turn on all error displays, including startup errors:

    Code:
    error_reporting = E_ALL
    display_errors = On
    display_startup_errors = On
    
    Then, a simple php -v on the command line should show you the trouble:

    Ignore the messages about homeloader in the above output, that's a separate issue.

    Don't forget to reset the error directives in php.ini after you deduce and resolve the issue.
     
  3. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    [root@viper ~]# php -v
    PHP 5.2.4 (cli) (built: Oct 19 2007 13:53:43)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
    with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project
    with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies


    modified the error logs... still no love, and no damn errors.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    That's odd.

    Does your cache directory exist?
     
  5. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    yes of course it exists... even if it didnt would still have shown up. i re recompiled apache. suhosin works by the way, eaccelerator doesn't . recompiling eaccelerator works with no flaws, installs, just doesn't show up in php.
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Make certain the suhosin.so is loaded before the eaccelerator.so
     
  7. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    [root@viper ~]# php -v
    PHP 5.2.4 (cli) (built: Oct 19 2007 13:53:43)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
    with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project
    with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies

    \yes i placed suhosin before eaccelerator.. i am idealess :(
     
  8. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    any other clues please?
     
  9. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Is this a strict PHP5 + Apache setup, or are you using the Concurrent PHP patch?
     
  10. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    strict apache2.0+php5
     
  11. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Seems you aren't the only one:

    http://forums.cpanel.net/showthread.php?t=72299

    I"m doing another test compile, but if I cannot find anything, I'll like need you to open a support ticket so we can get this sorted out.

    Have you tried stracing php?

    Something like:

    Code:
    strace -vvFf -s 4096 -o /tmp/php.out php -v
    
    If the output in that file makes little sense, feel free to email it to me.
     
  12. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    can you please pm me your mail address?
     
  13. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    hi ken, i sent you the php.out log. you got any clues by chance on this?
     
  14. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    AS you already knew, PHP is not even attempting to load the eaccelerator.so

    The strace shows PHP reading php.ini, but essentially ignores the eaccelerator section. The only zend_extension it loads is Zend Opt. What you might want to try now is:

    1. Disable Zend, Suhosin and any other 3rd party extension
    2. Remove the current eaccelerator install
    3. Re-install eaccelerator

    If that still doesn't work, open a support ticket ATTN: Ken and I'll take a look at it.
     
  15. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    Your Request id is: 219757.
     
  16. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Posting here for the benefit of all:

    When Thread Safety is enabled in PHP, then the directive used to load eaccelerator is zend_extension_ts. This is stated in the eaccelerator README. How does one determine whether Thread Saftey is enabled?

    Via command line:

    Code:
    php -i | grep -i thread
    
    Via Web:
    Code:
    <?php phpinfo(); ?>
    
    Look in the resulting output for Thread Safety

    The fully-qualified path also needs used int he zend_extension_ts directive.
     
  17. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    What it's homeloader.so??

    I've several
    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/homeloader.so' - /usr/local/lib/php/extensions/no-debug-non-zt\
    s-20060613/homeloader.so: cannot open shared object file: No such file or directory in Unknown on line 0
    I'm trying to search any info on google, but all problem in logs.

    Whereis this extension? Hwat it's pourpose?
     
Loading...

Share This Page