How to restart litespeed in cyberpanel | restart litespeed cyberpanel?

How to restart litespeed in cyberpanel

CyberPanel is the only panel that comes with the OpenLiteSpeed and LiteSpeed Enterprise, both as well. CyberPanel is the first panel that started offering a LiteSpeed webserver. In the case of OLS, you need to restart the web server many times. So this is about restarting LiteSpeed cyberpanel.

Read a complete details guide for CyberPanel here.

Methode 1: Restart LiteSpeed CyberPanel Dashboard:

Cyberpanel provides a quick restart button for LiteSpeed whether you have the OLS or LSWS.

Login to your CyberPanel dashboard on port 8090 using your password and username.

Now go to the Manage Services ->Services Status

Here on the services page, you can see all of your active services you can now restart any service but in the first number, you can see LiteSpeed or open LiteSpeed and restart button in front of that just press that.

Restart LiteSpeed CyberPanel

Methode 2: Restart LiteSpeed From Terminal:

LiteSpeed provides you with very short and easy commands to restart stop and restart. Litespeed has its own commands as well and you can do anything using systemctl or service command.

  1. Start LiteSpeed:
    sudo service lsws start
    OR
    sudo systemctl start lsws
  2. Stop LiteSpeed:
    sudo service lsws stop
    OR
    sudo systemctl stop lsws
  3. Restart LiteSpeed:
    sudo service lsws restart
    OR
    sudo systemctl restart lsws
  4. Graceful Restart: A graceful restart allows LiteSpeed to restart without dropping existing connections.
    sudo service lsws reload
    OR
    sudo systemctl reload lsws

  5. Check LiteSpeed Status:
    sudo service lsws status
    OR
    sudo systemctl status lsws

LiteSpeed Specific Commands:

  1. Start LiteSpeed:
    usr/local/lsws/bin/lswsctrl start
  2. Stop LiteSpeed:
    /usr/local/lsws/bin/lswsctrl stop
  3. Restart LiteSpeed:
    /usr/local/lsws/bin/lswsctrl restart
  4. Graceful Restart:
    /usr/local/lsws/bin/lswsctrl restart -g
  5. Check LiteSpeed Status:
    /usr/local/lsws/bin/lswsctrl status
  6. Reload Configuration:
    /usr/local/lsws/bin/lswsctrl reload

Remember to adjust the paths accordingly based on your LiteSpeed installation directory. These commands assume a standard installation; however, it’s always a good idea to verify the specific paths on your system.

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 add your SSH key in CyberPanel?

In some cases, you need to change the SSH port and create and use an SSH key. Securing SSH is one of the most important tasks of a system administrator. CyberPanel allows you to change SSH ports, disable root login, and save your SSH keys. In his article, we learn about how to add your SSH key to the server using CyberPanel

Step 1: Login to the CyberPanel dashboard

Step 2: On the left side menu scroll down Click on the Security

Step 3: Go to the Security->Secure SSH

Now this page will be open. Here you can see the SSH port,permit root login

Step 4: Click on the SSh keys-> Add key

Step 5: After Clicking on the Add key you can paste your key and Click on save

Step 6: You can delete your key By clicking on the ‘X’ button Listed here

Step 7: You can also change your port and enable or disable the permit root login after changing these Click on Save changes

You can follow us on Facebook too.

We have an other article on this as well check here. For old version CyberPanel official guide is here.

How to update machine IP in CyberPanel?

Sometimes your provider updates the IP of your server but in CyberPanel you can access the CyberPanel using a new IP in the dashboard. The old IP is showing so here is a quick guide on how to update the machine IP in CyberPanel. In this case, you have to update the machine IP in cyberpanel.

Here is the IP you can understand from the picture.

machine IP in CyberPanel

Step 1. Login to your server SSH access and add the IP address username password and port. After entering the details Click on the login button at the bottom

Step 2. Click on the left-side menu new SFTP window

Step 3. You go to this page now and add the file name

