Password protection

Status
Not open for further replies.

kleiner0569

New Member
Messages
2
Reaction score
0
Points
0
Hello everyone,

I am having some trouble password protecting my website.

I go to the password protection option in Cpanel.

I set my website to be password protected and save it.

Then I create a user log in.

When I go to my URL the webpage loads asking for a username and password. When I put the username and password in, it tells me the log in is incorrect.

And yes, I am 100% sure I am entering my username and password correctly.

So, I need some help. lol.

Does anyone know how to password protect a website?

I should mention, before the server migration the password feature worked perfectly fine. Since the migration I can not get it to work.

Your time and help is greatly appreciated.
 

jjordan69

Member
Messages
224
Reaction score
2
Points
18
One error that has been seen with server updates is 'Prems' for folder [ .htpasswds ] which
will keep you from logging in to a password protected folder

Be sure Prems (permissions) for folder [ .htpasswds ] is 0755 and NOT 0750

You can see (and change) Prems in cPanel's [ File Manager ]

Be sure to check [ Show Hidden Files... ] before you start [ File Manager ]

When in [ File Manager ] click on [ /home/... ] top left side

You will see Prems down the far right hand side

Click on the 'folder' icon for file [ .htpasswds ]

At the top of page click on [ Change Permissions ]

Set it to [ 0755 ]
 
Last edited:

kleiner0569

New Member
Messages
2
Reaction score
0
Points
0
Ok, I found the .htpasswds folder, it was set to 0755.

A folder in .htpasswds called Public_html was also set to 0755.

A folder with my website name was in that folder and that was set to 0644.

I changed that to 0755 and then set the password protection. Again, when visiting the website, it asks for a username and password but will no accept the log-in.

Do you know of any other tricks?

Thank you for your help!
 
Status
Not open for further replies.
Top