in reply to Reliability of Apache::Htpasswd

Please define "falls over".

As for handling a large number of users, please note that the htpasswd/htgroup files scale linearly with the number of users. If you think you will have a lot of users, you are strongly advised to use an alternate method of storing users. Such as dbmauth.

Furthermore there are bugs in Apache when the group file gets to have lines that are too long. (I saw problems at 2048 bytes.) If you are using Apache with that many users in a group, you may need to split individual groups across lines.

  • Comment on Re (tilly) 1: Reliability of Apache::Htpasswd

Replies are listed 'Best First'.
Re: Re (tilly) 1: Reliability of Apache::Htpasswd
by George_Sherston (Vicar) on Mar 02, 2002 at 22:22 UTC
    'falls over' ... I just had this conversation with Kanji - he rightly asked the same q. And to my shame, I don't know. I came to Perl as a CGI language and am only just starting to use it for anything else, so (a) my default is always to write my scripts as CGIs and (b) I get all my error info from CGI::Carp. Just now was the first time since I rented my current server that I tried to look up my error logs... and I don't have any! So all I know is that I get a Server Error page in mid-flight - and when I check, I find my script wrote a thousand or so entries in the pwd file. Sorry not to be more informational. I'll fix up the logs and run it again.

    § George Sherston
      Your script is taking too long to complete and triggering a timeout from the webserver. I recommend that you not run this load test as a CGI. :)