2

https://www.apachefriends.org/download.html

Previously I'm using xampp-osx-7.1.10-0-installer.dmg.

Now as my project required PHP 7.2.X above so I took the backup of all DB & project. & try to install xampp-osx-7.2.7-0-installer.dmg

After installation it keep gives me this error

   Starting all servers...
    Starting MySQL Database...
    /Applications/XAMPP/xamppfiles/mysql/scripts/ctl.sh : mysql  started at port 3306
    Starting Apache Web Server...
    Exit code: 8
    Stdout:
    apache config test fails, aborting
    Stderr:
    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\n  Referenced from: /Applications/XAMPP/xamppfiles/modules/mod_perl.so\n  Expected in: dynamic lookup\n

Can I upgrade PHP version only in XAMPP?

If I'm now try to install xampp-osx-7.1.10-0-installer.dmg again then it gives on localhost below error

<?php
    if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
        $uri = 'https://';
    } else {
        $uri = 'http://';
    }
    $uri .= $_SERVER['HTTP_HOST'];
    header('Location: '.$uri.'/dashboard/');
    exit;
?>
Something is wrong with the XAMPP installation :-(

So I'm not able to run XAMPP at all.

Jackson
  • 1,426
  • 3
  • 27
  • 60

2 Answers2

4

I had this issue that troubled me for a whole day and this was the solution.

Remove the XAMPP/xamppfiles/lib/ folder and run the XAMPP installer again. It's probably due to old lib files from previous version not being updated properly.

https://community.apachefriends.org/viewtopic.php?t=77199&p=261450

Vincent Mungai
  • 202
  • 3
  • 4
  • This worked for me. Upgraded from XAMPP 5.6 and macOS 10.14 to XAMPP 7.4 and macOS Monterey – Jerry U Jan 03 '22 at 17:50
  • But my databases arent working. Getting error `Unable to select the table:` – Jerry U Jan 03 '22 at 17:51
  • Same for me. I have updated a very old version after having it not used for a long time. In between there were also OS updates. Removing the lib folder after the XAMPP update and rerunning the installer then did the trick. – J. Bug Aug 26 '23 at 20:42
1

I had this issue and commented out line 13 of /Applications/XAMPP/xamppfiles/etc/extra/httpd-xampp.conf and it's working fine 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

Atul Gupta
  • 11
  • 1