Page 1 of 3 123 LastLast
Results 1 to 25 of 75
  1. #1
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710

    Zend Opt., IonCube, eAccelerator [all at once]

    Install IonCube:
    ==================================
    Code:
    wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
    tar zfx ioncube_loaders_lin_x86.tar.gz
    cd ioncube
    #### replace below with the version tree you have (I will use 4.4)
    cp ioncube_loader_lin_4.4.so /usr/local/lib/php/extensions
    Add this line BEFORE any other zend_extension (e.g. Zend Optimizer or eAccelerator).
    (#### replace below with the version tree you have (I will use 4.4))
    Code:
    zend_extension = /usr/local/lib/php/extensions/ioncube_loader_lin_4.4.so
    ==================================

    Install Zend Optimizer:
    ==================================
    Code:
    wget http://downloads.zend.com/optimizer/3.2.6/ZendOptimizer-3.2.6-linux-glibc21-i386.tar.gz
    tar zfx ZendOptimizer-3.2.6-linux-glibc21-i386.tar.gz
    cd ZendOptimizer-3.2.6-linux-glibc21-i386
    ./install.sh
    ==================================

    Install eAccelerator (cPanel):
    ==================================
    Code:
    wget http://tutorials.medialayer.com/cPanel/eaccelerator.sh
    chmod 700 eaccelerator.sh
    ./eaccelerator.sh
    ==================================
    Last edited by bear; 04-09-2007 at 06:07 PM.

  2. #2
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    Are these steps compatible with PHP Version 5.2.0 (standard install on a cPanel server).
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  3. #3
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Quote Originally Posted by vinsar
    Are these steps compatible with PHP Version 5.2.0 (standard install on a cPanel server).
    Yes, it should work with any PHP version. Just change the 4.4 to 5.2 (in the ioncube references above).

  4. #4
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    I have already got this in my php.ini at /usr/local/Zend/etc/php.ini:

    zend_extension="/ea/eaccelerator-0.9.3/modules/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"
    So should I remove those or the new installation will take care of it?
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  5. #5
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Quote Originally Posted by vinsar
    I have already got this in my php.ini at /usr/local/Zend/etc/php.ini:



    So should I remove those or the new installation will take care of it?
    Correct, make sure you remove it.

  6. #6
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    Hey thanks man I got it working, my php.info says:

    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
    with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.2.6, Copyright (c) 1998-2007, by Zend Technologies

    layer0 there was a typo in ioncube section which I am correcting with your due permission. And yes 4.4 should read as 5.2

    Quote Originally Posted by layer0
    Install IonCube:
    ==================================
    Code:
    wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
    tar zfx ioncube_loaders_lin_x86.tar.gz
    cd ioncube
    #### replace below with the version tree you have (I will use 4.4)
    cp ioncube_loader_lin_4.4.so /usr/local/lib/php/extensions
    Add this line BEFORE any other zend_extension (e.g. Zend Optimizer or eAccelerator).
    (#### replace below with the version tree you have (I will use 4.4))
    There is a typo which I am correcting with due credit to layer0
    Code:
    zend_extension = /usr/local/lib/php/extensions/oncube_loader_lin_4.4.so
    Should read as
    Code:
    zend_extension = /usr/local/lib/php/extensions/ioncube_loader_lin_4.4.so
    ==================================

    Install Zend Optimizer:
    ==================================
    Code:
    wget http://downloads.zend.com/optimizer/3.2.6/ZendOptimizer-3.2.6-linux-glibc21-i386.tar.gz
    tar zfx ZendOptimizer-3.2.6-linux-glibc21-i386.tar.gz
    cd ZendOptimizer-3.2.6-linux-glibc21-i386
    ./install.sh
    ==================================

    Install eAccelerator (cPanel):
    ==================================
    Code:
    wget http://tutorials.medialayer.com/cPanel/eaccelerator.sh
    chmod 700 eaccelerator.sh
    ./eaccelerator.sh
    ==================================
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  7. #7
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Ah, I will report the post and have a moderator edit this for me. Glad to hear you got it working though!

  8. #8
    Join Date
    Oct 2004
    Location
    LA, CA
    Posts
    1,069
    Will this work on a server without cPanel running lighttpd?

  9. #9
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Quote Originally Posted by Mike. View Post
    Will this work on a server without cPanel running lighttpd?
    Yes, just install eAccelerator manually (or modify the script) and run it is a php extension ("extension") as opposed to a zend extension ("zend_extension"). Make sure you also specify an extension_dir and use the relative path to eaccelerator.so.

  10. #10
    Join Date
    Oct 2004
    Location
    LA, CA
    Posts
    1,069
    If I have eAccelerator already installed, could I just install the first two? Would I have to configure eAccelerator or recompile it again?

  11. #11
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Quote Originally Posted by Mike. View Post
    If I have eAccelerator already installed, could I just install the first two? Would I have to configure eAccelerator or recompile it again?
    No, but you should change how it is loaded if you are loading it differently than the way I described.

  12. #12
    Join Date
    Sep 2004
    Posts
    42
    The easiest why I ever seen thanks.

  13. #13
    Join Date
    Jun 2006
    Posts
    61
    Perfect...
    I have everything showing now..
    Shame I still can't get SMF to recognise eAccelerator.
    So if you know how to, let us know..

    Anyway, great post.

  14. #14
    For SMF to "see" eAccelerator, it needs to be compiled --with-eaccelerator-content-caching

  15. #15
    Join Date
    Jun 2006
    Posts
    61
    Thx Scotty_B

    Wierd, I have tried to change the eaccelerator.sh file with this

    bash $PHPIZE
    ./configure --enable-eaccelerator=shared --with-php-config=$PHP_BIN/php-config --with-eaccelerator-content-caching


    but it is wtill not seen by SMF..
    Any ideas?

  16. #16
    Join Date
    Feb 2004
    Posts
    491
    Does the zend optimizer offer any serious performance benefit over just turning on the eaccelerator optimizer? I've googled for benchmarks comparing zend on/off with eaccelerator without luck.

    Are we talking a couple percentage points of boost or something more significant?

  17. #17
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Quote Originally Posted by aww View Post
    Does the zend optimizer offer any serious performance benefit over just turning on the eaccelerator optimizer? I've googled for benchmarks comparing zend on/off with eaccelerator without luck.

    Are we talking a couple percentage points of boost or something more significant?
    Zend Optimizer won't make any significant difference. If you don't need it for Zend Encoded scripts, then there is no reason to install it. But of course, if you do have Zend Encoded scripts, then it is the only way.

  18. #18
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    as cPanel 11 is out, so is this script compatible with it?
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  19. #19
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Quote Originally Posted by vinsar View Post
    as cPanel 11 is out, so is this script compatible with it?
    Yes. There really isn't any major difference. PHP remains independent of cPanel's versions...

  20. #20
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    Ok I just did an Apache Update through WHM upgraded PHP to 5.2.1 and then noticed that the above install disappeared, now what to do?

    Also I noticed that new versions of Zend/IonCube/eAccelerator are out.

    So now to get them back on my server do I need to simply reinstall following your steps, or something more is to be done, I mean removing older install etc?
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  21. #21
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Quote Originally Posted by vinsar View Post
    Ok I just did an Apache Update through WHM upgraded PHP to 5.2.1 and then noticed that the above install disappeared, now what to do?

    Also I noticed that new versions of Zend/IonCube/eAccelerator are out.

    So now to get them back on my server do I need to simply reinstall following your steps, or something more is to be done, I mean removing older install etc?
    nano -w /usr/local/lib/php.ini

    Remove ALL lines relating to eaccelerator, zend optimizer, and ioncube.

    Redo the installation. I've updated the script (about 2 minutes ago) for the latest version of eAccelerator.

  22. #22
    when i only see this in my php info is it normal??

    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by ionCube Ltd., and with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.2.6, Copyright (c) 1998-2007, by Zend Technologies

  23. #23
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    That shows you do not have eAccelerator installed.
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  24. #24
    Quote Originally Posted by vinsar View Post
    That shows you do not have eAccelerator installed.
    I know, i followed the instruction and that's what i got after doing the 3 steps. ANd im' reading another thread, is it suexec can't be enable?? and is it safe to disable it?

  25. #25
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    I have suexec enabled and things are working fine for me. I think its PHPsuexec that is not compatible, but then I am not an expert in this field.

    May be layer0 can shed some light on it.
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •