如何从 IIS 7.5 中的 PHP 页面诊断内部服务器错误 (HTTP 500) [英] How to diagnose an internal server error (HTTP 500) from a PHP page in IIS 7.5

查看:20
本文介绍了如何从 IIS 7.5 中的 PHP 页面诊断内部服务器错误 (HTTP 500)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取在我的本地开发机器上运行的 aMember 会员管理系统的试用副本,该机器是带有 IIS 7.5 的 64 位 Windows 7.我有 MySQL 5.5.10 和 PHP 5.3.6,后者是我使用 Windows 安装程序包安装的.看起来没问题.

I am trying to get a trial copy of the aMember membership management system running on my local dev machine, which is Windows 7 64-bit with IIS 7.5. I have MySQL 5.5.10 and PHP 5.3.6, the latter which I installed using the Windows installer package. It seems fine.

aMember 包有一个我运行的 tester.php 脚本,尽管它的输出充满了与函数 eregi() 已弃用相关的错误消息,但它给出了OK"的结果.然后我运行 setup.php 脚本,它似乎运行正常.它带我浏览了一两个屏幕的聚会,例如MySQL 的登录信息,然后说它已完成并为我提供了一些 aMember 管理页面的链接.这些链接都不起作用,单击其中任何一个都会导致内部服务器错误 (HTTP 500):服务器尝试完成请求时遇到意外情况.

The aMember package has a tester.php script which I ran, and it gave an 'OK' result, despite its output being full of error messages related to Function eregi() is deprecated. I then ran the setup.php script, which seemed to run properly. It took me through one or two screens of gathering e.g. login information for MySQL, and then said it was completed and offered me links to some aMember admin pages. None of these links work, and clicking any of them results in an Internal Server error (HTTP 500): An unexpected condition was encountered while the server was attempting to fulfill the request.

除了在 php 页面本身中放置大量诊断内容之外,我还能做些什么来进一步诊断此错误?我可以使用的工具是 Aptana Studio 和 Visual Studio,尽管我怀疑后者在这里是否有用.我已经通过 aMember 支持记录了这个问题,他很快要求我提供服务器日志,然后消失了.

What can I do to further diagnose this error, short of placing lots of diagnostic writes in the php pages themselves? Tools at my disposal are Aptana Studio and Visual Studio, although I doubt the latter is any use here. I have logged the issue with aMember support, who quickly asked for my server logs, and then disappeared.

推荐答案

aMember 试用软件使用编码的 PHP,需要 IonCube 进行解码.我已经安装了这个,但似乎安装失败了,因为随后的安装解决了这个问题.我最初被难住了,因为在安装 IonCube 后,我运行了 aMember 测试脚本,它告诉我 IonCube 已安装.aMember support 回应说:

The aMember trial software uses encoded PHP which requires IonCube to decode. I had installed this, but it seems the installation had failed, as a subsequent installation remedied the problem. I was initially stumped because after installing IonCube, I ran the aMember test script which told me IonCube was installed. aMember support responded that:

不幸的是,测试脚本不能正确处理动态加载的情况.如果这些库不在 php lib 文件夹中,则 PHP 5 版本不允许动态加载库.所以你必须将 IonCube 或 Zend 安装到服务器 php.ini'

我不知道为什么不能在测试脚本中构建警告.

I don't know why that can't build a warning into the test script.

这篇关于如何从 IIS 7.5 中的 PHP 页面诊断内部服务器错误 (HTTP 500)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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