How can i add more than one user who can access xampp direct

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How can i add more than one user who can access xampp direct

Postby alattal » 23. January 2009 21:52

Good evening , i'm a new user in xampp forum ; but I'm old in the use of xampp server :) !
i just have a question about xamppsecurity.php ( specifically : XAMPP DIRECTORY PROTECTION (.htaccess) ) !!
the xampp security page is allow me to add only one user who can access the xampp directory ..
but , how can i add more than one user who can access xampp directory ?
alattal
 
Posts: 12
Joined: 23. January 2009 20:52

Re: How can i add more than one user who can access xampp direct

Postby Izzy » 24. January 2009 02:22

alattal wrote:...the xampp security page is allow me to add only one user who can access the xampp directory ..
but , how can i add more than one user who can access xampp directory ?
I am assuming you have already set a password using the security page.

Look in the xampp\security folder for a file called .htpasswd(, or in my case it is called xampp.users), and remember this name - if you drag it into your text editor you will see your current user name followed by a string of seemingly random characters, which in fact is your password MD5 encrypted.

Now open a command prompt console window in xampp\apache\bin folder - I am also assuming you know how to do that but post back if not.

At the prompt type htpasswd -m C:\xampp\security\.htpasswd newusernamehere
( your path may be different to your .htpasswd or may be xampp.users like mine and you add your newusername where I have shown above)
You can also type instead htpasswd -bm C:\xampp\security\.htpassword newusername newuserpassword
Then you won't be asked separately for the password, like below.

Click Enter on your keyboard.

Next you will be asked for the password for your newuser at the prompt:
New password: (enter your password for your newuser)
Click Enter
Re-type new password: (again enter your newuser password)
Click Enter

It the should say at the prompt Adding password for (newusername) and return you the prompt again.

Close the console window.

Check the .htpasswd file again to see that you have 2 users with their encrypted password next to them.

You should now be able to login using either of the 2 user/password combinations but remember to close your browser to test logging in with the second user.

Let me know if the above is not clear please.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: How can i add more than one user who can access xampp direct

Postby alattal » 24. January 2009 08:58

Izzy wrote:Now open a command prompt console window in xampp\apache\bin folder - I am also assuming you know how to do that but post back if not.

are you mean cmd in start menu ? i tried it but it not respond to the command (htpasswd -m ) ..
i receive an error stating,'htpasswd' is not recognized as an internal or external command, operable program or batch file !
alattal
 
Posts: 12
Joined: 23. January 2009 20:52

Re: How can i add more than one user who can access xampp direct

Postby Izzy » 24. January 2009 09:06

Type cmd after going to start>Run...
Click OK
Type cd C:\xampp\apache\bin or your own path to xampp\apache\bin folder.
Click on Enter on your keyboard.

You should now have a prompt that looks like this:
C:\xampp\apache\bin>

Now just follow the instructions above. :)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: How can i add more than one user who can access xampp direct

Postby alattal » 24. January 2009 10:35

Nice! It work . thank you Izzy :wink:
alattal
 
Posts: 12
Joined: 23. January 2009 20:52

Re: How can i add more than one user who can access xampp direct

Postby Izzy » 24. January 2009 10:41

Your welcome.

Now you know how to do it just repeat the process for as many users as you need.

Good luck. :)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests