Blog

Solution for Apache Error Detected an error in the rewrite configuration. httpd_ls_bak in Cpanel

June 11, 2026 1 Min. Lesezeit

If you see the following error in Cpanel, you can solve the problem with the following commands

Quick summary

Looking for affordable server licenses? SharedLicense offers cPanel, DirectAdmin, LiteSpeed, CloudLinux, and Windows licenses at wholesale prices with instant delivery.

Browse licenses →

Syntax error in -C/-c directive: Syntax error on line 2 of /etc/apache2/conf.modules.d/125_mod_cache.conf: Cannot load modules/mod_cache.so into server: /etc/apache2/modules/mod_cache.so: undefined symbol: ap_parse_strict_length Please try again.

Enter the following command in ssh :

# mv /etc/apache2 /etc/apache2bk

Need the best price on server licenses?

Get cPanel, DirectAdmin, LiteSpeed & more with instant delivery and 24/7 support.

Shop Licenses →

# mv /usr/local/apache /usr/local/apachebk

# yum reinstall ea-apache* -y

# /scripts/rebuildhttpdconf

And after the operation and in the final message, ok will show you success.

Share:

Bereit, bei Softwarelizenzen zu sparen?

Schließen Sie sich Tausenden von Hosting-Anbietern an, die SharedLicense für Großhandelspreise und sofortige Lieferung vertrauen.