阿帕奇不能正常工作后

阿帕奇不能正常工作后

本文介绍了安装OS X埃尔卡皮坦,阿帕奇不能正常工作后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装在我的MacBook Pro埃尔卡皮坦我不能键入任何主机设置在虚拟主机。一切都在约塞米蒂完美前的工作。当我输入我的虚拟主机之一,我得到:

I just installed in my MacBook pro "El capitan" and I can't type any host set it in vhost. Everything was working perfectly before in Yosemite. When I type one of my virtualhost I get:

403紫禁城您没有权限访问/在此服务器上。

我是怎么试?

/etc/apache2/httpd.conf
而这uncoment行:

go to /etc/apache2/httpd.confand uncoment this lines:

Include /private/etc/apache2/extra/httpd-vhosts.conf

LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so

/etc/apache2/extra/httpd-vhosts.conf 是因为很久以前,在优胜美地工作之前相同的文件,所以我没有修改。

/etc/apache2/extra/httpd-vhosts.conf is the same file that was working before in Yosemite since long time ago, so I haven't modified.

要安装在约塞米蒂我用自制的一切。

To install everything in Yosemite I used homebrew.

与酋长相关的另一个问题,以前我是能够键入的http://本地主机/〜为myuser / ,我可以访问任意文件夹中的 /用户/ myuser的/网站现在我得到这个消息: 404未找​​到

Another problem related with "El capitan", before I was able to type http://localhost/~myuser/ and I could access to any folder in /Users/myuser/Sites now I get this message: 404 not found.

我希望一些帮助,我不是在服务器专家,真的很难给我设置它,而且很讨厌浪费了大量的时间,随时可在操作系统中一个新的提升。

I hope some help, I am not specialist in servers and it's really difficult to me to set it up, and is very annoying to waste a lot of time anytime there is a new upgrade in the OS.

推荐答案

我有同样的烦恼。
键入此命令行中,你将有来自Apache的错误:

I had the same trouble.Type this command line you will have the error from apache :

apachectl configtest

如果你有这样的错误:

AH00526: Syntax error on line 20 of /private/etc/apache2/extra/httpd-mpm.conf: Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration.

所以这个链接可以帮助:http://apple.stackexchange.com/questions/211015/el-capitan-apache-error-message-ah00526

这篇关于安装OS X埃尔卡皮坦,阿帕奇不能正常工作后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 05:36