XAMPP Apache config test fail error: "symbol not found on modperl.."

1.5k Views Asked by At

I installed XAMPP 7.2.7 version but Apache keeps on failing with this error:

httpd: Syntax error on line 522 of /Applications/XAMPP/xamppfiles/etc/httpd.conf: Syntax error on line 13 of /Applications/XAMPP/xamppfiles/etc/extra/httpd-xampp.conf:

Cannot load modules/mod_perl.so into server: dlopen(/Applications/XAMPP/xamppfiles/modules/mod_perl.so, 10): Symbol not found: _modperl_handler_anon_add

Referenced from: /Applications/XAMPP/xamppfiles/modules/mod_perl.so

Expected in: dynamic lookup

I tried looking at the httpd.conf, httpd-xampp.conf files and tried to modify those lines hoping that it will fix the errors but it didn't. So it seems like the problem is with the mod_perl.so file but I can't open the file.

I re-installed XAMPP several times and downgraded to 7.1.x but the same error occurred.

Forgot to mention this: I'm using macbook pro high sierra 10.13.5

2

There are 2 best solutions below

1
imposterSyndrome On BEST ANSWER

you don't say what you did to modify the lines but I just had this issue and commented out line 13 of /Applications/XAMPP/xamppfiles/etc/extra/httpd-xampp.conf and it's working fin after a restart - obviously this means that you aren't loading the Pearl module but may work as an interim until you can find out what's wrong with that

0
salah-1 On

To run Apache config test after modifying .conf files, and you are running XAMPP and its installed in the default /opt/lampp locaiton, then do the following, which should pinpoint the problem line.

#how to run Apache config test/check on xampp

/opt/lampp/bin/apachectl configtest

Or

/opt/lampp/bin/apachectl -t

Note, i see the OP has error and line reporting, but i posted above for anyone trying to run Apache configtest on xampp install which i didn't see in googling.