Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th January 2007, 23:14
robin99 robin99 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default Directory Protection Not Working

Hi,
I created a new directory and then have tried to protect that directory through Web-FTP in ispconfig. I set up a username of "username" and a password of "password" to test the directory protection. The .htaccess and .htpasswd files are created, however when i access the folder through a web browser it asks for username and password and i enter these. But even though i am entering the correct username and password ( i have even tried copying and pasting to make sure it is correct ) but it does not accept the username and password.
How can i solve this???
Thanks
Robin
Reply With Quote
Sponsored Links
  #2  
Old 27th January 2007, 14:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Which distribution are you using? Have you tried changing the password?

What's in the .htaccess and the .htpasswd file?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th January 2007, 22:04
robin99 robin99 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I am using ISPConfig Version: 2.2.9 installed on ubuntu 6.06.1 server
I installed ubuntu and ISPConfig using the Perfect Setup Ubuntu 6.06

.htaccess file

AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/web3/user/web3_user/web/private/.htpasswd
<limit GET PUT POST>
require valid-user
</limit>

.htpasswd file

username:KqIwcN604eTMI

Last edited by robin99; 27th January 2007 at 22:06.
Reply With Quote
  #4  
Old 28th January 2007, 13:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

Please try to use the htpasswd command on the commandline to create a new password. Does the login work with this manually created password?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 28th January 2007, 18:44
robin99 robin99 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

OK i have managed to get it working. I had to change $go_info["server"]["password_hash"] = 'md5' as it was set to crypt. This was in the file /home/admispconfig/ispconfig/lib/config.inc.php
Reply With Quote
  #6  
Old 30th October 2007, 00:06
aqua aqua is offline
Member
 
Join Date: Mar 2006
Posts: 60
Thanks: 4
Thanked 3 Times in 3 Posts
Default

I am getting the same error as well. When I protect a directory, and I input the right password it will not let me in.

I looked in the .htaccess file and I found it puts in the following stanzas:

AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/web13/web/.htpasswd
<limit GET PUT POST>
require valid-user
</limit>


That is not the right location for the .htpasswd file as per how the system saves it, ISPconfig actually places it in /var/www/webxx/user/username/.htpasswd

I corrected the location. It now actually takes the password, but I am presented with a 403 Forbidden Error when I try to login.

Also, when logging in through the web-ftp, if you don't choose the right domain name, and proceed to login and protect the directory, ISPconfig will save the AuthUserFile variable to match the wrong domain you chose.
Reply With Quote
  #7  
Old 30th October 2007, 12:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
 
Default

It might be that the directory protection does not work for user websites. It is designed for the main website only.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 15:35
setup fails on debian 3.1 dtrumbower Installation/Configuration 7 7th March 2006 13:42
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 17:02
ISP install problems Debian sarge 3.1 lerra Installation/Configuration 1 5th January 2006 16:37


All times are GMT +2. The time now is 22:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.