How to restart litespeed in cyberpanel | restart litespeed 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.
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.
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.
Start LiteSpeed: sudo service lsws start OR sudo systemctl start lsws
Stop LiteSpeed: sudo service lsws stop OR sudo systemctl stop lsws
Restart LiteSpeed: sudo service lsws restart OR sudo systemctl restart lsws
Graceful Restart: A graceful restart allows LiteSpeed to restart without dropping existing connections. sudo service lsws reload OR sudo systemctl reload lsws
Check LiteSpeed Status: sudo service lsws status OR sudo systemctl status lsws
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.
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
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.
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:
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:
Login to your SSH using any 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>
Methode 2: CyberPanel Change Password using Dashboard:
Login to your CyberPanel at port 8090 using your CyberPanel username and password.
Just go to the User-> Modify User from the left side menu.
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
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.
Open a terminal and type crontab -e to edit the crontab file. This will open the crontab file in a text editor.
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
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.
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
400 Bad Request Error
401 Unauthorized Error
404 Not found Error
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.
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)
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.
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.