Re: [PHP] Re: AddType x-httpd-php to Root Dir ...Solution

2001-11-21 Thread Jeff Hill

Thanks for the suggestion, but no, it was something else. What else it
was, I don't know. I took the plunge and did the when in doubt,
upgrade route -- the server is now:

Apache/1.3.22 -- AuthMySQL/2.30 -- PHP/4.0.6 -- mod_ssl/2.8.5 --
OpenSSL/0.9.6b

Now, 24 hr. of straight work upgrading, the problem has gone away. I
don't know which of these programs had which bug, but I did nothing
other than upgrade, albeit a 24-hr task due to the AuthMySQL issues.

Which now prompts the question, perhaps delusional from lack of sleep,
if hardly anyone is using mod_auth_mysql, as seems to be the case, what
is everyone using to authenticate access? -- especially for larger sites
(I have 70K+ pages).

Regards,

Jeff Hill


Richard Lynch wrote:
 
 Jeff Hill wrote:
 
  AddType application/x-httpd-php html
 
  All users who enter any subdirectory with a .htaccess authentication
  requirement get a 401 error instead of the pop-up authentication request
  they should get (I use authmysql). The same thing happens if I try
  changing my Apache httpd.conf from:
 
 Wild Guess:
 My first guess would be that the version of MySQL you used with authmysql
 and the version of MySQL you compiled into Apache are not matching up, and
 end up tromping on each other somehow.
 
 If you still have the source directories, check the config.log files or
 whatever to see what versions of MySQL got compiled into each package.
 
 --
 Like music?  http://l-i-e.com/artists.htm
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

--  HR On-Line:  The Network for Workplace Issues --
http://www.hronline.com - Ph:416-604-7251 - Fax:416-604-4708


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: AddType x-httpd-php to Root Dir ...Solution

2001-11-21 Thread Fred

I always write my own authentication scripts in PHP using PHP's built in
session management.  If you want to protect entire directories or sites,
just add the authentication routine to your auto_prepend file and it will
work for any page you are trying to authenticate.

If set up correctly it works really well, because a user can enter the site
from any page (perhaps from a bookmark) and if they are not logged in they
will get a login prompt and once logged in will go directly to whatever page
they were trying to access.

Furthermore, if you write your own authentication script for use in
auto_prepended files, you can use it with little or no modification on any
site you desire.

Fred


Jeff Hill [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Thanks for the suggestion, but no, it was something else. What else it
 was, I don't know. I took the plunge and did the when in doubt,
 upgrade route -- the server is now:

 Apache/1.3.22 -- AuthMySQL/2.30 -- PHP/4.0.6 -- mod_ssl/2.8.5 --
 OpenSSL/0.9.6b

 Now, 24 hr. of straight work upgrading, the problem has gone away. I
 don't know which of these programs had which bug, but I did nothing
 other than upgrade, albeit a 24-hr task due to the AuthMySQL issues.

 Which now prompts the question, perhaps delusional from lack of sleep,
 if hardly anyone is using mod_auth_mysql, as seems to be the case, what
 is everyone using to authenticate access? -- especially for larger sites
 (I have 70K+ pages).

 Regards,

 Jeff Hill


 Richard Lynch wrote:
 
  Jeff Hill wrote:
 
   AddType application/x-httpd-php html
  
   All users who enter any subdirectory with a .htaccess authentication
   requirement get a 401 error instead of the pop-up authentication
request
   they should get (I use authmysql). The same thing happens if I try
   changing my Apache httpd.conf from:
 
  Wild Guess:
  My first guess would be that the version of MySQL you used with
authmysql
  and the version of MySQL you compiled into Apache are not matching up,
and
  end up tromping on each other somehow.
 
  If you still have the source directories, check the config.log files or
  whatever to see what versions of MySQL got compiled into each package.
 
  --
  Like music?  http://l-i-e.com/artists.htm
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --
 
 --  HR On-Line:  The Network for Workplace Issues --
 http://www.hronline.com - Ph:416-604-7251 - Fax:416-604-4708
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]