[PHP] htaccess problems
I cant seem to get my htaccess file to work. Can anyone help? Heres what i have now: AuthUserFile /var/www/html/private/ .htpasswd AuthGroupFile /dev/null AuthName PrivateDomain AuthType Basic Limit GET require valid-user /Limit I then type 'htpasswd -c .htpasswd myusername' and then set password. Everything seems to be in order but i'm not prompted for user name and passwd when i try to access protected area via the web? Both htaccess and htpasswd files are in 'private' directory. Permission on secure folder is 755. Is that right? What about permissions for htaccess and htpasswd files? Do I have to enable htaccess ability through apache first through httpd.conf? Can anyone help? Thansk, JJ -- 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] htaccess problems
i don't think you want that space inbetween private/ and .htpasswd -Original Message- From: Jeremiah Jester [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:38 AM To: Php-General Subject: [PHP] htaccess problems I cant seem to get my htaccess file to work. Can anyone help? Heres what i have now: AuthUserFile /var/www/html/private/ .htpasswd AuthGroupFile /dev/null AuthName PrivateDomain AuthType Basic Limit GET require valid-user /Limit I then type 'htpasswd -c .htpasswd myusername' and then set password. Everything seems to be in order but i'm not prompted for user name and passwd when i try to access protected area via the web? Both htaccess and htpasswd files are in 'private' directory. Permission on secure folder is 755. Is that right? What about permissions for htaccess and htpasswd files? Do I have to enable htaccess ability through apache first through httpd.conf? Can anyone help? Thansk, JJ -- 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] -- 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] htaccess problems disabling phplib
From: "Gfunk" [EMAIL PROTECTED] Hi, I'm trying to disable phplib, and I have a .htaccess file consisting of the line php_value auto_prepend_file none And now I'm getting a 500 internal server error. Can anybody shed some light on what I'm doing wrong? Cheers, Gfunk It sounds like your Apache configuration does not allow the php_value directive to appear in an .htaccess file. Check your error_log for a description of the problem. In httpd.conf (or access.conf) find an applicable Directory block and check the setting of AllowOverride. I'm not actually sure what the override setting you need is, but you could try Options or just All. http://httpd.apache.org/docs/mod/core.html#allowoverride Example: Directory /www/htdocs AllowOverride All ... /Directory Of course, if you're able to edit httpd.conf then you could just put the php_value directive directly in there. :) Cheers Simon Garner -- 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]