Run rsync if not running using cronjob?
I want to rsync files from one server to another server every 5 minutes, but only want to start the rsync if the previous rsync command has finished. Time for…
How to Install memcached on CentOS Plesk Server
Install memcached daemon with command yum install Memcached Enable memcached to start on boot systemctl enable memcached Start memcached systemctl start memcached You can verify if memcached is running with…
Secure Memcached on CentOS/RHEL 7?
By default memcached on CentOS 7 is set to run on all IP address on the server. This allow attackers to abuse the service. To set memcached to only listen…
Cpanel find recently logged in users?
Finding last logged in cpanel users cat /usr/local/cpanel/logs/session_log | grep NEW | grep 'cpaneld' | awk '{print $1" "$6" "$8}' | tr -d '['
How to install PHP ssh2 module in Cpanel Server
PHP ssh2 module allows you to connect to SSH servers. On Cpanel servers, this module is not available under EasyApache. You need to install using PECL. The PECL module installer…
Allow CloudFlare IP addresses with ipset?
IP sets are a framework inside the Linux kernel, which can be administered by the ipset utility. Depending on the type, an IP set may store IP addresses, networks, (TCP/UDP)…
SolusVM: Cancelling stuck migrations
There is a rare bug which can occur with SolusVM, in which migrations will get stuck at 0% – no matter how much time passes, like so or if you…
How to enable jailed shell/SSH access to CPanel user using command line.
To enable jailed shell or SSH access to CPanel user. You can run below command. chsh -s /usr/local/cpanel/bin/jailshell username Kindly replace username with CPanel username. It will show output like…