macos - 为什么Apache Server无法在MAMP中启动?

标签 macos apache mamp

我正在尝试在Mac上本地查看php文件。

我正在运行优胜美地。

我的计算机上安装了MAMP。当我按启动时,MySQL服务器启动,但是Apache没有。出现一条错误消息,提示“错误。无法启动Apache。请检查您的MAMP安装”

我遍历了互联网,在终端中输入内容并将“envvars”更改为“_envvars”,但没有任何效果。

我重新安装了OSX,并且可以正常工作,但是当我关闭计算机时,问题再次出现。

有人可以帮忙吗?

谢谢

最佳答案

检查您是否更改了文档根目录位置或对其进行了重命名。至少这是我的错误。

MAMP>首选项> Web服务器>文档根

关于macos - 为什么Apache Server无法在MAMP中启动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28252124/

相关文章:

apache - Windows 10 上的 MAMP - Apache Server 启动然后停止

python - 导入错误 : No Module named six; six already installed

python - 如何部署高度迭代的更新

apache - 通过 .htaccess 强制 "www."

php - 当应用访问列表时,NGINX 会导致下载 index.php

php - 说表不存在

android - 3.4源码编译错误: fields must have a constant size: 'variable length array in structure' extension will never be supported on android 2.

Github 不缓存我的密码

Linux 文档/usr/share/doc 和 localhost/doc/的 apache .gz gzip 内容处理程序

mysql - 补丁后 MAMP 不适用于 Yosemite