首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache设置mac os yosemite

Apache设置mac os yosemite
EN

Stack Overflow用户
提问于 2014-12-04 19:14:56
回答 2查看 3.6K关注 0票数 0

我试图让Apache在我的约塞米蒂计算机上运行,但当我试图访问本地主机时,我得到了http://i.stack.imgur.com/ZzZzB.png

我运行了一个,得到了以下内容

Angus-Mac:mysql root# apachectl configtest AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Angus-Mac.local. Set the 'ServerName' directive globally to suppress this message Syntax OK

我做错什么了?有什么想法吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-12-08 04:05:49

取消注释ServerName并将其更改为域名解决了这个问题。

票数 1
EN

Stack Overflow用户

发布于 2014-12-04 20:37:22

将该文件夹的组权限更改为_www

代码语言:javascript
复制
sudo chgrp -R _www /Library/WebServer/Documents (all web content is now group _www)
chmod -R go-rwx /Library/WebServer/Documents (nobody other than owner can access web content)
chmod -R g+rx /Library/WebServer/Documents (all web content is now readable/executable/enterable by _www)

然后重新启动apache,似乎httpd.conf中的用户与web目录中的用户不同。

我找到了解决方案here

请取消第212行( ServerName )中的httpd.conf注释,并将域www.example.com更改为您的域。重新启动apache

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27302119

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档