我的服务器不运行PHP文件。给我的错误
问题描述:
你好我最近采取的我的服务器文件&从服务器....我的服务器不运行PHP文件。给我的错误
现在删除了我的所有文件的备份,当我重新上传在服务器上我的文件,HTML文件做的工作,但PHP文件做不行。
我使用的文件的index.php,当我上传这个文件被生成以下错误: -
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server administrator, [email protected] 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.
Additionally, a 500 Internal Server Error error was encountered while trying to use an
ErrorDocument to handle the request.
,之前,我有我的服务器上的这些文件夹我的网站文件一起: -
- 的cgi-bin
- CP
- modlogan
此外,我再次上传这些文件夹,但仍然PHP文件不起作用。
答
其实,我问我的服务器管理员,他重新安装了一切....感谢您的时间和精力....
答
尝试运行的phpinfo文件,检查如果PHP在本地主机
http://www.cyberciti.biz/faq/how-do-i-test-php-installation-with-a-phpinfo-page/
答
正确confirgured如果一遍又一遍看到了这个错误,总是指的是不支持的CONFIGS上.htaccess
文件。
请检查它们。
我认为消息的重要组成部分,是'这个错误的详细信息可能在服务器错误日志中可用。“,您应该在那里查看有关错误的详细信息。 – 2012-03-02 06:00:46
检查Apache'error_log',看看它为什么会失败,有时你可以在httpd或apache(2)下的'/ etc'或'/ usr/local'或'/ var'中找到它。 – drew010 2012-03-02 06:01:00
你得到的错误是非常通用的。这可能是PHP工作正常,并且在该特定文件中只有一个错误。你可以在这里发布index.php的PHP代码吗? 如果你能够查看你的服务器的错误日志,你也可以在那里查看是否有更具体的消息。 – octern 2012-03-02 06:01:23