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?

Upgrade CyberPanel to any specific branch

Upgrade CyberPanel to any specific branch

Sometimes for some special patches and bug fixes, you need to upgrade Cyberpanel to any specific branch. Like you got any issue in the stable branch and the team announced that the issue is fixed in another CyberPanel branch then you have to move on that.

In this article, I will tell you the few commands to upgrade CyberPanel to any specific branch.

Upgrade CyberPanel to any specific branch

Step 1: Remove old script:

First, you have to remove the old script file to get new and upgrade. Use the command given below to do this.

rm -rf cyberpanel_upgrade.sh 

Step 2: Download specific branch script:

Now in the next step, you have to download the script for new branch you want to install using the command stated below.

wget https://raw.githubusercontent.com/usmannasir/cyberpanel/v<branch>/cyberpanel_upgrade.sh 

remove <branch> to your required branch name

Step 3: Give execute Permissions :

using the command stated below gives the upgrade command execution permissions.

chmod +x cyberpanel_upgrade.sh 

do all this in / or root directory and you must log in as root.

Step 4: Run upgrade script:

Now in the last step just run this command and wait when the system asks for the version give the branch version like “2.0.1-dev”

./cyberpanel_upgrade.sh

NOTE: Giving version is a must process and always give that

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 uninstall ImunifyAV from your server?

ImunifyAV is not suitable for every server and maybe sometimes you need to uninstall ImunifyAV from your server to work properly.

In this short article, I will try to explain how to uninstall ImunifyAV from your server using few commands. So follow the process along with me to remove imunifyAV from your server.

Step 1:

Access the SSH client as root of your server using credentials to your server. Like bitwise or Putty,

How to uninstall ImunifyAV from your server?

Step 2:

Stop the imunifyAV services using the command given below.

systemctl stop imunify-antivirus

Step 3:

Now download the imunifyAV script to uninstall the imunifyAV from your server. To download that scrip use the command.

wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh

Step 4:

Now run the uninstall script and remove the ImunifyAv from your server. use the command given below.

bash imav-deploy.sh --uninstall

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 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 .

How to resolve PHPMyAdmin blank page error CyberPanel?

How to resolve PHPMyAdmin blank page error CyberPanel?

Sometime after update you faced PHPMyAdmin blank page error CyberPanel. In this article i will tell you the shortest way to resolve PHPMyAdmin blank page error CyberPanel.

You have to do few steps to resolve this issue.

You have to load your default PhpMyadmin script and replaced it with the present script.

How to resolve PHPMyAdmin blank page error CyberPanel?

1.Login to SSH. Change directory to the phpmyadmin using this command.

cd /usr/local/CyberCP/public/phpmyadmin

2. Here you have one simple file and one the working config file. Rename the working config to the new file like config.inc.php.old using this command.

mv config.inc.php config.inc.php.old

3. Now rename simple file to the working file and try to access phpmyadmin from the CyberPanel.

mv config.sample.inc.php config.inc.php

Go to the PhpMyAdmin page of your CyberPanel and check now.

https://<ServerIp>:8090/dataBases/phpMyAdmin
How to resolve PHPMyAdmin blank page error CyberPanel?

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 .

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.

CyberPanel Features List

This article will discuss the CyberPanel features list. All the features discussed in detail. This CyberPanel features list has all the features CyberPanel has.

CyberPanel Dasboard:

After login, you come to the base page, which is the CyberPanel dashboard. On the dashboard, you can see a sidebar on the left side, in this sidebar you can almost the feature of CyberPanel. In the center of the page you see those feature buttons you can access these feature from the sidebar lists or you can access through these buttons. On the right, you can see the Resources bar here you can see CPU usage, Ram usage, and Disk usage in percentage, how much you used the resources.

compelet cyberpanel features list

This is the all I discuss above are belong to the base/dashboard page of CyberPanel. now I’m discussing the sidebar feature list one by one.

CyberPanel Features List details

Sidebar in CyberPanel Dashboard:

here is the whole sidebar or CyberPanel Dashboard, the Sidebar is divided into three section that is Overview, Main, and Server.

Overview

