Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2008
    Posts
    60
    Plugin Contributions
    0

    red flag How to turn off gzip without using admin?

    Hi,

    I need to know how to turn off Gzip NOT from the Admin interface but by editing a configuration file.

    Scenario - I got hacked. I scrubbed and restored all of my .php files that got corruputed (with excecption of Admin and Catalog /includes/configure.php which were write protected anyway)

    Now when I try to load either my Catalog or my Admin, I get a browser message "The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression."

    Something is still wrong with Gzip and to get my site and Admin control back , I'm going to disable it for the time being.

    I know how to turn it off in Admin - but obviously cannot login to do that. Now, there must be a setting in some configuraiton file that I can swap the 1 to 0 and turn off Gzip. Been all over these forums and Google but can't find the TEXT based method for turning off Gzip.

    I do not have access to the Apache server config files as I am on a shared system, so need to turn it off in MY zen-cart only

    Thanks all!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: How to turn off gzip via config file edit?

    Run this MySQL query on your database:
    Code:
    update configuration set configuration_value=0 where configuration_key='GZIP_LEVEL';
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: How to turn off gzip via config file edit?

    Are you able to login to phpMyAdmin? If so, go to the configuration table and find the row with configuration_id 304. For that row, change the configuration_value field to 0.

    Edit: Or use DrByte's method.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: How to turn off gzip via config file edit?

    The configuration_id may or may not be 304 for you. Better to use the configuration_key value.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2008
    Posts
    60
    Plugin Contributions
    0

    Default Re: How to turn off gzip via config file edit?

    Quote Originally Posted by DrByte View Post
    Run this MySQL query on your database:
    Code:
    update configuration set configuration_value=0 where configuration_key='GZIP_LEVEL';
    Boo-YEAH!!!

    You guys are FANTASTIC. Site is back (with full error logging at the moment) and I've got my Admin interface again.

    Kick-aZZ. Thank you, thank you, Doc!

    Now to function test the site and harden the heck out of it.

    Anyone listening to this thread---read and DO: https://www.zen-cart.com/tutorials/index.php?article=73 (How can I protect my site from malicious attack? Security Recommendations)....or you will be kicking yourself in the rear when you get hacked. I've learned my lesson.

  6. #6
    Join Date
    Jun 2009
    Posts
    65
    Plugin Contributions
    0

    Default Re: How to turn off gzip without using admin?

    Many thanks for this tip. I had just tried to set compression to one and then lost all admin functions with the error message...

    Running the query fixed it.
    Cheers
    Tony

 

 

Similar Threads

  1. v151 How do I turn off admin notifications?
    By magz in forum General Questions
    Replies: 8
    Last Post: 27 Dec 2013, 11:10 PM
  2. Admin - Payments - Offline Credit Cards - How to turn off?
    By beyre in forum Addon Payment Modules
    Replies: 10
    Last Post: 5 May 2009, 07:00 PM
  3. Replies: 0
    Last Post: 19 Sep 2008, 05:32 PM
  4. Add To Cart: how can I turn off the text *Mixed OFF
    By rstevenson in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Apr 2007, 06:51 AM
  5. Can't seem to turn bold off subcategory without turning off bold on top category
    By immersive in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Dec 2006, 09:15 AM

Posting Permissions

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