简体   繁体   English

PHP 在 Apache 上登录 HTTPD 时出错 Windows:此配置有什么问题,它不记录错误?

[英]PHP Error logging on Apache HTTPD on Windows: What is wrong with this configuration that it is not logging errors?

I am getting a blank screen and nothing in the error logs for a php program I am trying to get up and running (it happens to be yourls).对于我正在尝试启动和运行的 php 程序(它恰好是你的),我得到一个空白屏幕并且错误日志中没有任何内容。 What do I need to do to get error logging enabled or to otherwise get an indicate of why the page is not loading (I know there are multiple postings on this but none of the fixes suggested in this posts seems to generate any output and don't seem to work for this specific implementation)?我需要做什么才能启用错误日志记录或以其他方式指示页面未加载的原因(我知道对此有多个帖子,但这些帖子中建议的修复似乎都没有生成任何 output 并且不'似乎不适用于此特定实现)?

I'm running php from this install: php-8.0.0-nts-Win32-vs16-x64.zip我从这个安装运行 php:php-8.0.0-nts-Win32-vs16-x64.zip

I'm running Apache HTTPD from this install: httpd-2.4.46-o111i-x64-vc15.zip我从这个安装运行 Apache HTTPD:httpd-2.4.46-o111i-x64-vc15.zip

Turns out this was a behavior of the yourls software I was trying to run.原来这是我试图运行的你的软件的行为。 It had a flag that turned error logging/messaging off AND it was not compatable with php 8. I switched to php 7 and switched to the php.ini-development config (by renaming it to php.ini) and I am now seeing error messages (the driver for the database is missing).它有一个关闭错误日志记录/消息的标志,并且它与 php 不兼容 8。我切换到 php 7 并切换到 php.ini 开发配置(通过将其重命名为 php.ini),我现在看到错误消息(缺少数据库驱动程序)。

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

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