apache - 我无法在 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 服务器配置。我没有改变任何东西。我正在使用默认配置。
解决方案
添加到您的主机文件:
127.0.0.1 Jaimes-MacBook-Pro.local
推荐阅读
- python - 使用 seq2seq tensorflow 插件放置更多 RNN 层
- reactjs - Material UI Accordion 从多选示例中进行单选
- r - R按日期范围差异组合数据帧并避免重复计算
- xcode - ViewController.h 和 ViewController.m 不会自动创建
- python - 在 python 中附加数组会产生奇怪的格式
- reactjs - 在单独的文件中提取反应上下文 + 减速器 +
- microsoft-edge - 在边缘添加命令行和异常以允许下载和运行 JNLP
- python - Seaborn:联合图的子图不起作用
- mysql - Perl 如何使用 DBI 模块更改帐户主机?
- asp.net - ASP.NET Core 中的按操作身份验证处理程序