We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>AccessControlIssueApache (01 Dec 2006, SJoelChaney)
Tags:
create new tag
, view all tags

Question

I need help correcting the Auto-generated twiki.conf for Apache 2.2.3.

I am getting the following error from httpd. Syntax error on line 59 of /etc/httpd/conf.d/twiki.conf Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration.

I put the twiki.conf in conf.d which load fine.

Yes, auth_module is commented out because Apache 2 uses authz_host_module instead.

Tis section of twiki.conf is what I am having issues with.

# Password file for TWiki users AuthUserFile? /var/www/html/twiki/data/.htpasswd AuthName? 'Enter your WikiName? : (First name and last name, no space, no dots, capitalized, e.g. JohnSmith? ). Cancel to register if you do not have one.' AuthType? Basic

Thanks

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora 6
Web server: Apache 2.2.3
Perl version: 5.8.8
Client OS:  
Web Browser:  
Categories: Installation, Htaccess

-- SJoelChaney - 30 Nov 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

To my best knowledge and from what I can see from Googling the authz_host_module is not a replacement of auth_module. It seems the module has been split in more modules.

LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_host_module modules/mod_authz_host.so 

And you probably need all the 3 new

-- KennethLavrsen - 01 Dec 2006

Thanks my Apache 2.2.3 httpd.conf was lacking auth_basic_module and authn_file_module. Adding these modules fixed authenication issues.

-- SJoelChaney - 01 Dec 2006

 
Change status to:
Topic revision: r3 - 01 Dec 2006 - 14:40:21 - SJoelChaney
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback