Symptoms
-
The Google PageSpeed Insights extension is installed in Plesk > Extensions > My Extensions.
-
The pagespeed_ap24 Apache module is shown in Tools & Settings > Apache Web Server.Â
-
In an attempt to enable pagespeed_ap24 Apache module in Tools & Settings > Apache Web Server, the following error is shown:
PLESK_ERROR: Error: START httpd_modules_ctl –enable pagespeed_ap24 websrvmng: /usr/local/psa/admin/sbin/apache_control_adapter execution failed:
hostname httpd[26714]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 78 of /etc/httpd/conf.modules.d/00-base.conf: Can’t locate API module structure pagespeed_ap24_module’ in file /usr/lib64/httpd/modules/mod_pagespeed_ap24.so: undefined symbol: pagespeed_ap24_module hostname kill[26716]: kill: cannot find process “” websrvmng: /usr/local/psa/admin/sbin/apache_control_adapter execution failed - Apache service cannot be started with a similar error.
Cause
This is the Plesk bug with the ID #PPP-30399, which will be fixed in the next Plesk update releases.
Resolution
Until the bug will be fixed, apply the following workaround:
-
Log in to the server via SSH.
-
Using the vi text editor open the
/etc/httpd/conf.modules.d/00-base.conf
file. -
Find and comment the line below by changing it from:
LoadModule pagespeed_ap24_module /usr/lib64/httpd/modules/mod_pagespeed_ap24.so
To
#LoadModule pagespeed_ap24_module /usr/lib64/httpd/modules/mod_pagespeed_ap24.so
- Save changes.
-
Restart the Apache service to apply the changes:
# service httpd restart