• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Password Protect Directory Cant Access!

D

devindull

Guest
I have tried to password protect our catalog/admin directories for our oscommerce websites. However, when I password protect it, I have to restart Apache for it to even pop up the box for the password. When I try to access it through that box, the username/password is invalid so I get the not authorized screen. Also, when I tried to delete the Password Protect to redo it, the only was to remove it was to delete the files using my FTP and then to restart Apache again. Any ideas on how to get this to work properly?
 
Having to manually restart Apache sometimes happens, Plesk is supposed to do this by itself, but there are other things which can cause Apache not to restart properly from the Plesk GUI.

When a directory is password protected, Plesk is supposed to put into that domain's httpd.include file, something like:
Code:
        <Directory "/home/httpd/vhosts/example.com/httpsdocs/test">
                AuthType Basic
                AuthName "Login Required for Test folder"
                AuthUserFile /home/httpd/vhosts/example.com/pd/d..test
                require  valid-user
        </Directory>
and supposed to create the appropriate file which will contain the username and password like:
Code:
cat d..test
user1:$1$mTx5ifeo$ITULwvLoyGO07YudTjHyv.
the password is encrypted/hashed (MD5?)

Please check to see that it is doing these things
 
I have a similar issue right now. My client is using Plesk 9.2 Linux on a GoDaddy private Server. I have set a password protected directory as per the documentation. The includes file IS created, as if the password file in pd directory. I have restarted the server, allowed it time, waited, tried again and again. I cannot get this to work. The login box appears as soon as I lock the directory, but the username/password are never accepted. If I have to, I'll manually lock it with htaccess, but I'd rather the client have the interface through plesk to add users and change passwords. Any thoughts?
 
Back
Top