Installing CSF (Config Server Firewall)

Download the latest version of CSF #   wget http://www.configserver.com/free/csf.tgz   Decompress the downloaded file #   tar -xzf csf.tgz Navigate to new folder #   cd csf Run installer #   sh install.sh Checking for the required modules #   perl /etc/csf/csftest.pl Enabling CSF #   csf -e Disabling CSF #   csf -x

Read More

Enabling/Disabling mailman service on cPanel

Command to check if the service is running #    ps -aufx | grep mailman Starting the service #   /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl start Stopping the service #   /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl stop

Read More

Clearing cached ram on a linux server

You can force the Linux OS to free up any stored Cached memory. First of all login to your server via SSH. To check the current ram statistics, run the following command:  #   free -mYou will get output similar to the following: [root@server ~]# free -m total used free shared buffers cached Mem: 7851 7763 […]

Read More

Backup/Restore cPanel accounts via SSH

First of all login to your server via SSH as the root user and for restoring an account, make sure that you have a backup available in one of the following locations or your backup location for example, /backupdisk:   /, /home, /home2, /home3, /root, /tmp, /usr, /usr/home, /var/tmp, /web To backup an account (in […]

Read More