• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Unable to enable gzip compression

Change Maker

Basic Pleskian
Hi.
I've got WP optimise setup on the domain of my server.
I want to enable GZIP server wide using SSH as advised on the Plesk Forum. HERE
I've done all the checks and followed the instructions and I am receiving this message from the Plugin.
We successfully added Gzip compression settings into .htaccess file. However, the test file we fetched was not Gzip-compressed. Possible causes include that Apache (your webserver) is not configured to allow .htaccess files to take effect, or one of Apache modules - mod_filter or mod_deflate - is not active, or the webserver is configured to disallow Gzip compression. You should speak to your web hosting support to find how to enable it.
The only error I get using SSH is this, and it may be the reason why I can't get GZIP enabled.
[root@server ~]# grep -ir "mod_filter.so" /etc/httpd/conf.modules.d/00-base.conf
LoadModule filter_module modules/mod_filter.so
[root@server ~]# LoadModule filter_module modules/mod_filter.so
-bash: LoadModule: command not found
However, now I don't know what else I can do, so that the filter module is found. It's definitely enabled on the Server

Any ideas?
 
Code:
LoadModule filter_module modules/mod_filter.so
[root@server ~]# LoadModule filter_module modules/mod_filter.so
-bash: LoadModule: command not found

If you mean step 5 from instruction, that line

LoadModule filter_module modules/mod_filter.so

is not a command that should be run, but the expected output of the command

# grep -ir "mod_filter.so" /etc/httpd/conf.modules.d/00-base.conf

So, I'd suggest you use Enabling per-domain using Plesk interface instruction if you are not familiar with the Linux command line.
 
Thanks Peter. The plugin decided to do some test file, so I don't know what that is.
However I did it using this solution.
I did it server wide using SSH and created a GZip Conf.d file in nginx.
Thanks for everyone's assistance though
What a great place and with helpful folks responding quickly.
Glad to be engaged here.
 
You might want to consider using BROTLI, which is the successor of Gzip. It's enabled by default in Plesk unless Gzip is active and offers a higher compression rate.


You can check if it's active with this site:

 
Back
Top