Use these commands to remove the entire exim mail queue from centos running cpanel. service exim stop cd /var/spool/exim find input -type f -exec rm -rf {} \; find msglog -type f -exec rm -rf {} \; service exim restart
Archive | CPanel
Find all files modified on a certain date or between dates on Cpanel CentOS Linux
Recently we had a site that was hacked and we needed find all of the files that had been modified on a certain date. We used this Linux Find command to find and list the files modified between May 19-21, 2015: find /home/mysite/public_html -newermt 2015-05-19 ! -newermt 2015-05-21 -ls .
Using a custom php.ini when using FAST CGI (fcgi) in Cpanel WHM
When using FastCGI (FCGI) as the loader for PHP, traditional php_values in the .htaccess file as well as custom php.ini files in the public_html directory no longer work. Instead we must create a wrapper for the main FCGI binary that causes the php.ini to be loaded from it’s current working directory instead of the server-wide one. […]
Linux CentOS CPanel find file in directory
Command to search a directory for a file in a Linux CentOS CPanel server: find -name “query”
CPanel Centos how to extract one directory from a TAR backup
This command will extract one directory from a CPanel backup TAR file tar -xvf mysite.tar.gz mysite/homedir/public_html/directory