How to install mod_pagespeed on Sentora
11-26-2017, 06:23 AM
(This post was last modified: 11-26-2017, 06:29 AM by testing.)
First of all, I would like to tell you, I have used mod pagespeed and have installed on VPS so I would point out how to do it. I only did for Centos 6 for apache server. I highly recommend that first you take backup of your website so if anything gets messed up, you have everything in your hand to make your site work again.
Precaution : KVM - if you have SSL installated with 443 port ( needed in apache setting), you might probably see error while restarting your httpd. So I recommend mod_pagespeed installation on sentora just after sentora installation. It will take your whole server down.
I didn't face above issue with OpenVZ server even when SSL was already installed. ( but better install it just after fresh sentora installation before you upload your contents)
Method:
Visit https://www.modpagespeed.com/doc/download ( download the file according to your vps setting )
2. Upload the downloaded file to "root" folder of your server.
3. Run the following command :
sudo yum install at
sudo rpm -U mod-pagespeed-*.rpm
In case your installation shows key missing error. Use this command : sudo rpm --import https://dl-ssl.google.com/linux/linux_signing_key.pub
4. Run the following command : sudo /etc/init.d/httpd restart
You are done.
Precaution : KVM - if you have SSL installated with 443 port ( needed in apache setting), you might probably see error while restarting your httpd. So I recommend mod_pagespeed installation on sentora just after sentora installation. It will take your whole server down.
I didn't face above issue with OpenVZ server even when SSL was already installed. ( but better install it just after fresh sentora installation before you upload your contents)
Method:
Visit https://www.modpagespeed.com/doc/download ( download the file according to your vps setting )
2. Upload the downloaded file to "root" folder of your server.
3. Run the following command :
sudo yum install at
sudo rpm -U mod-pagespeed-*.rpm
In case your installation shows key missing error. Use this command : sudo rpm --import https://dl-ssl.google.com/linux/linux_signing_key.pub
4. Run the following command : sudo /etc/init.d/httpd restart
You are done.