• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Apache 2.4.6 crash after mod_pagespeed install (12.5.30 Update #23, Centos 7)

guiman

New Pleskian
Hello,

I have 2 servers with Plesk 12.5.30 running, the first with Centos 6 and apache 2.2, the second with Centos 7 and apache 2.4.6. On both I installed mod_pagespeed as described here: http://wpguru.co.uk/2014/03/how-to-install-apache-mod_pagespeed-on-centos-with-plesk/ (No nginx installed!)

On the first server everything worked fine out of the box, the wordpress website loaded very fast (below 1 sec.) and most insights-issues were solved. :)

On the other server (apache 2.4.6, Centos 7, without BIND server) the apache did not restart after installation. In Plesk, apache module settings, the wrong module was ticked ("pagespeed" instead of "pagespeed_ap24"). I tried to uncheck it an an activate pagespeed_ap24. Afterwards apache crashed, most modules were unchecked and apache did not restart.
Since it was a "virgin" Plesk installation with nothing else on it, I reinstalled whole Plesk to solve the issue with the automatic installation script provided by the host. Next try, same issue again.

It looks like if pagespeed for apache 2.2 is beeing installed instead of 2.4?

Has anybody an idea please?
 
There is following options in file /etc/httpd/conf.d/pagespeed.conf

Code:
<IfVersion < 2.4>
  LoadModule pagespeed_module /usr/lib/httpd/modules/mod_pagespeed.so
</IfVersion>
<IfVersion >= 2.4.2>
  # As default pagespeed.conf configuration uses old-style ACLs using
  # 'allow' and 'deny', we load mod_access_compat in Apache 2.4. If that's a
  # problem, the blocks using that can be converted to the newer 'Require'
  # syntax.
  <IfModule !access_compat_module>
    LoadModule access_compat_module /usr/lib/httpd/modules/mod_access_compat.so
  </IfModule>

  LoadModule pagespeed_module /usr/lib/httpd/modules/mod_pagespeed_ap24.so
</IfVersion>

In case of Apache 2.4.x I'd change it to just:

Code:
LoadModule pagespeed_module /usr/lib/httpd/modules/mod_pagespeed_ap24.so

and restarted Apache with

# service httpd restart

Of course, create backup of original file before changes with

# cp /etc/httpd/conf.d/pagespeed.conf /etc/httpd/conf.d/pagespeed.conf_orig
 
Last edited:
After this solution the apache did restart! :)

But in Plesk, apache modules, the box for "pagespeed" is checked! (the box for pagespeed_ap24 is unchecked) - still the same than before!
 
Still total failed - apache chrashed again.

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
 
As far as I see this module is from Google, third-party module, not Plesk. Have you tried to ask assistance from this module vendor?
 
Thank You for support - I give up for now.

mod_pagespeed is obviously not ready for Plesk. For eyerybody who reads this post: If you want to install mod_pagespeed on Plesk 12.5 Centos 7 from a package with yum - you may have to recover the whole plesk installation afterwards.
 
@guiman,

It seems to me that you forget to set the pagespeed module to "off", before restarting Apache and activating pagespeed_ap24.

Did you try that?

Regards...
 
@Dx3webs,

You should mention that the pagespeed module for Nginx has it´s bugs and is incompatible with the latest stable releases of Nginx.

Moreover, in order to enable the pagespeed module for Nginx, as provided with the current Plesk release 12.5.30, a recompilation of Nginx AND a custom install is required.

Regards.....
 
Back
Top