In the Overview section, there is the general information of your server,
On the Top, you can see the IP address(255.255.255.255) that IP is your server IP address.
The next button is the Dashboard button, after clicking on this button go to the dashboard.
The next button is version management, if you want to know about your CyberPanel version click on this button.
The last button in this section is Connect if you want to connect your server to the CyberPanel Cloud then click on this button

CyberPanel Dasboard:

Read More: How to Change Upload limit On CyberPanel?

Main

On the second section of the CyberPanel dashboard sidebar, you can see a lot of feature dropdown lists,

Users

This first feature is Users when you click on Users a dropdown list shown on your sidebar that has a lot more features.
View Profile, this feature shows your account details e.g Username, Account ACL, Email, etc.
Create New User, if you want to create a new user click on this button.
List Users, if you want to list all users of CyberPanel click on this button the all use show on your screen.
Modify Users, as the name shows, this button is for update/modify your user’s information.
Reseller Center, This feature issue the Reseller account.
Create New ACL, This feature is for Creating a new ACL (Access Control List)
Delete ACL, if you want to Delete ACL (Access Control List) this feature is for deleting.
Modify ACL, if you want to modify or update ACL (Access Control List) click on this.
API Access, Enable or disable via this button.


Main

Websites

On the Section, the whole information about your websites that you are deployed on this server.
Create Website, You can create a new website by clicking on the button
List Website, You can list you all website that are deployed on your this server
List Child Domains, if you want to List all Child domain you can view all by clicking on this button
Modify Website, if you want to update/Modify your website click on this button
Suspend/Unsuspend,
Delete Website, if you want to delete your website click on this button.

Websites

Packages

Packages on CyberPanel help you assign resources to an individual website, you must create at least one package before you start creating websites.
Create Packages, You can create a package according to your requirement.
List Packages, List all Packages.
Delete Package, Delete the packages you won’t need anymore.
Modify Package, If you feel the need to modify the parameters for the existing package you can do so via modify package page.

Packages

Database

On the Database, you can create, delete, list, and access your database
Create Database, if you want to create a new database click on this button
Delete Database, On this button, it will delete the database
List Database, On this button it will list the database after selecting the website
PHPMyAdmin, if you want to access your PHPMyAdmin click on this button.

Database

DNS

On this Button the whole information about DNS(Domain Name Server)
Create Nameserver, You can create a NameServer according to your requirement via this button.
Config Default Nameservers, Configure Nameserver via this Button
Create DNS Zone, Before you can use the “ADD/MODIFY DNS Records” page you have to create a DNS zone first, this is the first step to start using the DNS server.
Delete Zone, Once the DNS zone is created you can delete the zone using this button.
Add/Delete Records, Once the DNS zone is created you can add or delete records using this button.
Cloudflare, In version v2.0.0, CyberPanel has added the ability to synchronize DNS entries between Cloudflare and CyberPanel DNS on your own server

DNS

Email

In this section, you can create, list, delete email, etc,
Create Email,
if you want to create a new email then click on this
List Email, This button is for List all Email created on the website.
Delete Email, if you want to delete Email click on this button
Email Forwarding,
Change Password, if you want to update or change the password of your email click on its button
DKIM Manager, access DKIM manager through this button
Access Webmail, access Webmail(Rainloop) through this button

email

FTP


Create FTP Account, click on this button to create a new FPT account
Delete FTP Account, if you want to delete an FPT account click on this button
List FTP Accounts, This button is for List all FTP account

ftp

Backup

Taking complete backup of a website account is simple.
Create Back up, If you want to create a backup click on this.
Restore Back up, Backup restore only works with backups generated through the backup generation tool in CyberPanel.
Add/Delete Destination, if you want to Add or Delete Back up Destination click on this
Schedule Back up, if you want to schedule your website’s backup then click and produce.
Setup Google Drive, This feature is for Google drive one-click backup
Remote Backups, this feature is for Remote backup

backup

Incremental Back up

CyberPanel version v1.9.1 adds supports for incremental backups,  Local, SFTP, S3 backup
Create/Restore Back up, you can create a local or remote incremental backup.
Add/Remove Destinations, From this button, you can directly go to backup destinations.
Schedule Backups, if you want to schedule your website’s backup then click and produce.
Restore from Remote this feature is for Incremental Remote backup

incbackup

SSL


