Install Googles mod_pagespeed
Install Google"s mod_pagespeed.
Create a file called /etc/yum.repos.d/mod-pagespeed.repo
For 32-Bit
For 64-Bit
Install mod_pagespeed module through Yum
# if you do not already have "at" installed
Above command creates following directories and files. /etc/cron.daily/mod-pagespeed : mod_pagespeed cron script for checking and installing latest updates. /etc/httpd/conf.d/pagespeed.conf : The main configuration file for Apache. /usr/lib/httpd/modules/mod_pagespeed.so : mod_pagespeed module for Apache. /var/www/mod_pagespeed/cache : File caching direcotry for web sites. /var/www/mod_pagespeed/files : File generate prefix for web sites. Please make sure mod_pagespeed.so file included in your httpd.conf. To verify mod_pagespeed module, create php info page anywhere in your domain or localhost and check it.
You will see "X-Mod-Pagespeed" section in the HTTP header, like
Turning the Module On and Off If you don"t want to use mod_pagespeed completely, you can Turn Off by inserting the following line to pagespeed.conf file at the top.
Turn On module
Thats all..
[mod-pagespeed]
name=mod-pagespeed
baseurl=http://dl.google.com/linux/mod-pagespeed/rpm/stable/i386
enabled=1
gpgcheck=0For 64-Bit
[mod-pagespeed]
name=mod-pagespeed
baseurl=http://dl.google.com/linux/mod-pagespeed/rpm/stable/x86_64
enabled=1
gpgcheck=0Install mod_pagespeed module through Yum
# yum install at# if you do not already have "at" installed
# yum --enablerepo=mod-pagespeed install mod-pagespeedAbove command creates following directories and files. /etc/cron.daily/mod-pagespeed : mod_pagespeed cron script for checking and installing latest updates. /etc/httpd/conf.d/pagespeed.conf : The main configuration file for Apache. /usr/lib/httpd/modules/mod_pagespeed.so : mod_pagespeed module for Apache. /var/www/mod_pagespeed/cache : File caching direcotry for web sites. /var/www/mod_pagespeed/files : File generate prefix for web sites. Please make sure mod_pagespeed.so file included in your httpd.conf. To verify mod_pagespeed module, create php info page anywhere in your domain or localhost and check it.
You will see "X-Mod-Pagespeed" section in the HTTP header, like
X-Mod-PagespeedTurning the Module On and Off If you don"t want to use mod_pagespeed completely, you can Turn Off by inserting the following line to pagespeed.conf file at the top.
ModPagespeed offTurn On module
ModPagespeed onThats all..
Please sign in to leave a comment.
Comments
0 comments