<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Capi's Corner &#187; mod_fcgid</title>
	<atom:link href="http://www.dont-panic.cc/capi/tag/mod_fcgid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dont-panic.cc/capi</link>
	<description>Development, Network, Security, Ideas &#038; Opinions</description>
	<lastBuildDate>Sat, 10 Dec 2011 19:31:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>phpMyAdmin with mod_fcgid</title>
		<link>http://www.dont-panic.cc/capi/2007/01/22/phpmyadmin-with-mod_fcgid/</link>
		<comments>http://www.dont-panic.cc/capi/2007/01/22/phpmyadmin-with-mod_fcgid/#comments</comments>
		<pubDate>Sun, 21 Jan 2007 23:07:44 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mod_fcgid]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/2007/01/22/phpmyadmin-with-mod_fcgid/</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<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>
<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>
<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>
<blockquote style="text-align: left; white-space: pre; font-size: 9px"><p><code>RewriteEngine On<br />
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]</code></p></blockquote>
<p>Suddenly phpMyAdmin worked <img src='http://www.dont-panic.cc/capi/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2007/01/22/phpmyadmin-with-mod_fcgid/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

