【问题标题】:userID from phpMyAdmin not printed in Apache logs来自 phpMyAdmin 的用户 ID 未打印在 Apache 日志中
【发布时间】:2014-06-04 17:27:29
【问题描述】:

我已在 apache 配置中使用以下行配置了我的 phpMyAdmin 网站:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{userID}n %{userStatus}n" pma_combined
ErrorLog     /srv/wwwroot/phpMyAdmin/logs/errors.log
CustomLog    /srv/wwwroot/phpMyAdmin/logs/access.log pma_combined

但我的 apache 日志从不显示 userIDuserStatus

127.0.0.1 - - [...] "GET /index.php?token=... HTTP/1.1" 200 5200 "https://example.com/index.php?token=..." "Mozilla/(...)" - -

我的 phpMyAdmin 配置包含:

$cfg['Servers'][$i]['auth_type']        = 'cookie';

我的配置有什么问题?

【问题讨论】:

    标签: apache phpmyadmin


    【解决方案1】:

    当我找到修复程序时,几天都遇到了同样的问题。 我的解决方案是将 PhpMyAdmin 运行为“Apache mod_php”而不是“FCGId”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多