Find the answer to your Linux question:
Results 1 to 3 of 3
I've just setup my new server. I have installed Debian Sarge 3.1, Apache2 and php5 on it and everything runs fine. The only problem is that I want to protect ...
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    2

    .htaccess & .htpasswd files don't protect my directories

    I've just setup my new server. I have installed Debian Sarge 3.1, Apache2 and php5 on it and everything runs fine.

    The only problem is that I want to protect a couple of directories on the website root (/var/www). I have tried creating .htaccess & .htpasswd files but if I goto one of the directories that I have "protected" I can still see the contents.

    Is this a problem with php5 ? I have only just upgraded to 5 from php4 and have not had this problem before. All installations were done via apt-get from stable repositories.

    Can someone point me in the right direction as I would like to get the password protection on my folders.

    TIA

  2. #2
    Just Joined!
    Join Date
    Jan 2006
    Posts
    71
    did you restart apache?

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    2
    Yes. I had to modify the <Directory> lines in apache2.conf slightly and I didn't realise that if you enter a username/password combination Internet Explorer remembers it until you log out of XP and log in again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •