How to change or reset LiteSpeed Webserver admin password?

Sometimes you can’t remember your LiteSpeed webserver admin password and you want to login as an admin what can you do? In this article, I will show you how to change or reset LiteSpeed Webserver admin password through the root SSH client, in this guide I will show you the step-by-step procedure.

Reset the LiteSpeed Webserver admin password from the SSH terminal is just a few commands processes.

Step-1: Login to Root SSH

Open your root ssh client and log in then open the terminal

Login to Root SSH

Step-2: Change Directory

To change or reset the password you have to go to this directory /usr/local/lsws/admin/misc, so change the directory using this command:

cd /usr/local/lsws/admin/misc
Change Directory

Step-3: Reset LiteSpeed Webserver admin password

Once you changed the directory you can change the password. to change the admin password run this command:

./admpass.sh

Once you run the command it will ask you the username type the username (must be admin) and then press enter then it will show you an input password option enter the new password and then press enter it also requires you to retype the password, re-enter the password, and press enter. it will show you “Administrator’s username/password is updated successfully!”.

reset LiteSpeed Webserver admin password

Your password is changed now access webserver using these credentials at:

https://your_ip:7080

Here you can read How to log in to the Rainloop admin dashboard?

Read More: How to Change Upload limit On CyberPanel?

How to Change Upload limit On CyberPanel?

You can follow us on Facebook too.

How to resolve 404 error from website internal pages on LiteSpeed/Cyberpanel?

How to resolve 404 error from website internal pages on LiteSpeed/Cyberpanel?

Some time you face 404 error on all internal pages of your website. This often happened when you move your website from one server to any other or change any internal configurations. Here in this article we will tell you How to resolve 404 error from website internal pages on LiteSpeed Cyberpanel.

Without going deep let me tell you the reason for this. This happened due to the permissions or the rewrite rules. As after changes Open litespeed need a restart.

To resolve 404 error from website internal pages on LiteSpeed/Cyberpanel we just have to do 2 steps.

Steps to resolve 404 error from website:

1. Fix permissions.

Login to your cyberpanel on port 8090.

https://<YOURIP>:8090
cyberpanel login

Got to the website->list websites then click on Manage button present in front of your domain which have issue.

Manage Website
Manage Website

Scroll down and find file manager click on it and here you will find fix permissions button click that a green pop up appears.

fix permissions
fix permissions

2. Restart LiteSpeed Webserver

After doing all restart the Open liteSpeed webserver. You can do it two way one through command.

Systemctl restart lsws

.Or go to the Server status-> LiteSpeed status and press restart.

How to resolve 404 error from website internal pages on LiteSpeed/Cyberpanel?

Here you can read How to log in to the Rainloop admin dashboard?

Read More: How to Change Upload limit On CyberPanel?

How to Change Upload limit On CyberPanel?

You can follow us on Facebook too.

How to force redirect HTTP to HTTPS website in CyberPanel?

In this article we will tell you how to force redirect HTTP to HTTPS website in CyberPanel?

What is HTTP?

HTTP stand foe Hypertext Transport Protocol. When you enter http:// in your address bar in front of domain, it tells the browser to connect over HTTP. HTTP use TCP(Transmission control protocol), generally over port 80, to send and receive data packets over ther web.

What is HTTPS?

HTTPS stands for Hypertext Transfer Protocol Secure (also referred to as HTTP over TLS or HTTP over SSL). When you enter https://in your address bar in front of the domain, it tells the browser to connect over HTTPS. Generally sites running over HTTPS will have a redirect in place so even if you type in http:// it will redirect to deliver over a secured connection. HTTPS also uses TCP (Transmission Control Protocol) to send and receive data packets, but it does so over port 443, within a connection encrypted by Transport Layer Security (TLS).

Redirect from HTTP to HTTPS

if you forcefully redirect your website HTTP to HTTPS in Cyberpanel, you will need to add a rewrite rule to that website in order to have it automatically forward to HTTPS instead of HTTP.

In CyberPanel you can forcefully redirect HTTP to HTTPS website using rewrite rules.

To add this:

Force redirect HTTP to HTTPS website in CyberPanel:

  1. Select Websites on the left menu
force redirect HTTP to HTTPS website in CyberPanel

2. Choose the SSL enabled website from the list

force redirect HTTP to HTTPS website in CyberPanel

3. Select “Rewrite Rules” in the Configuration section

force redirect HTTP to HTTPS website in CyberPanel

4. Copy and paste the following code:

force redirect HTTP to HTTPS website in CyberPanel
rewriteCond %{HTTPS} !on
rewriteCond %{HTTP:X-Forwarded-Proto} !https
rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

5. Now just save your changes, and you’re done!

