Skip to content
This repository was archived by the owner on Feb 27, 2026. It is now read-only.

shigechika/nginx-module-pagespeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 

Repository files navigation

nginx-module-pagespeed

End of Maintenance Notice

This project is no longer maintained.

With CentOS 7 reaching its end of life, we have decided to retire this repository. No further updates, bug fixes, or new releases will be provided.

We would like to express our sincere gratitude to everyone who has used, contributed to, and supported this project over the years. It has been a wonderful journey, and we truly appreciate your trust and involvement.

Thank you for everything.


About this project (archived)

  • Compatible with nginx.org repository.
  • Pagespeed Dynamic Module
  • Currently supports CentOS7 only
  • Automatic download PSOL(PageSpeed Optimization Libraries) stable version

How to install

sudo yum-config-manager --enable nginx-mainline
sudo yum install https://github.com/shigechika/nginx-module-pagespeed/releases/download/1.25.5/nginx-module-pagespeed-1.25.5-1.el7.ngx.x86_64.rpm

How to build

rpmquery rpmdevtools || sudo yum install -y rpmdevtools && rpmdev-setuptree
rpm -Uvh https://nginx.org/packages/mainline/centos/7/SRPMS/nginx-1.25.5-1.el7.ngx.src.rpm
git clone https://github.com/shigechika/nginx-module-pagespeed.git
cp nginx-module-pagespeed/PR1750.diff ~/rpmbuild/SOURCES/
rpmquery openssl-devel libuuid-devel gcc-c++ || sudo yum install -y openssl-devel libuuid-devel gcc-c++
rpmbuild -ba nginx-module-pagespeed/nginx-module-pagespeed.spec
sudo yum localinstall ~/rpmbuild/RPMS/x86_64/nginx-module-pagespeed-1.25.5-1.el7.ngx.x86_64.rpm

Workaround

  • If you stopped at yum install...

Please check to nginx.org repository.

https://nginx.org/en/linux_packages.html#RHEL-CentOS

  • If you stopped at rpmbuild...

example

% rpmbuild -ba ...
error: Failed build dependencies:
	openssl-devel >= 1.0.2 is needed by nginx-module-pagespeed-1:1.2X.X-1.el7.ngx.x86_64
	libuuid-devel is needed by nginx-module-pagespeed-1:1.2X.X-1.el7.ngx.x86_64
	gcc is needed by nginx-module-pagespeed-1:1.2X.X-1.el7.ngx.x86_64
	gcc-c++ is needed by nginx-module-pagespeed-1:1.2X.X-1.el7.ngx.x86_64
	zlib-devel is needed by nginx-module-pagespeed-1:1.2X.X-1.el7.ngx.x86_64
	pcre-devel is needed by nginx-module-pagespeed-1:1.2X.X-1.el7.ngx.x86_64

please try

sudo yum install openssl-devel libuuid-devel gcc-c++

NO WARRANTY

Good LUCK :-)

About

nginx pagespeed dynamic module

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors