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.

eAccelerator question

Discussion in 'General Discussion' started by desiguru, Nov 16, 2009.

  1. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    Today when I opened my php.ini I do see that there is some conf for eaccelerator already there.

    But when I go to the /tmp/eaccelerator I dont see anything there. Am I missing something here? Do I need to turn on the eaccelerator or is it already on?

    Code:
    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"
    extension="suhosin.so"
    extension="suhosin.so"
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Did you select eAccelerator when compiling Apache in EasyApache?

    Is it enabled in httpd.conf?

    Are you running SuPHP or phpSuExec (If so, forget eAccelerator)
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Via root SSH access, please let us know what output is provided by the following commands:
    Code:
    # /usr/local/cpanel/bin/rebuild_phpconf --current
    # /scripts/phpextensionmgr status eAccelerator
    # stat /usr/local/lib/php/extensions/*/eaccelerator.so
    # stat /usr/local/php4/lib/php/extensions/*/eaccelerator.so
     
  4. Shyam Mohammed

    Joined:
    Jul 9, 2007
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ernakulam, Kerala, IN
    cPanel Access Level:
    Root Administrator
    Hello,

    Make sure you have enable_dl function turned On in your php settings.
     
  5. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    The outputs are as below

    Code:
    /usr/local/cpanel/bin/rebuild_phpconf --current
    Available handlers: suphp dso cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: none
    PHP5 SAPI: dso
    SUEXEC: enabled
    
    Code:
    /scripts/phpextensionmgr status eAccelerator
    Updating md5sum list
    Fetching http://httpupdate.cpanel.net/cpanelsync/easy/targz.yaml (0)....@67.159.2.2......connected......receiving...100%......Done
    Determining status of EAccelerator
    EAccelerator extension is installed
    
    Code:
    stat /usr/local/lib/php/extensions/*/eaccelerator.so
      File: `/usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so'
      Size: 649737          Blocks: 1280       IO Block: 4096   regular file
    Device: 801h/2049d      Inode: 7398670     Links: 1
    Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2009-11-17 00:02:14.000000000 -0500
    Modify: 2009-10-26 21:27:18.000000000 -0400
    Change: 2009-10-26 21:27:18.000000000 -0400
    
    Code:
    stat /usr/local/php4/lib/php/extensions/*/eaccelerator.so
    stat: cannot stat `/usr/local/php4/lib/php/extensions/*/eaccelerator.so': No such file or directory
    
     
  6. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    As a precaution, I would remove one of the duplicate entries for suhosin; there should only be one of the following two lines:
    Code:
    extension="suhosin.so"
    extension="suhosin.so"
    Is eAccelerator listed as one of the loaded modules via the following command?
    Code:
    # /usr/local/bin/php -m
    If it's loaded and the PHP handler is DSO then it should be working. For information on the specific configuration directives and how they may be customized I recommend referring to the official web site for eAccerator as linked below:
    eAccelerator - Trac
    Settings - eAccelerator - Trac
     
Loading...

Share This Page