/etc/cyberpanel/machineIP

Step 4. Open the machineIP file. Click on edit file.

Step 5. Here you can change the IP and save the file

Step 6. After saving the file Go to the terminal and Run the command on the terminal:

systamctl restart lscpd

Read more: How To Make A VPS Hosting Company?

How to Change CyberPanel Password?

Sometimes you need to change the CyberPanel password. So there are two methods to do so. One is to do from the UI and the other is from the terminal. So in this article, we will discuss How to Change CyberPanel Password.

Follow both methods as per your requirements.

Method 1: Change CyberPanel Password from the terminal:

You can change the cPanel password from the terminal. This password will be for the admin account. So basically you can change the CP admin password from the terminal. You can also see How to Change CyberPanel Port. To do so follow the steps:

  1. Login to your SSH using any SSH client like Bitvise.
ssh client like bitvise

2. Open the terminal from the SSH client and then run the command to change the CyberPanel admin password.

adminPass <new-password>
change the CyberPanel admin password.

Methode 2: CyberPanel Change Password using Dashboard:

  1. Login to your CyberPanel at port 8090 using your CyberPanel username and password.
  2. Just go to the User-> Modify User from the left side menu.
Methode 2: CyberPanel Change Password using Dashboard:

3. Now click the Generate button in the form of a password and then use that.

4. Just click the save button at the end of the process and use that password afterward.

FAQ about CyberPanel:

What is the username and password for CyberPanel?

Answer: By default CyberPanel username is admin and the password is 1234567 (not recommended to set default password).

How do I change my password on WordPress?

Answer: You can change the users from the WP admin dashboard and then modify that user.

How do I change my CyberPanel username?

Answer: Just log in to your CyberPanel and then modify the user.

What is the login URL for CyberPanel?

Answer: your login for CyberPanel will be https://<ip>:8090

You can follow us on Facebook too.

Also Read: Operating System for CyberPanel Installation | Best OS for CyberPanel Installation.

How to  Change Upload Limit for phpMyAdmin?

Step by Step procedure to Change upload limit for phpMyAdmin

Step 1. Access PhpMyAdmin from cyberpanel

Open the Cyberpanel Dashboard.
Go to Databases –> PHPMYADMIN

This will redirect you on the PhpMyAdmin.

Step 2. Check the Max PHP limit.

Go to the PhpMyAdmin dashboard
Click on the “Import“.
You will see the upload limit size.

Step 3. Check PHP version.

Open SSH terminal
Run Command “php -v” and you will get to know the PHP version.

Step 4. Change limit in cyberpanel

Open Cyberpanel dashboard.
Go to PHP–>Edit PHP configs
Select the PHP version 7.4 (which you found in your terminal)
Set the “upload_max_size” you want and save .
Then click on the RESTART PHP.

The upload size of PHP will be changed.
Go to the PHPMYADMIN dashboard you will see the changes will be done.

How to run a cron job in Linux?

There are a lot of tasks on the server and Linux level which you have to set and do regular bases and for that Linux offers you a cron job feature in this article we will learn How to run a cron job in Linux?

What is a cron job?

A cron job is a Linux utility that allows you to schedule a command or script to be executed automatically at a specified time and date. Cron is a daemon that runs in the background and checks a configuration file called a crontab for scheduled tasks. When a task is scheduled, cron executes the command or script specified in the task.

Cron jobs are commonly used to automate system maintenance tasks, such as backing up databases or log files, sending emails, and running system updates. They are also used to schedule recurring tasks, such as fetching data from a remote server or running a report.

To create a cron job, you need to create a crontab file and specify the time and date when the job should be run, as well as the command or script to be executed. The crontab file uses a specific syntax, which consists of five fields separated by spaces. The fields represent the minute, hour, day of the month, month, and day of the week when the job should be run. You can use asterisks to specify that the job should be run at any time within a given field. For example, an asterisk in the hour field means that the job will be run every hour.

How to run a cron job in Linux?

