This script will get as argument the file that may contain the IPs list and the reason of the whitelist in a second column. Something like this: This is the script itself: Now you need to save your list and your script. Let’s say that you will call your script whloader.sh and your whitelist, whitelist.txt. Continue reading
Author: codingpagemx
Clean backups and other files from a Web Hosting Server
Yes, you can simply find all the zip, tar, gzip and rar files and delete those, that would fix it. But are you sure you are not removing an important file for any of your customers or even from your server? This bash script will remove most known backup files without removing any other file, Continue reading
How do I get the total Users and Disk Space considering all cPanel all users?
These commands will also consider MySQL, email and public folders disk space for each user. Very useful when you need to migrate users or the whole server and you need to discard any disk space used by the operating system or backups:
Create a Virtual Machine on Virtuozzo – Command line
Let’s assume the hostname is gitlab.pagemx.com. This will add a Virtual Machike (KMV) with the following specs: You can edit the rest of the CPU settings manually:
Install ClamAV from cPanel via Command line
These commands will install ClamAV email antivirus integrated with cPanel. You must execute these commands as root. EDIT, Aug 28 2024: the binary check_cpanel_rpms now changeg to check_cpanel_pkgs starting from cPanel version 102 and up.
Installing r1Soft Agent Driver on CloudLinux 8
Make sure the traditional way is not working first: If this fails anyhow, you need to install the beta hcp driver. I was using CloudLinux 8.10 so the route for downloading was the following: https://beta.r1soft.com/modules/CloudLinux_8.10_x64/ You can get your current CloudLinux version by running this command: Run this command as well to get your current Continue reading
