<tfoot id='WNiJZ'></tfoot>

      <bdo id='WNiJZ'></bdo><ul id='WNiJZ'></ul>

    <small id='WNiJZ'></small><noframes id='WNiJZ'>

    <legend id='WNiJZ'><style id='WNiJZ'><dir id='WNiJZ'><q id='WNiJZ'></q></dir></style></legend>

      <i id='WNiJZ'><tr id='WNiJZ'><dt id='WNiJZ'><q id='WNiJZ'><span id='WNiJZ'><b id='WNiJZ'><form id='WNiJZ'><ins id='WNiJZ'></ins><ul id='WNiJZ'></ul><sub id='WNiJZ'></sub></form><legend id='WNiJZ'></legend><bdo id='WNiJZ'><pre id='WNiJZ'><center id='WNiJZ'></center></pre></bdo></b><th id='WNiJZ'></th></span></q></dt></tr></i><div id='WNiJZ'><tfoot id='WNiJZ'></tfoot><dl id='WNiJZ'><fieldset id='WNiJZ'></fieldset></dl></div>

      1. 如何从 mod_php 查看 PHP 的 ldap_* 函数的标准错误(LDAP_OPT_DEBUG_LEVEL=7)

        How to view stderr of PHP#39;s ldap_* functions (with LDAP_OPT_DEBUG_LEVEL=7) from mod_php(如何从 mod_php 查看 PHP 的 ldap_* 函数的标准错误(LDAP_OPT_DEBUG_LEVEL=7))

          <small id='oACJx'></small><noframes id='oACJx'>

            <bdo id='oACJx'></bdo><ul id='oACJx'></ul>
            <i id='oACJx'><tr id='oACJx'><dt id='oACJx'><q id='oACJx'><span id='oACJx'><b id='oACJx'><form id='oACJx'><ins id='oACJx'></ins><ul id='oACJx'></ul><sub id='oACJx'></sub></form><legend id='oACJx'></legend><bdo id='oACJx'><pre id='oACJx'><center id='oACJx'></center></pre></bdo></b><th id='oACJx'></th></span></q></dt></tr></i><div id='oACJx'><tfoot id='oACJx'></tfoot><dl id='oACJx'><fieldset id='oACJx'></fieldset></dl></div>
          • <legend id='oACJx'><style id='oACJx'><dir id='oACJx'><q id='oACJx'></q></dir></style></legend>

              <tfoot id='oACJx'></tfoot>

                  <tbody id='oACJx'></tbody>
                • 本文介绍了如何从 mod_php 查看 PHP 的 ldap_* 函数的标准错误(LDAP_OPT_DEBUG_LEVEL=7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我可以从 PHP 5.4.16 CLI 运行以下命令:

                  I can run the following from the PHP 5.4.16 CLI:

                  ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
                  $conn = ldap_connect($hostname);
                  ldap_bind($conn, $ldaprdn);
                  

                  我会得到大量的调试输出到 stderr,像这样开始:

                  And I will get a lot of debug output to stderr that starts like this:

                  ldap_create
                  ldap_url_parse_ext(ldaps://ldap.example.com)
                  ldap_bind_s
                  ldap_simple_bind_s
                  ldap_sasl_bind_s
                  ldap_sasl_bind
                  ldap_send_initial_request
                  ...
                  

                  这对于在 CLI 上进行调试非常有用.但是,我需要从 Apache 2.2.15 mod_php 中进行调试,因为我看到那里的 LDAP 连接断断续续,我无法在命令行上重现.

                  That is great for debugging on the CLI. However, I need to debug from within Apache 2.2.15 mod_php because I am seeing intermittent LDAP connectivity there that I cannot reproduce on the command line.

                  认为我可以从 Web 服务器运行相同的代码,并在 Apache 的错误日志中查看调试信息,但消息没有显示在那里.PHP 错误/警告肯定会进入错误日志,我尝试了 error_reporting(-1),但无法让这些调试消息显示在任何地方.

                  I thought I could run the same code from the web server and see that debug information in Apache's error log, but the messages are not showing up there. PHP errors/warnings are definitely going to the error log, and I tried error_reporting(-1), but can't get those debug messages to show anywhere.

                  在 Apache 下运行时,我可以通过某种方式查看那些 stderr 调试消息吗?

                  Is there some way I can see those stderr debug messages when running under Apache?

                  推荐答案

                  答案是这些消息正在被记录,但是记录到一个不同于的日志文件,而不是error_log() 消息去.在我的 Apache conf 中,每个虚拟主机都有自己的错误日志文件.还有一个全局错误日志文件,其中显示 Apache 启动/关闭消息.

                  The answer is that those messages are being logged, but to a different log file than where the error_log() messages go. In my Apache conf, each virtual host has its own error log file. There is also a global error log file where Apache startup/shutdown messages show up.

                  我在虚拟主机上运行这些 LDAP 调试脚本,并期望错误输出进入主机定义的错误日志......就像所有其他错误消息一样.但由于某种原因,这些 ldap 调试行被发送到全局错误日志.

                  I was running these LDAP debug scripts on a virtual host and expecting the error output to go to the host's defined error log... just like all other error messages do. But for some reason those ldap debug lines get sent to the global error log.

                  这篇关于如何从 mod_php 查看 PHP 的 ldap_* 函数的标准错误(LDAP_OPT_DEBUG_LEVEL=7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  smtp gmail server php mailer not working(smtp gmail服务器php邮件程序不工作)
                  Email goes in spam when I send it via others SMTP server(当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件)
                • <legend id='LjQTn'><style id='LjQTn'><dir id='LjQTn'><q id='LjQTn'></q></dir></style></legend>
                    • <bdo id='LjQTn'></bdo><ul id='LjQTn'></ul>
                    • <small id='LjQTn'></small><noframes id='LjQTn'>

                      <i id='LjQTn'><tr id='LjQTn'><dt id='LjQTn'><q id='LjQTn'><span id='LjQTn'><b id='LjQTn'><form id='LjQTn'><ins id='LjQTn'></ins><ul id='LjQTn'></ul><sub id='LjQTn'></sub></form><legend id='LjQTn'></legend><bdo id='LjQTn'><pre id='LjQTn'><center id='LjQTn'></center></pre></bdo></b><th id='LjQTn'></th></span></q></dt></tr></i><div id='LjQTn'><tfoot id='LjQTn'></tfoot><dl id='LjQTn'><fieldset id='LjQTn'></fieldset></dl></div>

                            <tfoot id='LjQTn'></tfoot>
                              <tbody id='LjQTn'></tbody>