Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on eAccelerator, APC & friends on Shared in the Shared & Semi-Dedicated forum
Hi folks, Do you use some sort of cache/optimizers in your semi-ded setup? I know that you have pretty robust servers, but anyway. If not ...

  1. #1
    Loyal Client
    Join Date
    Feb 2007
    Posts
    33

    eAccelerator, APC & friends on Shared

    Hi folks, Do you use some sort of cache/optimizers in your semi-ded setup? I know that you have pretty robust servers, but anyway.

    If not is it possible to add it through the personalized php.ini files on our own directory?

    Cheers,
    Andres

  2. #2
    Rob
    Rob is offline
    I am the one and only Rob's Avatar
    Join Date
    Nov 2005
    Location
    It varies
    Posts
    425
    Zend Optimizer and Ion Cube Loaders are both installed.
    Rob



  3. #3
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Last edited by Vin DSL; 10-14-2007 at 12:03 PM.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  4. #4
    Loyal Client
    Join Date
    Feb 2007
    Posts
    33
    Thanks Rob, so I guess there's nothing to mess with on my end.

    VinDSL: mod_gzip isn't enabled by default on semi-ded, how do I do it?

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by jjaguara View Post
    VinDSL: mod_gzip isn't enabled by default on semi-ded, how do I do it?
    First of all, I turn on zlib output compression in the php.ini file - I *think* that's the default setting, but it never hurts to check.

    From there, it all depends on the proggie...

    For instance, in Nuke I insert this into the headers:

    PHP Code:
    $phpver phpversion();
    if (
    $phpver >= '4.0.4pl1')
    {
        
    ob_start('ob_gzhandler');
        }else if (
    $phpver '4.0'){
        if (
    strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')){
            if (
    extension_loaded('zlib')){
                
    $do_gzip_compress TRUE;
                
    ob_start();
                
    ob_implicit_flush(0);
                }
            }
        } 
    Heh! Just realized...

    I guess I could clean that up now, since PHP4 is supposedly dead and about to be buried!

    Anyway, then I put this into the footers:

    PHP Code:
    $contents ob_get_contents(); // store buffer in $contents
    ob_end_clean(); // delete output buffer and stop buffering 
    Simple pimple, huh?

    You just gotta be careful NOT to send the headers twice, or your site will start throwing errors...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    AFAIK you can ask support to enable mod_gzip too, if you want it.

    On SDX a cache like APC may well make sense. Then again, perhaps the extra complexity just isn't worth it for JagPC. I don't think you can't install and enable such yourself. If it's there, a phpinfo() will show you.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

Bookmarks

Posting Permissions

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