• 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

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