Deprecated: WP_Translation_Controller::load_file(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 101
Deprecated: WP_Translation_Controller::unload_file(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 156
Deprecated: WP_Translation_Controller::unload_textdomain(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 201
Deprecated: WP_Translation_Controller::is_textdomain_loaded(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 243
Deprecated: WP_Translation_Controller::translate(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 263
Deprecated: WP_Translation_Controller::translate_plural(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 297
Deprecated: WP_Translation_Controller::locate_translation(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 397
Deprecated: WP_Translation_Controller::get_files(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 430
Deprecated: WP_Translation_File::create(): Implicitly marking parameter $filetype as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-file.php on line 84
Deprecated: wp_getimagesize(): Implicitly marking parameter $image_info as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/media.php on line 5502
Deprecated: YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container::__construct(): Implicitly marking parameter $parameterBag as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php on line 60
Deprecated: Elementor\Controls_Stack::get_active_controls(): Implicitly marking parameter $controls as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 352
Deprecated: Elementor\Controls_Stack::get_active_controls(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 352
Deprecated: Elementor\Controls_Stack::get_style_controls(): Implicitly marking parameter $controls as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 799
Deprecated: Elementor\Controls_Stack::get_style_controls(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 799
Deprecated: Elementor\Elements_Manager::create_element_instance(): Implicitly marking parameter $element_type as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/managers/elements.php on line 70
Deprecated: Elementor\Element_Base::__construct(): Implicitly marking parameter $args as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/element-base.php on line 1563
Deprecated: Elementor\Repeater::__construct(): Implicitly marking parameter $args as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/elements/repeater.php on line 49
Deprecated: Elementor\Core\Utils\Collection::filter(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/core/utils/collection.php on line 43
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
How to enable gzip compression in a cPanel server
You are here: Home/Apache/ How to Enable Gzip Compression in Apache
Warning: Cannot use bool as array in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 104
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 116
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block.php on line 246
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Gzip compression is a great tool by web servers with which we can cutdown the size of the pages sent out. In this topic I am discussing on how to enable gzip compression in Apache. Enabling compression means the web server will compress the size of the pages there by we can achieve better speed and low bandwidth usage.
[the_ad id=”11935″]
This can be achieved as follows:
Enable mod_deflate in Apache
Add the “Deflate” Apache module via EasyApache
Under WHM >> Service Configuration >> Apache Configuration
Click Include Editor
Under Pre VirtualHost Include select “All Versions” and add following lines to the code box:
Tip: Possible MIME types include text/html, text/plain, text/xml, text/css, text/javascript, application/javascript, application/xhtml+xml, application/xml, application/rss+xml, application/atom_xml, application/x-javascript, application/x-httpd-php, application/x-httpd-fastphp, application/x-httpd-eruby, and image/svg+xml.
Having compression enabled may conflict and generate a blank or scrambled page if you have enabled compression already in the source code of your website.
Leave a Reply