Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,782
    Likes Received:
    94
    Trophy Points:
    353
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    ask your provider to enable it it benefits them as well as you
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice