If you are using a CentOS 6.5 server and using the Apache or NGINX webserver, you only need to follow the steps below to install Google Pagespeed easily.
Install mod_pagespeed module for Apache
I'm not sure you will be able to do well if you are installing a control panel so I encourage you to install Apache under its LAMP guidance.
Google Pagespeed is not available in CentOS 6's default repo library, so you want to install it to load its own package. Please copy the command line below that matches your operating system configuration into SSH:
Continue to download source
And run it:
Once it's loaded, it adds the Google Pagespeed module to Apache, and you need to reboot Apache:
Now that your webserver has Google Pagespeed, you can check it by visiting the website, press Ctrl + U to see source and refresh again (refresh in source view), CSS and JS links. Cached with Pagespeed as shown below.
And if you need to re-configure Google Pagespeed, open it
file /etc/httpd/conf.d/pagespeed.conf.
Install ngx_pagespeed module for NGINX
If you are using NGINX but do not have the ngx_pagespeed module, then it may be a little hard because otherwise Apache, if you want to install ngx_pagespeed module into NGINX then you have to delete the NGINX version you are using (if any) and reinstall it. Originally from the original source of NGINX.
But building NGINX from the original source will take a long time, because you have to reinstall everything from scratch, including the necessary directories for NGINX, add NGINX users very time consuming. So, here we will not mention the self-installing NGINX with ngx_pagespeed module on CentOS 6, which we encourage you to use Centminmod - a script automatically install LEMP Webserver automatically or with ngx_pagespeed to you use.
At the Centminmod tutorial series, take a look at section 4, activating the ngx_pagespeed tutorial that was provided in step 5 of this article, which is easy to follow.
Epilogue
Ok, temporarily, you can now look at the Modules available in Google Pagespeed and Modules to use in Google Pagespeed to optimize it better.
Wednesday, May 2, 2018
INSTALL GOOGLE PAGESPEED TO CENTOS 6.X
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment