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.

how to compress when provider doenst allow compression

Discussion in 'General Discussion' started by shanalikhan, Jan 14, 2014.

  1. shanalikhan

    shanalikhan Registered

    Joined:
    Jan 14, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi ,
    i want to compress website , my provider doenst allow compress in my hosting account in cpanel. how i can compress the html pages and php pages.
    thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,163
    Likes Received:
    1,294
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I believe you are referring to the "Optimize Website" option in cPanel under "Home >> Software/Services >> Optimize Website". This option is only available if your hosting provider has mod_deflate enabled, and has allowed the use of the feature. It's not possible to access this feature without the cooperation of your web hosting provider.

    Thank you.
     
  3. shanalikhan

    shanalikhan Registered

    Joined:
    Jan 14, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    is there any other way to compress the pages through PHP ?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,163
    Likes Received:
    1,294
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You can not install that type of software without root access to the system. You could always consult with the developer of the script you are using to see if it can be optimized in some way if you are having trouble with the script loading properly.

    Thank you.
     
  5. shanalikhan

    shanalikhan Registered

    Joined:
    Jan 14, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    i heard there is funtion in PHP of ob_gzhandler to put in every page in order to compress that page.
    can i use that code in order to compress the pages even the provider didnt allow
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,163
    Likes Received:
    1,294
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    There is no benefit if Apache gzip compression or mod_deflate is not enabled by your hosting provider.

    Thank you.
     
  7. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,601
    Likes Received:
    51
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    ask your provider to enable it it benefits them as well as you
     
Loading...

Share This Page