To run a cron job in Linux, you can use the crontab command to set up a cron job.

  1. Open a terminal and type crontab -e to edit the crontab file. This will open the crontab file in a text editor.
  2. Add a line to the file with the following format:
* * * * * command_to_execute

The asterisks represent the following:

  • The first asterisk represents the minute of the hour (0-59).
  • The second asterisk represents the hour of the day (0-23).
  • The third asterisk represents the day of the month (1-31).
  • The fourth asterisk represents the month of the year (1-12).
  • The fifth asterisk represents the day of the week (0-6, where 0 is Sunday).

For example, to run a command at 5:00 AM every day, you would use the following line:

0 5 * * * command_to_execute
  1. Save and close the crontab file. The cron job will now run at the specified time.

Note: The crontab file uses a specific syntax, and it is important to follow it carefully. The incorrect syntax can cause the cron job to fail. For more information about the crontab syntax, you can use the man crontab command to view the manual pages.

Read more: How to Choose a hosting provider smartly?

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 Change PHP CLI Version

Welcome back! Many of you are wondering how to change PHP CLI version. In this short article, we will be looking at this.

First, let’s check the current version of PHP. Type in the command:

php --version
PHP Current Version

As you can see, I am currently running PHP v7.4.25.

Change PHP CLI Version

Now let’s change our PHP version but first of we need to know what other versions we can use. To know that type in the terminal:

ls /usr/local/lsws/
Listing PHP Versions

We have four versions available i.e PHP 7.2, 7.3 7.4, and 8.0. I will be changing it to 8.0.

Now to do that, you need to copy the binary of the version you want to use to the user’s binary. Now type in the following command:

 cp /usr/local/lsws/lsphp80/bin/php /usr/bin/

Change the lsphp80 to any version you want and hit enter. After that, check the PHP version again and you’ll see the version is changed.

Changed PHP CLI Version

Read our other articles;

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.

Common Types of Client Side Errors

In this article, we are going to write a short detail about some common client side errors. Here we added a very short detail and a few errors.

Common Types of Client Side Errors

  1. 400 Bad Request Error
  2. 401 Unauthorized Error
  3. 404 Not found Error
  4. 403 Permisions Error

1. 400 Bad Request Error:

This error indicates that the user’s request contains incorrect syntax.
How to Fix 400 Bad Request Errors:

a. Check the Submitted URL
b. Clear Browser Cache
c. Clear Browser Cookies
d. File Upload Exceeds Server Limit
e. Clear DNS Cache
f. Deactivate Browser Extensions

2. 401 Unauthorized Error:

This error indicates that the requested file requires authentication (a username and password). Only authorized persons can access otherwise occur this Error.

3. 404 Not Found:

This error indicates that the page you were trying to reach on a website couldn’t be found on their server.
How to Fix 400 Bad Request Errors:
a. Reload the page
b. Check the URL
c. check the directory levels or root
d. Delete the browser cache and cookies
e. Contact the website

4. 403 Forbidden

This error indicates that the server will not allow the visitor to access the requested file. If a visitor receives this code unexpectedly, you should check the file’s permission settings, or check whether the file has been protected.

403 error

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 change Linux Server PHP version?

Some time the CLI or your server PHP version needs to change. Here in this article, we will discuss how to change Linux Server PHP version.

Welcome back! Many of you are wondering how to change the PHP CLI version. In this short article, we will be looking at this.

First, let’s check the current version of PHP. Type in the command:

php --version
change Linux Server PHP version

As you can see, I am currently running PHP v7.4.25.

Change Linux Server PHP version

Now let’s change our PHP version but first of we need to know what other versions we can use. To know that type in the terminal:

ls /usr/local/lsws/
Listing PHP Versions

We have four versions available i.e PHP 7.2, 7.3 7.4, and 8.0. I will be changing it to 8.0.

Now to do that, you need to copy the binary of the version you want to use to the user’s binary. Now type in the following command:

 cp /usr/local/lsws/lsphp80/bin/php /usr/bin/

