How to Reset the Litespeed admin Password
How to Reset the Litespeed admin Password?
Introduction
LiteSpeed Web Server provided by HostingHome, is a popular alternative to Apache and NGINX, known for its high performance, scalability, and easy integration with various control panels like cPanel and Plesk. One of the key components of LiteSpeed is the WebAdmin console, which allows administrators to manage server settings and configurations through a web interface. However, there may be instances where you forget or lose the WebAdmin password. Fortunately, resetting the LiteSpeed admin password is a simple process that can be done via the command line.
This guide will walk you through the steps required to reset the LiteSpeed WebAdmin password using command line tools.
Prerequisites:
- SSH access to the server where LiteSpeed is installed.
- Root or sudo privileges.
- Basic familiarity with command-line operations.
Step 1: Log in to the Server
Use SSH to log into your server as the root user or as a user with sudo privileges.
Step 2: Navigate to the LiteSpeed Installation Directory
LiteSpeed is usually installed in the /usr/local/lsws directory by default. Navigate to this directory:.
Step 3: Reset the Admin Password
To reset the WebAdmin password, you need to run the admin_pass script that comes with LiteSpeed.
The script will prompt you to enter a new username and password for the WebAdmin console:
Output
Please specify the user name of administrator.
This is the user name required to login the administration Web interface.
User name [admin]: adminPlease specify the administrator’s password.
This is the password required to login the administration Web interface.
Password: ********
Retype password: ********
Administrator’s username/password is updated successfully!
Step 4: Restart the LiteSpeed Web Server
Once the password has been updated, you’ll need to restart the LiteSpeed Web Server for the changes to take effect.
Step 5: Log in to the LiteSpeed WebAdmin Console
You can now log in to the LiteSpeed WebAdmin console using the new credentials. Navigate to:
Enter the username and password you created, and you should be able to access the WebAdmin interface.