We the internet users are always in search for speed and faster access, so as a site owner must provide both these to survive in this field of business. The Apache servers are most commonly used for internet So various tweaks are available for such servers, I am introducing one such module that will help you to have high speed in loading your sites, mod_pagespeed.
mod_pagespeed is a module used for increasing the page speed loading time of the site. It has several filters that automatically optimize files like HTML, CSS, JavaScript, JPEG, PNG and other resources. For installation of this module we need to follow certain step as listed below:
Installation:
# cd /usr/local/src
# mkdir mod_pagespeed
# cd mod_pagespeed
# wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.rpm
# rpm -ivh mod-pagespeed-beta_current_i386.rpm
# cp /usr/local/src/mod-pagespeed/usr/lib/httpd/modules/mod_pagespeed.so /usr/local/apache/modules/
# cp /usr/local/src/mod-pagespeed/etc/httpd/conf.d/pagespeed.conf /usr/local/apache/conf/
# chmod 755 /usr/local/apache/modules/mod_pagespeed.so
# mkdir /var/mod_pagespeed/{cache,files} -p
# chown nobody:nobody /var/mod_pagespeed/*
In the config file /usr/local/apache/conf/pagespeed.conf of pagespedd add these lines:
LoadModule pagespeed_module modules/mod_pagespeed.so
LoadModule deflate_module modules/mod_deflate.so
ModPagespeedFileCachePath “/var/mod_pagespeed/cache/”
ModPagespeedGeneratedFilePrefix “/var/mod_pagespeed/files/”
In the config file of http please add these lines.
Include conf/pagespeed.conf
I hope that the above steps will help you improve your domains performance, with that I conclude my blog.
If you require help, contact SupportPRO Server Admin