After doing this on OpenLiteSpeed you must have to restart your webserver. Beacuse OLS need to restart to read the rewrite rules properly.

How to add ZeroSSL on your site? Free SSL for your website?

Read More: How to Change Upload limit On CyberPanel?

How to Change Upload limit On CyberPanel?

How to create a New User in CyberPanel?

CyberPanel is next generation hosting control panel. CyberPanel is powered by LiteSpeed Technologies.

In CyberPanel you can create new users easily and allow them access so they can manage their website settings there.

CyberPanel allow three types of user access ADMIN, USER, and RESALLER. You can easily create new account of any type according to the requirement of user.

How to create a new user account in CyberPanel:

The process of creating user, admin and reseller account is same i will tell you where the difference is during creation steps.

Login to your cyberpanel using port 8090.

Step 1:

In left menu go to Users-> CREATE NEW USER or navigate to this URL

https://<Yourip>:8090/users/createUser
Login to your cyberpanel using port 8090

Step 2:

Now Provide the information that need to create new user:

  1. First Name
  2. Last Name
  3. Email
  4. Select ACL ( admin, reseller, user)
  5. Websites Limit (Put 0 for unlimited)
  6. Username
  7. Password (Press Generate for strong)
  8. Security Level (High or Low)
Now Provide the information that need to create new user:

Here in Select ACL you can create the admin, user or reseller permissions. Admin has access for every thing, reseller has less access then admin and at last user has some specific access.

Step 3:

After providing these required information press create a user and user is created successfully now you can see your user by navigating to USERS->LIST USERS. Or visit this URL

https://<your ip>:8090/users/listUsers
you can see your user by navigating to USERS->LIST USERS. Or visit this URL

How to create a staging or clone of the WordPress site from CyberPanel?

How to install OpenLiteSpeed on Centos?

Do you know how to install OpenLiteSpeed on Centos?

First of all, I would like to tell you that what is OpenLiteSpeed? I know most of you know that what is OpenLiteSpeed but it’s my habit to discuss things before going to deep. So OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise.

In this article, we will discuss step by step how to install OpenLiteSpeed on Centos.

How To Install OpenLiteSpeed:

First of all, you need to add the LiteSpeed repository to your centos. You can do it by using the following command.

rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm

Once you added the repository now you can install the OpenLiteSpeed on your server easily. To do so you have to run the command:

yum install openlitespeed

Now what? if you want to install any specific version of OpenLiteSpeed. In that case you can use this command:

yum install openlitespeed-x.x.x

Replace the x value with your required version. Like 1.6.5 or something. You can access the web server on:

http://your_ip:7080

Setup Administrator Password:

Now your LiteSpeed web server is installed. You have to set a password for the OpenLiteSpeed web server in order to access it. You can set the password by using this command:

/usr/local/lsws/admin/misc/admpass.sh

Use sudo if you don’t have root rights. you can also use this to change the OpenLiteSpeed web server password. When you run this command this will ask you User name [admin]: put admin here

OpenLiteSpeed web server password

And after that, it will ask for a password add a password and confirm that.

change OpenLiteSpeed web server password

Now your web server is go to go.

Some common commands for OpenLiteSpeed:

Here some common commands that you must need to know about the OpenLiteSpeed.

  1. To check the status of OpenLiteSpeed you can use this command.
Systemctl status lsws 

2. To stop the OpenLiteSpeed service use this command.

Systemctl stop lsws 

3. To start the OpenLiteSpeed service use this command

Systemctl start lsws 

4. To restart the OpenLiteSpeed service use this command

Systemctl restart lsws 

Directories and Logs for OpenLiteSpeed:

Now I think it’s very important to tell you about directories and logs of OpenLiteSpeed. Maybe you want to do some testing on it. Joke apart never try to do tests on anything you have not enough knowledge.

The default OpenLiteSpeed installation directory is: /usr/local/lsws

You can also start OLS using this command:

/usr/local/lsws/bin/lswsctrl start

You can also stop OLS using this command:

/usr/local/lsws/bin/lswsctrl stop

If you faced any error on OLS and want to find what is that then you can check the error log in /usr/local/lsws/logs/error.log.

Some more information about OpenLiteSpeed:

Well, the free version of LiteSpeed web servers. Although both OpenLiteSpeed and LiteSpeed ENT. are developed by the same developers. But there must be some difference between them. You can imagine a price thing and a paid thing must be different from each other.

OpenLiteSpeed has almost all the features that LiteSpeed Ent have. But there must be some difference. The main difference is OpenLiteSpeed requires a restart to load any new .htaccess file. While LiteSpeed Ent does this Automatically.

How to Install a WordPress Plugin?