LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2008, 03:08 AM   #1
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Rep: Reputation: 15
htaccess issues


Hi!

I have a Centos5 box at home that I am using as a web server. I am trying to password protect the myphpadmin folder with htaccess. I am using a valid htaccess file (I copied it from a working website www.woodwardlink.com/secure). I access my home server via the ip address, for example 78.98.105.195. The phpmyadmin directory structure is inside /var/www/html and the .htaccess file is inside the phpmyadmin directory. When I type 78.98.105.195/phpmyadmin into my web browser, it just rips through to the phpmyadmin stuff without prompting for a password.

Please help!
 
Old 05-08-2008, 04:20 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,641

Rep: Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539
You need at least to put
Code:
AllowOverride AuthConfig
inside the <Diretrory /var/www/html>...</Directory> part of the httpd.conf
 
Old 05-08-2008, 11:48 PM   #3
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Need a bit more help

I am close to understanding this issue, but I don't quite understand where this command should go in the httpd.conf file. It is mentioned several times. Everytime I change something in the httpd.conf file, I get barked at when trying to restart httpd ("AllowOverride not allowed here (line 397)"). Any ideas?
 
Old 05-08-2008, 11:57 PM   #4
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
I Got It!

I'm sorry, I wasn't understanding your post at first, but now I understand. This httpd.conf file is complex (lots of directives). I will have to get to know them!

Thanks for your help!

TW
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with htaccess (basic authentication) Jake_B Linux - Server 4 04-22-2007 12:25 PM
.htaccess-any help fareen Linux - Networking 0 01-20-2006 02:05 PM
.htaccess ISSUES! SpiderIRE Linux - Software 4 10-03-2005 02:58 PM
php.ini / .htaccess memory issues rioguia Linux - Software 2 11-19-2004 01:41 PM
.htaccess artistik Linux - Software 1 10-23-2003 03:24 PM


All times are GMT -5. The time now is 02:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration