{"id":51,"date":"2007-01-22T00:07:44","date_gmt":"2007-01-21T23:07:44","guid":{"rendered":"https:\/\/www.dont-panic.cc\/capi\/2007\/01\/22\/phpmyadmin-with-mod_fcgid\/"},"modified":"2007-10-03T15:31:20","modified_gmt":"2007-10-03T14:31:20","slug":"phpmyadmin-with-mod_fcgid","status":"publish","type":"post","link":"https:\/\/www.dont-panic.cc\/capi\/2007\/01\/22\/phpmyadmin-with-mod_fcgid\/","title":{"rendered":"phpMyAdmin with mod_fcgid"},"content":{"rendered":"<p>I am currently migrating my server configuration away from mod_php towards <a href=\"http:\/\/fastcgi.coremail.cn\/\">mod_fcgid<\/a> (the successor of mod_fastcgi), as this allows me to use different users for executing scripts in different directories. I use this to have every hosted virtual domain using its own system user. This should (in theory) prevent one buggy application to take over all other hosted domains as well.<\/p>\n<p>I though faced one problem: I could not get <a href=\"http:\/\/www.phpmyadmin.net\">phpMyAdmin<\/a> working and this was a requirement of one of my clients. phpMyAdmin kept popping up the authentication dialog over and over again when using HTTP Basic Authentication.<\/p>\n<p>After searching some time, I noticed that, when using PHP in CGI mode, the authentication data is not passed over to the script by default. A <a href=\"http:\/\/wiki.cihar.com\/pma\/FAQ_1.35\">FAQ entry<\/a> of phpMyAdmin brought the solution to this issue: a ReWrite Rule was needed for the directory containing phpMyAdmin:<\/p>\n<blockquote style=\"text-align: left; white-space: pre; font-size: 9px\"><p><code>RewriteEngine On<br \/>\nRewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]<\/code><\/p><\/blockquote>\n<p>Suddenly phpMyAdmin worked \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am currently migrating my server configuration away from mod_php towards mod_fcgid (the successor of mod_fastcgi), as this allows me to use different users for executing scripts in different directories. I use this to have every hosted virtual domain using its own system user. This should (in theory) prevent one buggy application to take over &hellip; <a href=\"https:\/\/www.dont-panic.cc\/capi\/2007\/01\/22\/phpmyadmin-with-mod_fcgid\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;phpMyAdmin with mod_fcgid&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,7,10],"tags":[141,36,140,87,139,227],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-internet","category-security","category-sysadmin","tag-apache","tag-howto","tag-mod_fcgid","tag-mysql","tag-phpmyadmin","tag-security"],"_links":{"self":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":0,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}