• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

migration of .htpasswd users?

J

jtrefet

Guest
I have a protected directory that is not controlled by plesk. I want to have the directory controlled from within plesk but have a couple hundred users to add.

is thee any way to automate a migration from the .htpasswd file into the psa database?

any help would be greatly appreciated.
 
You may use API-CLI for automation. Adding user to the protected directory is as easy as

Code:
/opt/psa/bin/protdir -u /your-protected-dir -domain my.domain.com -add_user username -passwd password -passwd_type encrypted
 
Back
Top