Tags:
create new tag
view all tags

Question

When setting up TWiki on Linux, after enabling basic user authentication: upon registration the username and password hash are entered in the .htpasswd file, an email is sent, but the browser keeps prompting for a username and password. You are typing the correct username and password. Upon examination of your Apache /var/log/error_log, you notice MySQL errors for every login attempt:

    [Fri Jul 15 19:27:38 2005] [error] [client 192.168.208.153] MySQL ERROR: Table 'test.user_info' doesn't exist: /twiki/bin/viewauth/Main/%USERLAYOUTURL%, referer: http://hawker/twiki/bin/view
    [Fri Jul 15 19:27:38 2005] [error] [client 192.168.208.153] MySQL user TWikiGuest not found: /twiki/bin/viewauth/Main/%USERLAYOUTURL%, referer: http://hawker/twiki/bin/view
    

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux 2.6.9-5.ELsmp
Web server: Apache 2.052
Perl version: 5.8.5
Client OS: Mac OS X, Windows XP
Web Browser: Safari, Firefox
Categories: Authentication

-- GuenterBuenter - 16 Jul 2005

Answer

The answer is likely to do with your Apache. If you installed the Apache module mod_auth_mysql, or you used an RPM package to install Apache and didn't deselect this mod, Apache will try to authenticate against MySQL even if you have you basic password configuration set up perfectly. See http://forum.agileco.com/archive/index.php/t-763.html.

To get around this issue, deinstall mod_auth_mysql or add the AuthMySQLEnable off directive to your httpd.conf:

    <Directory />
       Options All
       AuthMySQLEnable off
       AllowOverride All
    </Directory>
    
This worked for me, and as I spent several hours tracking down and researching the problem, I wanted to share the solution.

-- GuenterBuenter - 16 Jul 2005

Thanks Guenter for sharing this!

-- PeterThoeny - 16 Jul 2005

It resolve my problem!! Thank u very much! niegq

-- TWikiGuest - 16 Feb 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-02-16 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.