Installing and Upgrading of Mod_Pagespeed on Centos


mod_pagespeed is essentially an open source module for Apache that does the task of optimizing the web-pages and the resources. It's an automatic procedure and utilizes the filters for the enhancement of web performance by re-writing the resources. Performance improvement for Apache HTTP Server will simply be achieved with the help of the module. Multiple filters are included in this module which helps in optimizing HTML, JavaScript, and CSS stylesheets. Mostly, even the images in the formats .png and .jpeg will be read by the filters. Overall, users will be able to find an improvement within the load time for pages on a site.

 
Dedicated Hosting India   Windows Dedicated Server India   Linux Dedicated Server Hosting


Steps to install Mod_Pagespeed on Centos:


Step-1: Determine the Linux distros and the version on the server with the help of the below command:


uname -a


Step-2: You need to download the latest version of mod_pagespeed by visiting http://code.google.com/speed/page-speed/download.html

Here we will be considered as a 64 bits CentOS Linux system for the further procedure.


wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm


Step-3: Make use of the below command to install it:


rpm -i mod-pagespeed-*.rpm


Step-4: Confirmation of the installed files:


rpm -ql mod-pagespeed-beta

/etc/cron.daily/mod-pagespeed

/etc/httpd/conf.d/pagespeed.conf

/usr/lib64/httpd/modules/mod_pagespeed.so

/var/www/mod_pagespeed/cache

/var/www/mod_pagespeed/files


Step-5: Now you need to restart the Apache with the help of below mentioned command:


service httpd restart


Upgrading the mod_pagespeed on Centos:


For upgrading the mod_pagespeed module, you need to download the latest version and use the command “yum localinstall mod-pagespeed-*.rpm” for installation.  

Make use of the below mentioned commands to upgrade the package :


sudo yum update
sudo /etc/init.d/httpd restart