Manage SSL, If you want to Manage SSL click on this button and manage
Hostname SSL, If you want to issue Hostname SSL you can issue it via this button
MailServer SSL, this button is for Mailserver SSl

ssl

Server

The third and last section of CyberPanel sidebae is server.

Web Terminal:

CyberPanel v1.9.2 onwards has a web terminal (to access your server SSH). However, in some browsers, you might not be able to use Web Terminal with default self-signed SSL. In that case, just set up CyberPanel on SSL. Now access CyberPanel using that domain.

server

Cloudlinux

CloudLinux and CageFS is available with CyberPanel v.1.8.6, but before using any of its features, you need to convert your operating system to CloudLinux OS. Use the commands below to convert your server to CloudLinux OS.
Create Package,
List Packages,
Monitor Usage,

cloudlinux

Containerization

Containerization feature (v1.8.0 and above required, currently only CentOS is supported) offers to limit website resources and have no link to our Docker Manager feature. With containerization you can limit various system resources for a website, groups are used on the back end to enforce these limits. You can limit:

  1. CPU Usage.
  2. Memory Usage.
  3. Network Usage.
  4. Disk Usage (IO and IOPS)
Containerization

Docker Manager

CyberPanel gives you the ability to manage your Docker container and images the easy way. Some of the exciting features of CyberPanel Docker Manager:

  1. Search and pull images from Docker Hub (Along with tags).
  2. Prune the system.
  3. Create Container from available/pulled images.
  4. List and manage container that includes:
    1. Start/Stop Containers.
    2. View Logs.
    3. Export the file.
    4. View Processes inside the container.
    5. Delete Containers.
    6. Re-create containers.


Manage Images,
Manage Containers,
Create New Container,

Containerization

Tuning
LiteSpeed Tuning,
PHP Tuning,

tunning

Server Status

This feature is for check your server status and maintains it.
Top Processes, from this feature you can check Top process.
LiteSpeed Status, from this feature you can LiteSpeed status
CyberPanel Main Log File, from this feature you can check CyberPanel Mail log files
Services Status, from this feature you can check your servers Status
Change Port, if you want to change your port then this feature is for that
Package Manager, from this feature you can access your package manager

status

PHP


Install Extensions, if you want to install extensions e.g. redis etc extension you can install via this option
Eidt PHP Configes if you want to change or configure your PHP version or anything else then you can change from this option

php

Logs

This is main featuer of CyberPanel. if you want see your server log you can watch from the option you can see:
Server Mail,
Access Log,
Error Logs,
Email Log,
FTP Logs,
ModSec Audit Logs,

logs

Security

This feature is for your server security. there is a lot of more feature in this.
Firewall, you can stop, start, reload, and add/delete firewall through his option
Secure SSH, Securing SSH is one of the most important tasks of a system administrator. CyberPanel allows you to change SSH port, disable root login and save your SSH keys.
ModSecurity Conf, this feature is for ModSecurity configuration.
The ModSecurity Rules, if you want to add/remove update or anything else with ModSecurity Rule you can from this option
For the ModSecurity Rules Packs, you can check the ModSecurity Rule pack from this option.
CSF, You can configure CSF(ConfigServer Security & Firewall) from this button
CageFS, you can enable/disable CageFS from this button
Immunity 360, you can enable/disable Imunify 360 from this.
ImunifyAV, you can enable/disable ImunifyAV from this.

security

Mail Settings

This feature is related to your emails.
Mail Queue, If you want to see your mail Queue(pending mails) you can see.
Email Policy Server, this feature s for Email policy.
Email Limits, this feature is for email limits
SpamAssassin, you can Install SpamAssassin through this feature.
Email Marketing, this feature is for Email Marketing
MailScanner, If you want to install or remove MailScanner you can from this feature.

mail

Manage Services

This feature is related to your server Service and application that you can install and check status.
Applications, you can install and uninstall applications from this feature.
Manage PowerDNS, PowerDNS is the service you can check this form this option
And Manage Postfix, you can check postfix service form this option
Manage FTP, you can check FTP form this option

manage

Plugins

You can install new plugin and uninstall installed plugin from this feature.

plugin

This are the main CyberPanel features list.

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 time zone on Linux server using command line?

