XAMPP-Apache无法在Mac OS上启动 [英] XAMPP - Apache not starting on Mac OS
问题描述
https://www.apachefriends.org/download.html
以前我使用的是xampp-osx-7.1.10-0-installer.dmg
.
现在,由于我的项目需要上述PHP 7.2.X
,因此我备份了所有数据库&备份.项目. &尝试安装xampp-osx-7.2.7-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
我只能在XAMPP中升级PHP版本吗?
Can I upgrade PHP version only in XAMPP?
如果我现在再次尝试安装xampp-osx-7.1.10-0-installer.dmg
,则它在错误以下的localhost上显示
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 :-(
所以我根本无法运行XAMPP.
So I'm not able to run XAMPP at all.
推荐答案
我遇到了困扰我一整天的问题,这就是解决方案.
I had this issue that troubled me for a whole day and this was the solution.
删除XAMPP/xamppfiles/lib/文件夹,然后再次运行XAMPP安装程序.可能是由于先前版本中的旧lib文件未正确更新.
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
这篇关于XAMPP-Apache无法在Mac OS上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!