This article explains how to alter a shared server account’s document root directory. The default document root directory for your account is /home/username/public_html, where username is your account username. However, you might want to use a different directory as the document root on occasion. For example, if you want to try out a new application […]
Category: Linux
Cpanel Shows Reporting wrong mails/directory size
In this tutorial, we will describe how to recover disk space by root or using cPanel. cPanel frequently reports an inaccurate value for the /mail/ directory in the cPanel->Disk Usage interface. The value returned by the shell in our test case is 310MB: root@web [/home/mmtest]# du -sh mail 310M mail root@web [/home/mmtest]# Using Root […]
5 Best Security Practices for OpenSSH Servers
SSH (Secure Shell) is an open-source network protocol for connecting local and remote Linux servers to transfer files, make remote backups, run remote commands, and perform other network-related tasks using the SCP or sftp commands between two servers connected over a secure network channel. In this article, I’ll show you some easy tools and strategies […]
How to Check if IP is blocked from IPtables
Iptables is an application that uses policy chains to allow or block traffic using the IP packet filter rules of the Linux kernel firewall. For example, to secure your server workloads, you can install this firewall on your Linux Dedicated or Virtual Server. If a user tries to connect to your server using SSH, iptables […]
How to Fix Cpanel/WHM quotas
If you enable Quota System Administration notifications in the Contact Manager interface (WHM >> Home >> Server Contacts >> Contact Manager), the system will notify you when it’s time to reboot and when the quota scan is complete and the quotas are operational. Quotas may be broken by CloudLinux™ 7 updates. As a result, you […]
How to Extend Swap Space using Swap file in Linux
Swap space is a specialized storage area on the disk that can be partitioned or stored as a file. When the Linux kernel needs to allocate more memory to processes, it uses swap space to move infrequently utilized processes or tasks. In some cases, our Linux computer may run out of swap space, in which […]
How to uninstall Cloud Linux and CageFS
Before Cloudlinux uninstallation, Please make sure to remove CageFS Run the below command to disable and remove all directories for CageFS: /usr/sbin/cagefsctl –remove-all Remove the CageFS RPM from the system: yum remove cagefs Remove ClouldLinux from your server with the following script: wget -O cldeploy http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy sh cldeploy -c The above script will remove the […]
Kubernetes error “context deadline exceeded”
The error “context deadline exceeded” implies that we ran into a situation where a given action was not finished in an anticipated timeframe. Generally, the issue occurs when Pods are stuck in Init status. The normal error looks as shown below: Warning FailedCreatePodSandBox 93s (x8 over 29m) kubelet, 97011e0a-f47c-4673-ace7-d6f74cde9934 Failed to create pod sandbox: rpc […]
How to Install wkhtmltopdf on cPanel/ Centos Server
show/hide wkhtmltopdf is an open-source command-line tool to convert HTML into PDF. It is widely used by applications to generate invoices and other pdf documents. for example, a python or PHP script will use it through its respective shell command to convert any URL to a PDF. The use is very easy, simple call wkhtmltopdf […]
How to install Security Advisor Addon on WHM/cPanel server
Security advisor is a very useful server security alert which is an open source addon for cPanel server. This addon collects security information from the server and displays it in a single page when you access security advisor within your cPanel. […]