How to reset the Plesk Admin password via Command Line
Introduction
If you forget the administrator password for Plesk, you can reset it directly from the command line using the built-in Plesk utility.
Prerequisites
Before proceeding, ensure:
- Root SSH access to the server
- Plesk installed on the server
- Basic knowledge of Linux command line
Implementation
Step 1: Login to the Server
Login to the server as the root user via SSH.
Step 2: Navigate to Plesk Admin Binary Directory
Run:
cd /usr/local/psa/admin/bin/
Step 3: Set the New Password
Execute the following command and replace newpass with your preferred password:
export PSA_PASSWORD='newpass'
Step 4: Reset the Admin Password
Run:
./ch_admin_passwd
This will reset the Plesk administrator password.
Verification
After the command completes successfully, login to the Plesk panel using the new password.
Conclusion
Using the Plesk password reset utility, administrators can quickly reset the admin password from the command line and regain access to the control panel.
