简体   繁体   English

XAMPP Apache错误:服务器配置拒绝客户端

[英]XAMPP Apache error: client denied by server configuration

I just started up my computer and Apache in XAMPP no longer works. 我刚刚启动计算机,而XAMPP中的Apache不再起作用。 I suspect is has something to do with the fact that I accessed a server for my parents website earlier today for the first time. 我怀疑这与我今天早些时候第一次访问父母网站的服务器有关。

The error log is giving this message: 错误日志显示以下消息:

[Sun Aug 04 09:15:35.889700 2013] [authz_core:error] [pid 5088:tid 1776] [client ::1:58124] AH01630: client denied by server configuration: C:/Users/James/Desktop/Container/XAMPP/apache/icons/folder.gif, referer: http://localhost/Triiline1/

I changed this part of the httpd.conf , based off of these: 我根据以下内容更改了httpd.conf这一部分:

client denied by server configuration and Apache: client denied by server configuration 服务器配置Apache拒绝客户端:服务器配置拒绝客户端

<Directory "C:/Users/James/Desktop/Container/XAMPP/cgi-bin">
    AllowOverride All
    Options None
    Require local
</Directory>

I tried require all granted and require local , no results. 我尝试require all granted并且require local ,但没有结果。

MySQL still functions in XAMPP. MySQL仍在XAMPP中运行。 How can I fix this? 我怎样才能解决这个问题?

UPDATE: 更新:

Several hours later, I open XAMPP, click start, and it works fine. 几个小时后,我打开XAMPP,单击“开始”,它工作正常。 No clue. 没有线索。 I am interested if anybody has an explanation or a solution if this happens again. 如果有人再次解释或解决方案,我很感兴趣。

Apache in Xampp will not start if there is another application using port 80. 如果存在使用端口80的其他应用程序,则Xampp中的Apache将无法启动。

For example : Skype uses port 80. Therefore when Skype is running Apache will refuse to start since its working port is not available to be registered. 例如:Skype使用端口80。因此,在Skype运行时,Apache将无法启动,因为它的工作端口不可注册。

You have mentioned that you tried to access the server from your parents website. 您提到您曾尝试从父母的网站访问服务器。 How did you do that? 你是怎么做到的? Xampp do not allow non local ip's to access its apache server running on local machine / network. Xampp不允许非本地ip访问其在本地计算机/网络上运行的apache服务器。

If you want this behavior to be changed, use "Allow All" and remove if any "Deny" parameter is specified in httpd.conf. 如果要更改此行为,请使用“全部允许”并删除httpd.conf中指定的任何“拒绝”参数。

Don't forget to save config file. 不要忘记保存配置文件。 Restart the Apache server to apply the new rule. 重新启动Apache服务器以应用新规则。

Cheers..!! 干杯..!!

Try disabling the other SQL server running in the background. 尝试禁用在后台运行的其他SQL Server。

Go to services.msc and find all other SQL servers or server agents and disable them. 转到services.msc并找到所有其他SQL Server或服务器代理并将其禁用。

Finally, Apache will start. 最后,Apache将启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM