The problem seems to stem from cPanel putting the password file into a directory that the apache process could not access. Why was the identity of the Half-Blood Prince important to the story? Is there any simple way to learn (or do) this? –no0ne Mar 25 '13 at 12:32 That sounds horrible, from your point of view. I just wanted to make a website, and now I end up being forced to learn some server issues.. useful reference
If DocumentRoot is /var/www and the password file is /var/www/webroot/.htpasswd, you must say AuthUserFile /var/www/webroot/.htpasswd in your .htaccess file. While the FTP just gave me /wwww/... That can be tough to track down on a host that limits access to up stream folders. High School Trigonometric Integration Working without compensation, what to do? http://stackoverflow.com/questions/19060586/htaccess-htpasswd-500-internal-server-error
Think of /dev/null as a bottom-less trashcan. The .htasccess protection is more to stop people stumbling onto it while the whole thing is in development and potentially buggy (unlikely, I know, but I like to be safe) Many, As I pointed out, .htpasswd needs to be readable by the web server user.
Get the weekly newsletter! How to unlink (remove) the special hardlink "." created for a folder? I found the missing piece of information on the Webmasters site after some more googling. Create Htpasswd File Make sure the permissions on the .htaccess and .htpasswd files are set so that Apache can read them.
Can I visit Montenegro without visa? 500 Internal Server Error .htaccess File if it's set to 644, etc.), the server cannot read the file to authenticate it and you get a permissions error, i.e. You will need to find out from your hosting company where the files really live. http://stackoverflow.com/questions/15598097/htaccess-gives-500-internal-server-error Are D&D PDFs sold in multiple versions of different quality?
Linked 4 Can I find which user the web server is being run as in PHP? 1 htaccess gives 500 - Internal Server Error Related 0Problem with path on using .htaccess0Protect I've been digging hard but not sure why this is happening. .htpasswd Permissions I'd think it should be something like AuthUserFile home/folder/.htpasswd –blamonet Mar 24 '13 at 11:54 Thanks blamonet, but it didn't help. Htaccess Internal Server Error 500 What is the meaning of this sentence and why did the Giant rip open his belly?
Why aren't sessions exclusive to an IP address? see here in AuthUserFile write full path to .htpasswd file. asked 3 years ago viewed 11492 times active 12 days ago Blog Stack Overflow Podcast #91 - Can You Stump Nick Craver? How to say you go first in German When is it okay to exceed the absolute maximum rating on a part? .htaccess Password Generator
Thanks. –Tim Aych Sep 27 '13 at 22:07 1 thanks mate!!!! –Daniel Garcia Sanchez May 12 at 10:48 1 Thanks! Htaccess Password Protect Directory Find and display best Poker hand When does bugfixing become overkill, if ever? How do you grow in a skill when you're the company lead in that area?
Not the answer you're looking for? Linked 0 Laravel 5.2 - Basic Auth using .htpasswd 0 htacess 500 Internal Server Error Related 1htaccess and htpasswd?0Protect a file with .htaccess and .htpasswd0.htaccess & .htpasswd equals 500 error0htaccess file Make sure .htpasswd is readable by the web server user. Htaccess Generator Is the origin of the term "blackleg" racist?
Browse other questions tagged apache .htaccess or ask your own question. When I started having problems I decided to follow them to the letter to make sure there wasn't any error there. my .htaccess file: AuthName "Restricted Area" AuthType Basic AuthUserFile /home/u947248131/.htpasswd AuthGroupFile /dev/null require valid-user htaccess htpasswd share|improve this question asked Apr 27 '13 at 18:25 David Abgaryan 1813 add a comment| Get More Info I'm using GoDaddy hosting btw, if that makes a difference.
I wonder what might be the issue on my new server. ` authtype basicauthuserfile /var/www/vhosts/abc.com/httpdocs/admin/.htpasswdauthname "Secure Area"require user admin ` Both .htaccess and .htpasswd files are in the same folder. The AuthUserFile entry in .htaccess must still point to the absolute pathname for the file, for example: AuthUserFile "/home/myaccount/.passwd" with the site root being in /home/myaccount/public_html/ share|improve this answer answered May Do you know if Apache is set with AllowOverride all to allow .htaccess to operate as intended? Why do people move their cameras in a square motion?
Join them; it only takes a minute: Sign up .htaccess 500 error after login with AuthType Basic up vote 2 down vote favorite Here's my .htaccess file: AuthType Basic AuthName "LOG Try putting quotes around the path to the .htpasswd file and note on some hosting companies like cough.. Get the weekly newsletter! I created a .htaccess file which referenced the .htpasswd as follows: AuthType Basic AuthName "Protected Area" AuthUserFile /.htpasswd Require valid-user However when I uploaded this .htaccess file to the directory I
Interaction between a predictor and its quadratic form? 4 dogs have been born in the same week. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed If you have SSH access then you could probably edit the file with nano on the server, and see exactly what support is seeing. Browse other questions tagged .htaccess internal-server-error .htpasswd or ask your own question.
Chris "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Keyboard shortcut to search for text in MS Outlook 2007 How does a migratory species farm? Previous company name is ISIS, how to list on CV? I would start by tweaking the .htaccess-file.
Right now I'm just using it for some personal projects to get the feel of web design etc. How to change log levels for apex tests Is it illegal for regular US citizens to possess or read the Podesta emails published by WikiLeaks?