• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

.htaccess

I

ilustrate

Guest
how do i use the protected directory icon to create an .htpasswd file for an .htaccess file? i'm used to using telnet but for some reason i cannot login using telnet. what do i have to enable. i'm the root administrator and i'm trying to protect a phpmyadmin directory for a clients website. how do i enable this? and which is easier, telnet or the protected directory option?
 
Using the Plesk Control Panel to password protect directories:

Assuming your /phpmyadmin directory is at:

/home/httpd/vhosts/domain.com/httpdocs/phpmyadmin

Then go into the Domain module
Click on the Protected Directories icon
Click on Add new directory
Enter the path /phpmyadmin
Select Non-SSL or SSL or both
Fill in optional Header text.
Click on Ok

Second part - create user/passwords

Click on the link /phpmyadmin
Click on Add new user
Fill in username
Fill in password
Fill in confirm password
Click Ok.

Repeat the second part for any additional user/pwds you desire.

Plesk does not store this info in .htaccess or .htpasswd files. Looks like they keep the auth file at:

AuthUserFile /home/httpd/vhosts/domain.com/pd/d..phpma

and ~/domain.com/conf/httpd.include:
<Directory "/home/httpd/vhosts/domain.com/httpsdocs/phpmyadmin">
AuthType Basic
AuthName "Login Required for phpMyAdmin"
AuthUserFile /home/httpd/vhosts/domain.com/pd/d..phpmyadmin
require valid-user
</Directory>

Note: Any changes you manually put into httpd.conf or httpd.include may be overwritten by Plesk without warning.
Better to use vhost.conf, vhost_ssl.conf, .htaccess for customizations.

If you prefer the .htaccess/.htpasswd method, then I would suggest that you switch to using SSH instead of Telnet. Once you login using SSH, it's just like connecting by Telnet, but secure! Then you can create your .ht* files as you used to.

See httpd://www.ssh.com
 
that method was just as quick as your response... thanks a lot. it worked fine...
 
Back
Top