<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Internal error: pcfg_openfile() called with NULL filename</title>
	<atom:link href="http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/</link>
	<description></description>
	<lastBuildDate>Thu, 17 Feb 2011 08:38:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: hron84</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-18293</link>
		<dc:creator>hron84</dc:creator>
		<pubDate>Fri, 17 Dec 2010 20:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-18293</guid>
		<description>Thanks a tip</description>
		<content:encoded><![CDATA[<p>Thanks a tip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-17062</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Tue, 06 Jul 2010 16:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-17062</guid>
		<description>Moderator, you may wish to replace my earlier comment with the following, which contains a few corrections and has extraneous information removed. Thanks!

=================================================

Windows users do not have the ability to specify &quot;AuthUserFile /dev/null&quot;. Furthermore, that is an undesirable solution (as others have noted). This is the appropriate method, provided as a complete example (these directives would go inside a  tag within httpd.conf, a .htaccess file, etc.):


	Options FollowSymLinks
	AllowOverride None
	Order deny,allow
	Deny from all
	Satisfy all
	AuthBasicProvider dbm
	AuthDBMType SDBM
	AuthName &quot;Protected Area&quot;
	AuthType Basic
	AuthDBMUserFile &quot;D:/Program Files/Apache/passwords.dat&quot;
	require valid-user


Obviously, &quot;AuthBasicProvider&quot; and &quot;AuthDBMType&quot; must reflect the correct values for your system (available types for &quot;AuthDBMType&quot; are: default&#124;SDBM&#124;GDBM&#124;NDBM&#124;DB). See http://httpd.apache.org/docs/2.0/mod/mod_auth_dbm.html and http://httpd.apache.org/docs/2.1/mod/mod_auth_basic.html for additional information.

The above example functions as expected with Apache 2.2.6 on Windows 7 x86. &quot;passwords.dat&quot; should be created with something like this:

&gt; D:\Program Files\apache\bin&gt;htdbm -cs &quot;D:\Program Files\Apache\passwords.dat&quot; yourname

Note also that, according to the mod_auth_basic manual page (cited above), setting &quot;AuthBasicAuthoritative&quot; to &quot;Off&quot; &quot;... should only be necessary when combining mod_auth_basic with third-party modules that are not configured with the AuthBasicProvider directive.&quot;

Thanks to everyone here for the assistance in getting this to work properly (under Windows, no less).</description>
		<content:encoded><![CDATA[<p>Moderator, you may wish to replace my earlier comment with the following, which contains a few corrections and has extraneous information removed. Thanks!</p>
<p>=================================================</p>
<p>Windows users do not have the ability to specify &#8220;AuthUserFile /dev/null&#8221;. Furthermore, that is an undesirable solution (as others have noted). This is the appropriate method, provided as a complete example (these directives would go inside a  tag within httpd.conf, a .htaccess file, etc.):</p>
<p>	Options FollowSymLinks<br />
	AllowOverride None<br />
	Order deny,allow<br />
	Deny from all<br />
	Satisfy all<br />
	AuthBasicProvider dbm<br />
	AuthDBMType SDBM<br />
	AuthName &#8220;Protected Area&#8221;<br />
	AuthType Basic<br />
	AuthDBMUserFile &#8220;D:/Program Files/Apache/passwords.dat&#8221;<br />
	require valid-user</p>
<p>Obviously, &#8220;AuthBasicProvider&#8221; and &#8220;AuthDBMType&#8221; must reflect the correct values for your system (available types for &#8220;AuthDBMType&#8221; are: default|SDBM|GDBM|NDBM|DB). See <a href="http://httpd.apache.org/docs/2.0/mod/mod_auth_dbm.html">http://httpd.apache.org/docs/2.0/mod/mod_auth_dbm.html</a> and <a href="http://httpd.apache.org/docs/2.1/mod/mod_auth_basic.html">http://httpd.apache.org/docs/2.1/mod/mod_auth_basic.html</a> for additional information.</p>
<p>The above example functions as expected with Apache 2.2.6 on Windows 7 x86. &#8220;passwords.dat&#8221; should be created with something like this:</p>
<p>&gt; D:\Program Files\apache\bin&gt;htdbm -cs &#8220;D:\Program Files\Apache\passwords.dat&#8221; yourname</p>
<p>Note also that, according to the mod_auth_basic manual page (cited above), setting &#8220;AuthBasicAuthoritative&#8221; to &#8220;Off&#8221; &#8220;&#8230; should only be necessary when combining mod_auth_basic with third-party modules that are not configured with the AuthBasicProvider directive.&#8221;</p>
<p>Thanks to everyone here for the assistance in getting this to work properly (under Windows, no less).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-17061</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Tue, 06 Jul 2010 16:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-17061</guid>
		<description>Windows users do not have the ability to specify &quot;AuthUserFile /dev/null&quot;. Furthermore, that is an undesirable solution. This is the appropriate method (which is described in the rtfm.net document referenced earlier in this thread), provided as a complete example:


	Options FollowSymLinks
	AllowOverride None
	Order deny,allow
	Deny from all
	Satisfy all
	AuthBasicProvider dbm
	AuthDBMType SDBM
	AuthBasicAuthoritative Off
	AuthName &quot;Protected Area&quot;
	AuthType Basic
	AuthDBMUserFile &quot;D:/Program Files/Apache/passwords.dat&quot;
	require valid-user


Obviously, &quot;AuthBasicProvider&quot; and &quot;AuthDBMType&quot; must reflect the correct values for your system (available types for &quot;AuthDBMType&quot; are: default&#124;SDBM&#124;GDBM&#124;NDBM&#124;DB). See http://httpd.apache.org/docs/2.0/mod/mod_auth_dbm.html and http://httpd.apache.org/docs/2.1/mod/mod_auth_basic.html for additional information.

The above example functions as expected with Berkeley DB (11gR2) and Apache 2.0.48 on Windows 7 x86. &quot;passwords.dat&quot; should be created with something like this:

&gt; D:\Program Files\apache\bin&gt;htdbm -cs &quot;D:\Program Files\Apache\passwords.dat&quot; yourname

Be good!</description>
		<content:encoded><![CDATA[<p>Windows users do not have the ability to specify &#8220;AuthUserFile /dev/null&#8221;. Furthermore, that is an undesirable solution. This is the appropriate method (which is described in the rtfm.net document referenced earlier in this thread), provided as a complete example:</p>
<p>	Options FollowSymLinks<br />
	AllowOverride None<br />
	Order deny,allow<br />
	Deny from all<br />
	Satisfy all<br />
	AuthBasicProvider dbm<br />
	AuthDBMType SDBM<br />
	AuthBasicAuthoritative Off<br />
	AuthName &#8220;Protected Area&#8221;<br />
	AuthType Basic<br />
	AuthDBMUserFile &#8220;D:/Program Files/Apache/passwords.dat&#8221;<br />
	require valid-user</p>
<p>Obviously, &#8220;AuthBasicProvider&#8221; and &#8220;AuthDBMType&#8221; must reflect the correct values for your system (available types for &#8220;AuthDBMType&#8221; are: default|SDBM|GDBM|NDBM|DB). See <a href="http://httpd.apache.org/docs/2.0/mod/mod_auth_dbm.html">http://httpd.apache.org/docs/2.0/mod/mod_auth_dbm.html</a> and <a href="http://httpd.apache.org/docs/2.1/mod/mod_auth_basic.html">http://httpd.apache.org/docs/2.1/mod/mod_auth_basic.html</a> for additional information.</p>
<p>The above example functions as expected with Berkeley DB (11gR2) and Apache 2.0.48 on Windows 7 x86. &#8220;passwords.dat&#8221; should be created with something like this:</p>
<p>&gt; D:\Program Files\apache\bin&gt;htdbm -cs &#8220;D:\Program Files\Apache\passwords.dat&#8221; yourname</p>
<p>Be good!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amil</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-14986</link>
		<dc:creator>Amil</dc:creator>
		<pubDate>Tue, 12 Jan 2010 09:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-14986</guid>
		<description>It has nothing to do with htpasswd.

The solution is to have `AuthBasicAuthoritative Off`.

But Apache error log keeps claiming `Internal error: pcfg_openfile() called with NULL filename` and `(9)Bad file descriptor: Could not open password file: (null)`.

To get rid of that error too add `AuthUserFile /dev/null`.

Thus my `httpd.conf` extract
.
.

	DAV svn
	SVNParentPath /var/svn

	# To get rid of 
	# 1. `Internal error: pcfg_openfile() called with NULL filename`
	# 2. `user ... not found`
	AuthUserFile /dev/null
	AuthBasicAuthoritative Off
.
.
.
	require valid-user

.
.
.

My environment:
Red Hat Enterprise Linux Server release 5.2 (Kernel 2.6.18-92.el5)
Apache 2.2.11
Subversion 1.6.3

Note: I&#039;m authenticating using mod_auth_mysql v3.0.0.</description>
		<content:encoded><![CDATA[<p>It has nothing to do with htpasswd.</p>
<p>The solution is to have `AuthBasicAuthoritative Off`.</p>
<p>But Apache error log keeps claiming `Internal error: pcfg_openfile() called with NULL filename` and `(9)Bad file descriptor: Could not open password file: (null)`.</p>
<p>To get rid of that error too add `AuthUserFile /dev/null`.</p>
<p>Thus my `httpd.conf` extract<br />
.<br />
.</p>
<p>	DAV svn<br />
	SVNParentPath /var/svn</p>
<p>	# To get rid of<br />
	# 1. `Internal error: pcfg_openfile() called with NULL filename`<br />
	# 2. `user &#8230; not found`<br />
	AuthUserFile /dev/null<br />
	AuthBasicAuthoritative Off<br />
.<br />
.<br />
.<br />
	require valid-user</p>
<p>.<br />
.<br />
.</p>
<p>My environment:<br />
Red Hat Enterprise Linux Server release 5.2 (Kernel 2.6.18-92.el5)<br />
Apache 2.2.11<br />
Subversion 1.6.3</p>
<p>Note: I&#8217;m authenticating using mod_auth_mysql v3.0.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitriy</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-13763</link>
		<dc:creator>Dmitriy</dc:creator>
		<pubDate>Tue, 21 Jul 2009 09:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-13763</guid>
		<description>Thanks a lot!
I seek the answer for a one month!!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot!<br />
I seek the answer for a one month!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Queeg</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-12525</link>
		<dc:creator>Queeg</dc:creator>
		<pubDate>Mon, 05 Jan 2009 03:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-12525</guid>
		<description>Thanks for the solution.

To avoid the entries in the error log, I created an empty password file (by creating a one user file and then deleting the user), then pointed apache to it.

htpasswd -c /home/test/emptypw testuser
htpasswd -D /home/test/emptypw testuser



# patch for &#039;Internal error: pcfg_openfile() called with NULL filename&#039;
# empty password file &#039;emptypw&#039; prevents error messages
AuthBasicAuthoritative Off
AuthUserFile /home/test/emptypw</description>
		<content:encoded><![CDATA[<p>Thanks for the solution.</p>
<p>To avoid the entries in the error log, I created an empty password file (by creating a one user file and then deleting the user), then pointed apache to it.</p>
<p>htpasswd -c /home/test/emptypw testuser<br />
htpasswd -D /home/test/emptypw testuser</p>
<p># patch for &#8216;Internal error: pcfg_openfile() called with NULL filename&#8217;<br />
# empty password file &#8216;emptypw&#8217; prevents error messages<br />
AuthBasicAuthoritative Off<br />
AuthUserFile /home/test/emptypw</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phoenix</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-12507</link>
		<dc:creator>phoenix</dc:creator>
		<pubDate>Fri, 19 Dec 2008 07:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-12507</guid>
		<description>thx 4 ur info ;)</description>
		<content:encoded><![CDATA[<p>thx 4 ur info <img src='http://www.pitr.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick van der Zwet</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-12487</link>
		<dc:creator>Rick van der Zwet</dc:creator>
		<pubDate>Mon, 08 Dec 2008 19:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-12487</guid>
		<description>Thanks, fixed my issue :-). 

FYI, also found this line in my logs &quot;(9)Bad file descriptor: Could not open password file: (null)&quot; which was also caused by this error.</description>
		<content:encoded><![CDATA[<p>Thanks, fixed my issue <img src='http://www.pitr.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . </p>
<p>FYI, also found this line in my logs &#8220;(9)Bad file descriptor: Could not open password file: (null)&#8221; which was also caused by this error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-12468</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Sun, 26 Oct 2008 20:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-12468</guid>
		<description>You can get rid of the errors by addding 

AuthUserFile /dev/null 

to your configuration file.  I found this over here: http://readthefuckingmanual.net/error/1387/  (sorry for the website name--not mine!)

And thanks for the post--hard to find solutions sometimes for simple stuff like this.

-Shane</description>
		<content:encoded><![CDATA[<p>You can get rid of the errors by addding </p>
<p>AuthUserFile /dev/null </p>
<p>to your configuration file.  I found this over here: <a href="http://readthefuckingmanual.net/error/1387/">http://readthefuckingmanual.net/error/1387/</a>  (sorry for the website name&#8211;not mine!)</p>
<p>And thanks for the post&#8211;hard to find solutions sometimes for simple stuff like this.</p>
<p>-Shane</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sasha</title>
		<link>http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/comment-page-1/#comment-12352</link>
		<dc:creator>Sasha</dc:creator>
		<pubDate>Wed, 21 May 2008 11:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/#comment-12352</guid>
		<description>Thanks!! Solved issue...</description>
		<content:encoded><![CDATA[<p>Thanks!! Solved issue&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

