Litespeed is a great web server which offers drop in replacement of Apache. Litespeed offers a better security and is generally more stable compared to Apache (standalone). Hence, it is why we utilise Litespeed on a number of our servers.
You may have come across this post as you have forgotten your admin login details for the Litespeed admin web interface.
Just FYI – you can access the Litespeed admin login page by: http://IP-ADDRESS:7080/login.php
As long as you have root (or the ability to elevate to root) SSH access, resetting the password is simple and will take you less than a minute!
Step 1 – Login to server via SSH.
Ensure you have root access.
Step 2 – Navigate to where Litespeed is installed.
By default, this is generally: /usr/local/lsws/admin/misc
# cd /usr/local/lsws/admin/misc
Step 3 – Change Litespeed password.
You can change the password by running the following command:
It will prompt you for the default password for the Litespeed web interface. By default, it is “admin” so you can simply press “enter”.
Next, it will ask you to enter the new admin password. Please use a secure password.
Once you enter the new password twice, it will tell you “Administrator’s username/password is updated successfully!”
Step 4 – Test the changes.
Try out the new password.
Step 5 – Leave a comment below or share.
If this helped you, or it does not work, feel free to leave a comment below and don’t forget to share.