问题描述
我正在运行雪豹的最新版本MAMP的。
I am running the latest version of MAMP on Snow Leopard.
我的php.ini文件已经被配置为显示错误。的display_errors =上。所述的phpinfo();页面显示错误报告的状态,它是。我已经重新启动我的网络服务器几次。
My php.ini file has been configured to display errors. display_errors = on. The phpinfo(); page displays the status of error reporting, it is on. I have restarted my web server several times.
我已经通过谷歌搜索,我找不到任何类似的问题。每个人都只是说做的事情我都做了,但它不工作。该页面将只是保持空白(没有报告),如果我故意把错误。
I've searched through Google, and I cannot find any similar problem. Everyone just says to do exactly what I have done, but it is not working. The pages will just remain blank, (with no reporting), if I intentionally place errors.
任何想法来的问题可能是什么?
Any thoughts as to what the problem may be?
推荐答案
有关谁遇到这个问题的任何未来的海报...
For any future posters who run into this issue...
我有同样的问题,发现我正在改变错误的php.ini文件。运行的phpinfo并找到路径到活动的php.ini文件,以确保您正在编辑正确的。
I was having the same issue and found that I was making changes to the wrong php.ini files. Run phpinfo and find the path to the active php.ini file to make sure you're editing the correct one.
在我安装的甲基苯丙胺的存在与的php.ini文件/ conf目录的多个实例。我需要的是位于/ bin中/ PHP / PHP [版本号] / conf目录,而不是MAMP / conf目录。
On my installation of mamp there were multiple instances of the /conf directory with php.ini files. The php.ini files I needed were located in the /bin/php/php[version#]/conf directory and not the MAMP/conf directory.
精确路径php.ini文件,我需要编辑:
Exact path to the php.ini file I needed to edit:
应用程序/ MAMP /斌/ PHP / php5.4.10 / conf目录/ php.ini中
Applications/MAMP/bin/php/php5.4.10/conf/php.ini
修改的display_errors =关闭
到的display_errors =开
这篇关于MAMP配置的帮助,显示PHP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!