Apache fails to start: undefined symbol: ap_set_content_type_ex

Started by Suhitha, Aug 16, 2025, 01:52 AM

Previous topic - Next topic

Suhitha

Question: Apache fails to start: undefined symbol: ap_set_content_type_ex

Applicable to:

  • Plesk for Linux[


Symptoms
  • Apache fails to start with an error like this one:

Cannot load /usr/lib/apache2/modules/mod_headers.so into server: /usr/lib/apache2/modules/mod_headers.so: undefined symbol: ap_set_content_type_ex
  • LiteSpeed is/was installed on the server

Cause

Incorrect package configuration from LiteSpeed.


Resolution

Reinstall Apache

  • Connect to the server over SSH
  • Reinstall the Apache components

  • RHEL-based
#yum reinstall httpd

  • Debian-based
#apt reinstall apache2 apache2-bin apache2-data apache2-utils

3.Start Apache

#systemctl start httpd || systemctl start apache2


Related to

Apache