为什么有些我的网页我的XAMPP服务器返回500秒? [英] Why do some of my pages return 500s on my XAMPP server?

查看:410
本文介绍了为什么有些我的网页我的XAMPP服务器返回500秒?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法弄清楚到底是怎么回事,我的生活。

I cannot figure out what the hell is going on for the life of me.

通常,当我想在本地测试目的运行一个网站,我只是指向我的浏览器:

Normally when I want to run a site locally for testing purposes, I simply point my browser to:

的http://本地主机/ site_folder

这适用于大多数我的网页,但由于一些奇怪的(我的意思是很奇怪的)原因,某些文件夹给500重定向错误。

This works on the majority of my pages but for some strange (and I mean really strange) reason, some folders give a 500 redirect error.

我想也许是出事了与我的剧本之一,直到我创建了一个新的文件夹和一个基本的PHP信息页面:

I thought perhaps something was wrong with one of my scripts until I created a new folder and a basic php info page:

<?php
phpinfo();
?>

我的网站又发​​表了:

my site comes up with:

内部服务器错误

服务器遇到一个内部
  错误或配置错误,
  无法完成您的请求。

The server encountered an internal error or misconfiguration and was unable to complete your request.

请联系服务器
  管理员邮政局长@本地
  并告知他们的时间错误
  发生,以及任何你可能有
  做到这一点可能造成的错误。

Please contact the server administrator, postmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

这个错误的详细信息可
  在服务器错误日志。

More information about this error may be available in the server error log.

此外,一个500内部服务器
  遇到错误错误,
  试图使用ErrorDocument来
  处理该请求。

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

的Apache / 2.2.14(Win32的)DAV / 2
  了mod_ssl / 2.2.14的OpenSSL / 0.9.8l
  mod_autoindex_color PHP / 5.3.1
  mod_a preq2-20090110 / 2.7.1
  的mod_perl / 2.0.4的Perl / v5.10.1在服务器
  本地主机端口80

Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 Server at localhost Port 80

我检查我的本地错误日志,并得到:

I check my local error logs and get:

请求超过了10内部重定向的限制,由于可能的配置错误。使用LimitInternalRecursion如有必要,以提高额度。使用LogLevel的调试获得回溯。

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

什么都没有对我的配置改变,没有.htaccess文件与一塌糊涂,其他文件夹的工作。跆拳道是怎么回事?

Nothing has changed on my configuration, no .htaccess files to mess with, other folders work. WTF is going on?

推荐答案

我已经处理过这个问题,这是一个隐藏的.htaccess文件的结果,我知道你说你已经检查一个,但有可能尝试检查htdocs文件夹,因为如果你的DocumentRoot设置为/ htdocs目录在httpd.conf里面,然后任何文件夹将继承你的.htaccess的设置。

I have dealt with this problem before and it was the result of a hidden .htaccess file, I know you said you have checked for one but possibly try checking your htdocs folder because if you documentroot is set to /htdocs in your httpd.conf then any folders inside that will inherit your .htaccess setup.

这可能并非如此,但只是值得给它一个检查反正。

It's probably not the case but just worth giving it a check anyway.

这篇关于为什么有些我的网页我的XAMPP服务器返回500秒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