{"id":1453,"date":"2013-05-18T17:40:58","date_gmt":"2013-05-18T17:40:58","guid":{"rendered":"http:\/\/blog.shineservers.com\/?p=61"},"modified":"2013-05-18T17:40:58","modified_gmt":"2013-05-18T17:40:58","slug":"enable-gzip-compression-on-cpanel-server","status":"publish","type":"post","link":"https:\/\/www.shineservers.com\/2013\/05\/18\/enable-gzip-compression-on-cpanel-server\/","title":{"rendered":"Enable Gzip compression on cPanel server"},"content":{"rendered":"<p>To enable gzip compression on cPanel server, mod_gzip.c or mod_deflate.c module should be installed on the server. You can check the loaded module via SSH. Login to you server and use the following command to check the loaded Apache modules:<\/p>\n<blockquote><p><strong>\/usr\/local\/apache\/bin\/httpd -l<\/strong><\/p><\/blockquote>\n<p>If one of the module is installed on the server, you can enable gzip compression for an account by adding required code in .htaccess file. You need to add the following code into the .htaccess file to enable the gzip compression for the domain.<\/p>\n<blockquote>\n<div id=\"_mcePaste\"><strong>#compress all text &amp; html:<\/strong><\/div>\n<div id=\"_mcePaste\"><strong>AddOutputFilterByType DEFLATE text\/html text\/plain text\/xml<\/strong><\/div>\n<div id=\"_mcePaste\"><strong>&lt;Files *.html&gt;<\/strong><\/div>\n<div id=\"_mcePaste\"><strong>SetOutputFilter DEFLATE<\/strong><\/div>\n<div id=\"_mcePaste\"><strong>&lt;\/Files&gt;<\/strong><\/div>\n<\/blockquote>\n<div><\/div>\n<div>\n<div style=\"color: #202020; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: normal; background-color: #ffffff; text-align: justify;\">Once you add above code, you can verify it from the following link:<\/div>\n<div style=\"color: #202020; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: normal; background-color: #ffffff; text-align: justify;\">http:\/\/www.gidnetwork.com\/tools\/gzip-test.php<\/div>\n<div style=\"color: #202020; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: normal; background-color: #ffffff; text-align: justify;\">The test result should show as follow:<\/div>\n<div style=\"color: #202020; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: normal; background-color: #ffffff; text-align: justify;\">Web page compressed?\u00a0<strong>Yes<\/strong><\/div>\n<div id=\"_mcePaste\" style=\"color: #202020; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: normal; background-color: #ffffff; text-align: justify;\">Compression type?\u00a0<strong>gzip<\/strong><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To enable gzip compression on cPanel server, mod_gzip.c or mod_deflate.c module should be installed on the server. You can check the loaded module via SSH. Login to you server and use the following command to check the loaded Apache modules: \/usr\/local\/apache\/bin\/httpd -l If one of the module is installed on the server, you can enable [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[58],"tags":[],"class_list":["post-1453","post","type-post","status-publish","format-standard","hentry","category-cpanel-control-panel"],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/1453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/comments?post=1453"}],"version-history":[{"count":0,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/1453\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/media?parent=1453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/categories?post=1453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/tags?post=1453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}