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

Discussion in 'General Discussion' started by screege, Jun 14, 2007.

  1. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Hi I am using php 5.2.3 with zend and zend opt is there a way I could install eaccelerator and how? I have tried els but it only breaks my apache config.

    Thanks in advanced.
     
  2. Tymsah

    Tymsah Well-Known Member

    Joined:
    Apr 6, 2007
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    hi,

    Download from http://eaccelerator.net/ and install.
    add this settings php.ini. restart apache

    extension="eaccelerator.so"
    eaccelerator.shm_size="32"
    eaccelerator.cache_dir="/tmp/eaccelerator"
    eaccelerator.enable="1"
    eaccelerator.optimizer="1"
    eaccelerator.check_mtime="1"
    eaccelerator.debug="0"
    eaccelerator.filter=""
    eaccelerator.shm_max="128K"
    eaccelerator.shm_ttl="300"
    eaccelerator.shm_prune_period="150"
    eaccelerator.shm_only="0"
    eaccelerator.compress="1"
    eaccelerator.compress_level="9"


    after install test command

    php -v

    PHP 4.4.6 (cli) (built: May 3 2007 19:59:39)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with eAccelerator v0.9.4, Copyright (c) 2004-2004 eAccelerator, by eAccelerator
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies
     
  3. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    if you have suexec on, it will not work.
     
  4. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    suexec or phpsuexec?

    Thanks
     
  5. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Well done it installed it and nothing I do not get the eaccelerator extensions I followed the install instructions from:

    http://eaccelerator.net/wiki/InstallFromSource

    and get this result:

    php -v
    PHP 5.2.3 (cli) (built: Jun 14 2007 11:26:44)
    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 Technol
    ogies
    with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies

    Also I putted the eaccelerator on /usr/local/lib/php.ini below this:

    [Zend]
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.8
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.8
    zend_optimizer.version=3.2.8

    extension="eaccelerator.so"
    eaccelerator.shm_size="32"
    eaccelerator.cache_dir="/tmp/eaccelerator"
    eaccelerator.enable="1"
    eaccelerator.optimizer="1"
    eaccelerator.check_mtime="1"
    eaccelerator.debug="0"
    eaccelerator.filter=""
    eaccelerator.shm_max="128K"
    eaccelerator.shm_ttl="300"
    eaccelerator.shm_prune_period="150"
    eaccelerator.shm_only="0"
    eaccelerator.compress="1"
    eaccelerator.compress_level="9"

    zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
    zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

    Disabled the suexec from whm and restarted httpd from whm.

    And nothing any ideas?

    Thanks in advanced
     
  6. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    did you restart apache?
     
  7. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    phpsuexec sorry. that should be disabled. recompile apache, and eaccel will work.

    PHP 4.4.6 (cli) (built: Mar 12 2007 08:50:57)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies
    with Suhosin v0.9.18, Copyright (c) 2002-2006, by Hardened-PHP Project
    with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies


    my actual config.
     
  8. HastyHost.com

    HastyHost.com Member

    Joined:
    Jun 20, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I'm getting this error when I type the: php -v

    Failed loading /usr/lib/php4/eaccelerator.so: /usr/lib/php4/eaccelerator.so: cannot open shared object file: No such file or directory

    Then all the normal stuff:

    PHP 4.4.7 (cli) (built: .......


    I'm a little new to this type of thing, so I probably missed something in the install don't know :)

    Thanks
     
  9. HastyHost.com

    HastyHost.com Member

    Joined:
    Jun 20, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    i got this installed now :) Thanks anyway
     

Share This Page