Change the lsphp80 to any version you want and hit enter. After that, check the PHP version again and you’ll see the version is changed.

Changed PHP CLI Version

Read more: How to create, delete and manage Child Domains in CyberPanel?

Follow US on Facebook / Twitter Instagram .

How to Uninstall or Remove Broken Package in Linux?

Many times it happens that when you try to uninstall a package you encounter an error and the package cannot be uninstalled. This happens when the package is broken. To overcome this issue, we remove the post files of the package to make things work. in this article we are going to learn how to Remove Broken Package in Linux.

Recently, I was trying to remove the ImunifyAV package but encountered this error. E: Sub-process /usr/bin/dpkg returned an error code (1)

Uninstallation Error

Removing the Post Files

To fix this issue and remove the package successfully, we need to remove the post files manually for this package. But first, we need to see the files for this package. The installation files are usually located at /var/lib/dpkg/info file. Type in the following command and replace the package_name with the name of the package that you want to remove.

How to download Anydesk and how to install Anydesk

sudo ls -l /var/lib/dpkg/info | grep package_name
Remove Broken Package in Linux

In my case, I replaced the package_name with imunify-antivirus. This thing helps me to list all packages of imunify-antivirus. Now we need to remove these files manually. For that, type the command:

sudo mv /var/lib/dpkg/info/package_name.* /tmp

This will move all the post files to the tmp directory in case we need them back for any reason. Once the command executed to remove files. After doing that reinstall the package again without getting any errors.

Don’t forget to run the sudo apt update command after removing the files.

after doing all these just run commands to Remove Broken Package in Linux.

Command to Remove Broken Package in Linux:

$ apt unintsall <package-name> 

After doing all these steps you can run the uninstall command like this given above and get the required results.

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 dump Database without Password from Linux Command line?

In this article, I am going to explain How to dump Database without a Password from the Linux Command line?

As we know when someone wants to dump a database from the Linux command line they need a password for the database to dump it. Basically dumping database means exporting the database from the Linux command line.

In a normal way when you want to export a database you need a password for the database to do it. Here is the normal command to dump.

mysqldump -u [user name] -p[password] [database name] > [dump file]

But sometimes people don’t like to give passwords again and again. So here I will tell you how you can do the database dump using a password. To do so just follow the process along with me.

You have to do some configurations on the MySQL configurations to dump the database without a password. You have to set the root user database password in my.cnf file and you can dump a database without a password. To do so first login to your root ssh using an ssh client like bitvise, putty, etc.

Location of my.cnf is different in the case of different operating systems like in the case of Ubuntu it is /etc/mysql/my.cnf and in case of Centos it /etc/my.cnf.

You can open according to your operating system after logging in to root ssh.

How to dump Database without Password from Linux Command line?

No got to my.cnf simply run this command:

sudo nano /etc/mysql/my.cnf

After that paste, this code in the file

[mysqldump]
user=mysqluser
password=secret

user will be root and the password of your root MySQL user.

After doing this just restart MySQL or MariaDB and run any dump command

mysqldump -u root [Database naem] > /dbbackup.sql

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?

How to access MySql root user using the command line?

Often in the case of big databases or lack of user interfaces you need to do MySQL functions using the command line on your server. In this article, we will discuss How to access MySql root users using the command line?

We try to minimize this article as we can.

  1. Login to SSH using your credetial vis putty/bitvise etc.
  2. Now copy this comand and paste on your ssh terminal.
mysql -u root -p

After this terminal will ask for the root MySQL password provide a password to be processed.

In the case of cyberpanel Mysql root password location is. /etc/cyberpanel/mysqlPassword. use cmd to show.

cat /etc/cyberpanel/mysqlPassword

Read: How to connect CyberPanel with CyberPanel Cloud?

Read more: How to create, delete and manage Child Domains in CyberPanel?

Follow US on Facebook / Twitter Instagram .