Internal error: pcfg_openfile() called with NULL filename

Error added: 2008-01-15 18:18:03

1 person waiting for the answer...

9 answers found.

Answer 926 (87.5 % helpful)

this works for me:

	AuthType		Basic
	AuthName		\"Login!\"
	AuthPAM_Enabled		On
	AuthBasicAuthoritative	Off
	AuthUserFile		/dev/null 
	Require			valid-user


Answer 473 (75.0 % helpful)

For anyone who has the same problem the fix is to add the following line to the <directory> directives

AuthUserFile /dev/null

The error messages are apparently caused by apache 2.2.2 expecting a users file even if the auth method doesn\'t use one.

Answer 1161 (60.0 % helpful)

Still not working for me. I\'m using a VServer with Ubuntu and Plesk installed. \"AuthUserFile /dev/null\" gets rid of the entry in apache\'s error.log, but doesn\'t solve the problem. Adding \"AuthBasicAuthoritative Off\" doesn\'t help either.
Putting in \"AuthPAM_Enabled On\" lets apache throw an \"option unknown\"-error on reload
Please help!

Answer 1195 (50.0 % helpful)

Answer 9: ;-)

If you have this issue with ldap+apache2 try to add :

AuthType  Basic
AuthBasicProvider ldap
AllowOverride None
Order allow,deny
Allow from all

Answer 488

the options specified here works fine

Answer 1064

Is solution perfect. Thanks.

Answer 1134

I have tried Answer#4 , it works

Answer 1152

Answer#4 works but I think that the order of the settings is important - I had the same settings but in different order and apache still logged errors.
But now it works like a charm - Thanks!

Answer 1394

Windows users do not have the ability to specify \"AuthUserFile /dev/null\". Furthermore, that is an undesirable solution (as others have noted). This is the appropriate method, provided as a complete example:

<Directory />
	Options FollowSymLinks
	AllowOverride None
	Order deny,allow
	Deny from all
	Satisfy all
	AuthBasicProvider dbm
	AuthName \"Protected Area\"
	AuthType Basic
	AuthDBMUserFile \"D:/Program Files/Apache/passwords.dat\"
	require valid-user

Obviously, \"AuthBasicProvider\" and \"AuthDBMType\" must reflect the correct values for your system (available types for \"AuthDBMType\" are: default|SDBM|GDBM|NDBM|DB). See and for additional information.

The above example functions as expected with Apache 2.2.6 on Windows 7 x86. \"passwords.dat\" should be created with something like this:

> D:\\Program Files\\apache\\bin>htdbm -cs \"D:\\Program Files\\Apache\\passwords.dat\" yourname

Note also that, according to the mod_auth_basic manual page (cited above), setting \"AuthBasicAuthoritative\" to \"Off\" \"... should only be necessary when combining mod_auth_basic with third-party modules that are not configured with the AuthBasicProvider directive.\"

Thanks to everyone here for the assistance in getting this to work properly (under Windows, no less).

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.

Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here:

Psst - want to help build a list of common error messages?
Put the following line in your /etc/[r]syslog.conf file:


Collecting solutions to error messages since Aug 2005. © rtfm 2005-2014