readthefuckingmanual.net

[SOLVED] - Internal error: pcfg_openfile() called with NULL filename

Error added: 2008-01-15 18:18

10 solutions found.

Answer 1:

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.

http://www.linuxquestions.org/questions/linux-server-73/apache-modauthmysql-problem-493429/

Answer 2:

the options specified here works fine

Answer 3:

Add the following option :

“AuthBasicAuthoritative Off”

Answer 4:

this works for me:

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

Answer 5:

Is solution perfect. Thanks.

Answer 6:

I have tried Answer#4 , it works

Answer 7:

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 8:

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 9:

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 10:

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
 AuthDBMType SDBM
 AuthName "Protected Area"
 AuthType Basic
 AuthDBMUserFile "D:/Program Files/Apache/passwords.dat"
 require valid-user
</Directory>

Obviously, "AuthBasicProvider" and "AuthDBMType" must reflect the correct values for your system (available types for "AuthDBMType" are: default|SDBM|GDBM|NDBM|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. "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.
There is 1 person waiting for the answer


Please enter 61948 here

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


Hosted on a linuxvps.org Linux Virtual Private Server. Why not get your own?

Valid XHTML 1.1