Restore cPanel backup with restorepkg

cPanel Server

cPanel provides a built-in script called restorepkg, which simplifies the restoration of full account backups, including website files, databases, emails, and configurations. To restore a backup, run If you have multiple backup files and need to restore all of them, you can use the following command: If you want to save restore logs, use: Back … Read more

Install Memcached on cPanel Server

Login to WHM as user root, go to Terminal or login to SSH as user root. Then run the command yum install memcached Enable memcached to start on boot. systemctl enable memcached Configure memcached Default configuration on AlmaLinux 9 look like the following PORT=”11211″ USER=”memcached” MAXCONN=”1024″ CACHESIZE=”64″ OPTIONS=”-l 127.0.0.1,::1″ edit configuration file vi /etc/sysconfig/memcached Lets … Read more

How to change MySQL Datadir in Cpanel Server

MySQL MariaDB

If the disk partition that stores MySQL data directory runs out of disk space, you may need to consider moving the MySQL data directory to another partition. Before you do the MySQL data directory change, make sure you take a backup of all your databases using mysqldump. First, disable MySQL monitoring, so MySQL won’t auto … Read more

CageFS make Node.js available to all users by default

cloudlinux

On CloudLinux server, when you install alt-nodejs packages, binary files get installed at /opt/alt/alt-nodejs16/root/bin/node When SSH into a user and run the command “node”, it won’t work. When deploying Node.js application with Cpanel, you will be given a command, that is used to switch to the environment with specific version of node.js the application is … Read more

How to Benchmark Cpanel server

cPanel Server

Benchmarking a server helps to determine its performance score. By benchmarking a server, you can also compare its performance score with other servers. Benchmarking can also help identify any issues with the server that may be causing poor performance, such as faulty hardware or software. To benchmark a Cpanel Server, I will use Geekbench 5. … Read more

How to install ClamAV on cPanel Server

cPanel Server

ClamAV is a free open-source anti-virus software. On the Cpanel server, it can be used to scam emails and website files. To install ClamAV on the cPanel Server 1) log in to WHM as user root 2) On the Left menu, expand Cpanel > Manage Plugins Click on Install “ClamAV for cPanel” button. 3) After … Read more

How to install PHP 7.4 mcrypt module in Cpanel Server

cPanel Server

mcrypt is a PHP module, that was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0. mcrypt is removed from PHP, now it is available as a PECL module at https://pecl.php.net/package/mcrypt To install mcrypt on Cpanel Server, first, install libmcrypt-devel package with yum yum install -y libmcrypt-devel To install the module with PHP 7.4, run … Read more