简体   繁体   English

phpMyAdmin中的userID未打印在Apache日志中

[英]userID from phpMyAdmin not printed in Apache logs

I've configured my phpMyAdmin website with the following lines in the apache config: 我已经在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

But my apache logs never show the userID nor userStatus : 但是我的apache日志从不显示userIDuserStatus

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

My phpMyAdmin config contains: 我的phpMyAdmin配置包含:

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

What is wrong with my config? 我的配置有什么问题?

Had the same problem for a few days when I found a fix. 当我找到修复程序时,几天就遇到了相同的问题。 My solution was to run PhpMyAdmin as "Apache mod_php" instead of "FCGId" 我的解决方案是将PhpMyAdmin作为“ Apache mod_php”而不是“ FCGId”运行

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

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