Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-09-05, 01:53 PM
Junior Member
 
Join Date: Sep 2006
Posts: 1
thesheff17 is on a distinguished road
Default apache2 and mod_auth_dbm

I'm trying to get apache2 working with mod_auth_dbm and .htaccess files.
I can get it working fine without the DBM stuff. Any help will be greatly appreciated.


Compile Parameters:
./configure --prefix=/usr/local/apache2 --with-mpm=prefork --enable-so --enable-access --enable-auth-dbm --enable-ssl --with-ssl=/usr/local/openssl/ --disable-charset-lite --disable-include --disable-env --disable-setenvif --disable-status --disable-autoindex --disable-asis --disable-cgi --disable-negotiation --disable-imap --disable-actions --disable-userdir --disable-alias

This is the error I'm getting now
[Mon Sep 04 11:06:35 2006] [alert] [client 172.25.231.241] /usr/local/apache2/htdocs/secure/.htaccess: Invalid command ]
'AuthDBMUserFile', perhaps misspelled or defined by a module not included in the server configuration

.htaccess Files:

Even though This Works Fine:
AuthType Basic
AuthName "Password Required"
AuthUserFile /usr/local/apache2/conf/thesheff17/thesheff172
#AuthGroupFile /www/passwords/group.file
Require valid-user


But This Does Not:
AuthType Basic
AuthName "Password Required"
AuthDBMUserFile /usr/local/apache2/conf/thesheff17/thesheff17
Require valid-user
Reply With Quote
  #2 (permalink)  
Old 2007-03-06, 07:35 PM
Junior Member
 
Join Date: Feb 2007
Posts: 1
001soft is on a distinguished road
Default

try this

1. Make sure that the AuthDBMUserFile is stored outside the document tree of the web-server; do not put it in the directory that it protects. Otherwise, clients will be able to download the AuthDBMUserFile.

2. use FastCgiAuthorizer
<Directory htdocs/protected>
AuthType Basic
AuthName ProtectedRealm
AuthDBMUserFile conf/authentication-database
FastCgiAuthorizer fcgi-bin/authorizer
</Directory>
__________________
software reviews
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:22 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.