{"id":2318,"date":"2021-09-25T13:33:19","date_gmt":"2021-09-25T13:33:19","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=2318"},"modified":"2021-09-25T13:33:19","modified_gmt":"2021-09-25T13:33:19","slug":"how-to-install-mod_pagespeed-on-centos-2","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/","title":{"rendered":"How to Install Mod_Pagespeed on Centos ?"},"content":{"rendered":"<h2>A Brief about mod_pagespeed ?<\/h2>\n<p>mod_pagespeed is an open-source module for Apache which does the task of optimizing the web pages and its resources. Its an automated process and makes use of the filters for enhancement of web performance by rewriting the resources. Performance enhancement for Apache HTTP Server can be<br \/>\neasily achieved using the module.<br \/>\nMultiple filters are enclosed within this module that needs in optimizing JavaScript, HTML and CSS stylesheets. Moreover, even the pictures in the formats .jpeg and .png can be read by the filters. As a result, users will find an improvement in the load time for web pages on a web site.<\/p>\n<h2>How to install mod_pagespeed?<\/h2>\n<p><strong>Step1 :<\/strong>\u00a0Determine the Linux distros and the version on the server by using the following command:<\/p>\n<blockquote><p>uname -a<\/p><\/blockquote>\n<p><strong>Step 2 :<\/strong>\u00a0Download the latest version of mod_pagespeed from http:\/\/code.google.com\/speed\/page-speed\/download.html<\/p>\n<p>Lets consider a 64 bits CentOS Linux system for the procedure further<\/p>\n<blockquote><p>wget https:\/\/dl-ssl.google.com\/dl\/linux\/direct\/mod-pagespeed-beta_current_x86_64.rpm<\/p><\/blockquote>\n<p><strong>Step 3 :<\/strong>\u00a0Use the following command to install it:<\/p>\n<blockquote><p>rpm -i mod-pagespeed-*.rpm<\/p><\/blockquote>\n<p><strong>Step 4 :<\/strong>\u00a0Confirming the installed files :<\/p>\n<blockquote><p>rpm -ql mod-pagespeed-beta<br \/>\n\/etc\/cron.daily\/mod-pagespeed<br \/>\n\/etc\/httpd\/conf.d\/pagespeed.conf<br \/>\n\/usr\/lib64\/httpd\/modules\/mod_pagespeed.so<br \/>\n\/var\/www\/mod_pagespeed\/cache<br \/>\n\/var\/www\/mod_pagespeed\/files<\/p><\/blockquote>\n<p><strong>Step 5 :<\/strong>\u00a0You must now restart Apache using the below command<\/p>\n<blockquote><p>service httpd restart<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2>How to Upgrade mod_pagespeed ?<\/h2>\n<p>To upgrade the mod_pagespeed module, you will have to first download the latest version and use of the command \u201c<strong>yum localinstall mod-pagespeed-*.rpm<\/strong>\u201d for the purpose of installing http:\/\/code.google.com\/speed\/page-speed\/download.html<\/p>\n<p>Below is the commands to upgrade the package :<\/p>\n<blockquote><p>sudo yum update<br \/>\nsudo \/etc\/init.d\/httpd restart<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>A Brief about mod_pagespeed ? mod_pagespeed is an open-source module for Apache which does the task of optimizing the web pages and its resources. Its an automated process and makes use of the filters for enhancement of web performance by rewriting the resources. Performance enhancement for Apache HTTP Server can be easily achieved using the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,23,24],"tags":[],"class_list":["post-2318","post","type-post","status-publish","format-standard","hentry","category-dedicated-server","category-tutorials","category-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install Mod_Pagespeed on Centos ? - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Mod_Pagespeed on Centos ? - OWS KB\" \/>\n<meta property=\"og:description\" content=\"A Brief about mod_pagespeed ? mod_pagespeed is an open-source module for Apache which does the task of optimizing the web pages and its resources. Its an automated process and makes use of the filters for enhancement of web performance by rewriting the resources. Performance enhancement for Apache HTTP Server can be easily achieved using the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-25T13:33:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/\",\"name\":\"How to Install Mod_Pagespeed on Centos ? - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-09-25T13:33:19+00:00\",\"dateModified\":\"2021-09-25T13:33:19+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-install-mod_pagespeed-on-centos-2\/\",\"name\":\"How to Install Mod_Pagespeed on Centos ?\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=2318"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2318\/revisions"}],"predecessor-version":[{"id":2319,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2318\/revisions\/2319"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=2318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=2318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=2318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}