How to change time zone on Linux server using command line?

In this article, we will know How to change time zone on a Linux server using command line. This is a very easy and a few steps process so follow along to change your time zone according to your need.

The Time zone is the standard time for any specific region. The server time zone is a basic and one of the important things. Server time zone set while installing and setup server. Sometimes we need to change our server time zone according to our requirements. There are many ways but here we will go through command line one. This is one of the easy ways while using Linux.

How to check Current TimeZone of your server?

Before changing your server time zone first of all you must know what is the current time zone of your server to do so you just need to run a very simple command. This command is available in all Linux flavors.

open terminal and run:

$ timedatectl
How to check Current TimeZone of your server?

You can see your current time zone of your server.

2. Set / Change Time zone on Linux Server Using Command line:

Before changing your time zone first of all you must have to know about the time zone you want to set. Like if you want to set somewhere in Asia. you must have to know about your region and cit. Now, how you can do it.

For this there is a command to list all time zones:

$ timedatectl list-timezones
List all time zones

Select your required time zone from the list and add it to this cmd.

timedatectl set-timezone “you time zone”

Make sure that you are login from root account if not use sudo with this.

$ sudo timedatectl set-timezone <your specific time zone>
set time zone

After running this run the timedatctl again and verify if time zone updated or not.

$ timedatectl

Now you can see time zone that you set using above methode.

NOTE: Time zone is one of the core important things many features and services depend upon it so before doing anything make sure that you understood all. moreover, you just need a reboot to apply a new time zone on all servers.

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 Access Rainloop Webmail in CyberPanel?

A lot of CyberPanel user uses Rainloop to handle their email. Rainloop is an internal email solution with CyberPanel. Here in this article, we will discuss how you can access Rainloop webmail in CyberPanel?

Rainloop is an efficient memory webmail solution. it is a fast, simple, and modern web-based client email client. Rainloop is the email solution that comes with CyberPanel. It has an amazing user interface. Not only the interface also works great as any other email services.

This article is specifically about access rain loop webmail in CyberPanel.

Follow these steps Access Rainloop Webmail in CyberPanel:

Login you CyberPanel:

First of all, you need to log in to the CyberPanel dashboard. For this, you must have a username and password (admin or non-admin). Visit your the server IP or hostname with port 8090 to login to cyberpanel.

https://<ip/hostname>:8090
CyberPanel Login

2. Create and Email to Login:

Here you can read How to create email account. After creating mail keep these records so you can use to login.

3. Access WebMail:

To access webmail simple go to the Email->Access WebMail. you will be redirected to the link:

https://<IP/Hostname>:8090/rainloop/index.php

provide your email and password to login.

How to Access Rainloop Webmail in CyberPanel?
How to Access Rainloop Webmail in CyberPanel?

4. Rainloop Admin settings:

if you want to change Language, Layout, Default Text Editor, Message on Page, Notifications, etc settings. Login into rainloop admin dashboard and change there.

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 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 Uninstall Or Stop ImunifyAV?

What is ImunifyAV?

A lot of users install ImunifyAV but after some issue, if they want to uninstall they do not know how to do this. Here in this article, we will tell you How To Uninstall Or Stop ImunifyAV?

ImunifyAV – an intelligent antivirus and security monitoring tool for websites with one-click automatic malware cleanup, domain reputation monitoring, and blacklist status check. Read more about ImunifyAV

A lot of users install ImunifyAV but after some issue, if they want to uninstall they do not know how to do this. Here in this article, we will tell you How To Uninstall Or Stop ImunifyAV?

In this artical we provide the way where you can able to uninstall or Stop ImunifyAV.

Uninstall ImunifyAV:

To uninstall ImunifyAV, you need to first download the imav-deploy.sh script with the following command:

wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh

Then run this command to uninstall ImunifyAV from the server:

bash imav-deploy.sh --uninstall

Processing the above two steps you are able to uninstall imaunifyAY.

Stop ImaunifyAY:

ImunifyAV runs as a daemon so the service can be managed using the standard service management commands.

For CentOS/CloudLinux OS 6, run the following command:

service imunify-antivirus stop

For all other operating systems, run the following command:

systemctl stop imunify-antivirus

How to Change Upload limit On CyberPanel?