首页 > 解决方案 > 我无法在 MacOS Mojave 版本 10.14.5 上使用 XAMPP 7.2.26-0 启动 Apache Web 服务器

问题描述

我可以在 MacOS Mojave 版本 10.14.5 上成功安装 XAMPP 7.2.26-0。问题是我无法启动 Apache:

在此处输入图像描述

在服务器事件中,我看到:

Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Stopping all servers...
Stopping MySQL Database...
/Applications/XAMPP/xamppfiles/mysql/scripts/ctl.sh : mysql stopped
Restarting all servers...
Starting MySQL Database...
/Applications/XAMPP/xamppfiles/mysql/scripts/ctl.sh : mysql  started at port 3306
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Exit code: 8
Stdout:
Checking syntax of configuration file
proftpd config test fails, aborting
Stderr:
2020-01-07 11:33:11,210 Jaimes-MacBook-Pro.local proftpd[24257]: warning: unable to determine IP address of 'Jaimes-MacBook-Pro.local'
2020-01-07 11:33:11,211 Jaimes-MacBook-Pro.local proftpd[24257]: error: no valid servers configured
2020-01-07 11:33:11,211 Jaimes-MacBook-Pro.local proftpd[24257]: fatal: error processing configuration file '/Applications/XAMPP/xamppfiles/etc/proftpd.conf'

是否认为这是由 IP 地址冲突或其他原因引起的?

更新 1

由于我对 ProFTPD 不感兴趣,我只是尝试启动 Apache Web 服务器,这就是我在服务器事件中看到的:

Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started

那会让我认为 Apache Web Server 成功启动。尽管如此,我仍然认为它的状态为“已停止”。

更新 2

请参阅下面的 Apache Web 服务器配置。我没有改变任何东西。我正在使用默认配置。

在此处输入图像描述

标签: apachexampp

解决方案


添加到您的主机文件:

127.0.0.1 Jaimes-MacBook-Pro.local

推荐阅读