• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Can't locate API module structure `pagespeed_ap24_module'

Tomek

Regular Pleskian
Hi,

on the fresh install of Plesk I wanted to turn on "pagespeed_ap24" module, but I got this error:

Template_Exception: 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: /usr/lib64/httpd/modules/mod_pagespeed_ap24.so: undefined symbol: pagespeed_ap24_module

Apache does not want to turn on.


I installed Google PageSpeed module from this extension dashboard:
Google PageSpeed Insights - Plesk Extensions


BTW, what is the difference between pagespeed and pagespeed_ap24?
 
Last edited:
Hello,

if you have installed pagespeed module with the Plesk extension, you should not need to enable another apache module.

mod_pagespeed_ap24 is for Apache 2.4 , when mod_pagespeed is for Apache 2.2
 
ok, I probably know what i'm doing wrong.

When I select checkbox, I turn off or turn on module?
 
Last edited:
Same issue. I have Apache 2.4 but when I check pagespeed_ap24 I receive this error
httpd: 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: /usr/lib64/httpd/modules/mod_pagespeed_ap24.so: undefined symbol: pagespeed_ap24_module
Any suggestion?
 
Same issue. I have Apache 2.4 but when I check pagespeed_ap24 I receive this error
httpd: 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: /usr/lib64/httpd/modules/mod_pagespeed_ap24.so: undefined symbol: pagespeed_ap24_module
Any suggestion?
Most probably loading of pagespeed_ap24_module is defined twice in Apache configs. Check it with

# grep -ilr "mod_pagespeed_ap24.so" /etc/httpd/

You may have something like

# grep -ilr "mod_pagespeed_ap24.so" /etc/httpd/
/etc/httpd/conf.modules.d/00-base.conf
/etc/httpd/conf.d/pagespeed.conf

In this case just comment line

LoadModule pagespeed_ap24_module /usr/lib64/httpd/modules/mod_pagespeed_ap24.so

in /etc/httpd/conf.modules.d/00-base.conf file and restart httpd service.
 
Yes, indeed pagespeed.conf checks version and loads the proper module for apache 2.4.
The issue is in the module selection in Plesk (Apache settings), when I uncheck pagespeed and check pagespeed_ap24, Plesk try to load both modules. If pagespeed.conf load the proper version, the Apache settings should not show the pagespeed_ap24.
Thanks
 
Back
Top