How to install Google Pagespeed on CentOS 6.x?

Mihai B.

Well-known member
Registered
Joined
Apr 19, 2016
Messages
243
Points
18
Many web hosting providers recommended to install Google Pagespeed on the VPS to improve the performance of a website like speed or increasing marks on Google Pagespeed Insight of Google. Is this information exact and if so, how to install Google Pagespeed on your CentOS 6.x?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
it depends if you are using apache or Nginx. With apache there is a package. With Nginx, you have to build it from the sources.
But I don't recommend Pagespeed because it could use a lot of resources, for a work you should be able to do without too much efforts (minify, combine,etc)

I'm using easyengine for my vps setup with wordpress for few month now, and they have already stopped to use pagespeed, like HHVM. The result is not good enough to justify all the troubles it could create.
 

Cort Ammon

Member
Registered
Joined
Jul 8, 2016
Messages
48
Points
8
Many web hosting providers recommended to install Google Pagespeed on the VPS to improve the performance of a website like speed or increasing marks on Google Pagespeed Insight of Google. Is this information exact and if so, how to install Google Pagespeed on your CentOS 6.x?
it depends if you are using apache or Nginx. With apache there is a package. With Nginx, you have to build it from the sources.
But I don't recommend Pagespeed because it could use a lot of resources, for a work you should be able to do without too much efforts (minify, combine,etc)

I'm using easyengine for my vps setup with wordpress for few month now, and they have already stopped to use pagespeed, like HHVM. The result is not good enough to justify all the troubles it could create.
Hey Mihai, as @VirtuBox mentioned, I would go with his opinion, If you want boost your website's speed, you have more solutions for it like installing a caching solution.

Otherwise, you can follow these tips to install Google Pagespeed on your hosting server

Google Pagespeed is not available in the library's default of repo hence you need to load its own package. Please copy the command line below and paste on you SSH

yum install wget at -y
Load sources base on your Centos OS

Code:
// CentOS 6.x 64-bits
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
 
// CentoS 6.x 32-bits
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.rpm

and run it

Code:
rpm -i --nodeps mod-pagespeed-*.rpm
After loaded it, its module will automatically load Google Pagespeed into Apache, now you need to restart Apache.

Code:
service httpd restart
Your webserver has already got Google Pagespeed

Good luck!
 

PallaviG

New member
Joined
Jul 27, 2016
Messages
10
Points
3
First things first you will have to ssh to your host. Once you are there do the following and it should work if you already have it in the repo:
Code:
sudo yum install mod-pagespeed
if you don't have it in the repo and you get an error then we will add it ourselves by creating a file and adding the path.

so first creating a new blank file:
Code:
vim /etc/yum.repos.d/google-mode-pagespeed.repo
then press the letter i” and paste this in:
Code:
[google-mod-pagespeed]
name=google-mod-pagespeed
baseurl=http://dl.google.com/linux/mod-pagespeed/rpm/stable/$basearch
enabled=1
gpgcheck=0
then press escape, followed by typing :wq” and then press enter (wq will save and quit back to terminal). Now let's try our initial command again
Code:
sudo yum install mod-pagespeed
All done! Now let's restart Apache for things to take effect:
Code:
service httpd restart
 
Newer Threads
Replies
1
Views
2,592
Replies
25
Views
15,396
Replies
5
Views
4,578
Replies
7
Views
5,091
Latest Threads
Replies
1
Views
23
Replies
0
Views
175
Replies
1
Views
37
Replies
2
Views
81

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top