This option is very important. Cpnginx doesn’t install the google pagespeed module by default. To enable this module you may follow the given procedure.

1) Enable google pagespeed from WHM → Cpnginx → Settings
2) Compile nginx as follows

    
        # nginxctl build nginx
    
  

This will enable google page speed module.

If google pagespeed enabled, cpnginx will automatically add a cdn domain for every virtual host. It may start with the keyword cpnginxcdn . For example if you have a domain name mydomain.com , then the cdn domain name will be cpnginxcdn.mydomain.com. So that you can use an external cdn service to boost the google page speed for static contents.

This article will help you how to enable google page speed in old os Centos 6. Cpnginx is using the latest google page speed module and it need GCC version 4.8 or higher . So you need to enable gcc latest version as follows,

    
        # sudo rpm --import https://linux.web.cern.ch/linux/scientific6/docs/repository/cern/slc6X/i386/RPM-GPG-KEY-cern 
# sudo wget -O /etc/yum.repos.d/slc6-devtoolset.repo https://linux.web.cern.ch/linux/scientific6/docs/repository/cern/devtoolset/slc6-devtoolset.repo
# sudo yum install devtoolset-2-gcc-c++ devtoolset-2-binutils

After installing the gcc, please set the PATH as follows in your shell,

    
        # export PATH=/opt/rh/devtoolset-2/root/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin
    
  

Now you may go to WHM -> Cpnginx ->Settings and enable the google page speed module and compile it as follows,

    
        # nginxctl build nginx
    
  

This will install and configure your cpnginx with latest google page speed module.