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.
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 EnterRe-type new password:
(again enter your newuser password)
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.