Internal Server Error Apache Htaccess
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the internal server error htaccess htpasswd company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions internal server error wordpress Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million internal server error 500 programmers, just like you, helping each other. Join them; it only takes a minute: Sign up .htaccess/.htpasswd 500 Internal Server Error up vote 23 down vote favorite 5 I'm working on blocking a folder with .htaccess, internal server error php which I've never used before, and I'm having some trouble. Here's what I have .htaccess (located in the folder I want blocked): AuthName "Username and password required" AuthUserFile /.htpasswd Require valid-user AuthType Basic .htpasswd (located at root, password is encrypted in actual file): tim:blah I'm getting 500 Internal Server errors with this and I can't figure out why. apache .htaccess share|improve this question asked Sep 27 '13 at 21:46 Tim Aych 3752627 2
How To Fix 500 Internal Server Error
To you what is /.htpasswd, a file inside /home/youraccout/public_html or actually located on the main directory of the file system /? –Prix Sep 27 '13 at 21:51 What does your apache error logs say? –Jon Lin Sep 27 '13 at 21:52 I can't access error logs through my host =( and my .htpasswd file is in the uppermost folder I can access, it's not in my pubic_html folder –Tim Aych Sep 27 '13 at 22:04 add a comment| 4 Answers 4 active oldest votes up vote 54 down vote accepted Most likely problem is this line: AuthUserFile /.htpasswd This line should provide full filesystem path to the password file e.g. AuthUserFile /var/www/.htpasswd To discover your filesystem path, you can create a PHP document containing echo $_SERVER['DOCUMENT_ROOT']; share|improve this answer edited Nov 12 '15 at 15:14 Chuck Le Butt 20.2k30114181 answered Sep 27 '13 at 21:54 anubhava 384k32160233 .htpasswd is in the uppermost folder that I can access –Tim Aych Sep 27 '13 at 22:05 3 Also make sure .htpasswd is not writeable by group and others. –anubhava Sep 27 '13 at 22:07 4 Found the home path. My host kind of hides essential information from me. Thanks. –Tim Aych Sep 27 '13 at 22:07 1 thanks mate!!!!
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
500 Internal Server Error .htaccess File
Learn more about Stack Overflow the company Business Learn more about hiring developers or htaccess internal server error 500 posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer htaccess internal server error wamp site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up http://stackoverflow.com/questions/19060586/htaccess-htpasswd-500-internal-server-error and rise to the top .htaccess file not running and internal server error up vote 0 down vote favorite 1 I am using ubuntu 14.04 and have LAMP environment. I have one of the project in dir /var/www/html/project1 . It can't access the .htaccess file for rewriting url rules. For that i have to change in /etc/apache2/apache2.conf file
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://serverfault.com/questions/625637/htaccess-file-causes-500-internal-server-error-but-no-error-log-entry Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted internal server up and rise to the top .htaccess file causes “500 Internal Server Error” but no error log entry up vote 0 down vote favorite I set up an apache manually and added a second web directory with this code: Alias /webs c:\webs