CSF settings using vis SSH

Server Check
vi /etc/my.cnf

SSH/Telnet Check
vi /etc/ssh/sshd_config
UseDNS no

PHP Check
vi /usr/local/lib/php.ini
enable_dl = Off

Mail Check
vi /root/.forward
and add an email address.

VPS is extremely slow

Your server is extremely slow, hardly resolving, takes ages to load?

Increase the MTU (Maximum Transmission Units) value.
in other words: Increase the amount of data the server send in one burst.

Most chances is that you have to contact your service provider support to help you with this issue.

Locked out of WHM/cPanel

Most chances the Firewall is blocking your IP.

To solve the issue using the SSH:
Temporarily disable cPHulkd
/usr/local/cpanel/bin/cphulk_pam_ctl –disable

Access the WHM as you normally do, and ‘Flush All Blocks’
Home » Plugins » ConfigServer Security & Firewall

Then SSH to Enable the cPHulkd
/usr/local/cpanel/bin/cphulk_pam_ctl –enable

Odd symbol error on the website

If your website gives you an error that looks like this:
�?�c� 8�N

Chances are your theme index.php have a problem.
(In other words, You’ve been hacked!!)
Update/replace the index.php from a fresh theme download.

This will sort the issue.

You may want to consider changing the theme on the site as well to help prevent this in the future.
Go through the theme files, search for some odd files that should not be there..
In short, search for files that are not part of the theme core and delete them.

Server Inodes Issue

I have located the inodes on your server.
You will need to remove files from the directories below to have enough available inodes on the server:

(Sample of folders locations)
LEAVES 1674731 -> /var/spool/exim/input

DIR FILES 45837 -> /var/spool/exim/input/o
DIR FILES 44274 -> /var/spool/exim/input/O
DIR FILES 43111 -> /var/spool/exim/input/1

DIR FILES 12316 -> /var/spool/exim/msglog/y
DIR FILES 12210 -> /var/spool/exim/msglog/H

DIR FILES 14470 -> /home/usernameX/mail/new

SSH Finding specific file sizes using the “find” command

Below is the “find”command that looks for specific files in the “home” (i.e. /home ) directory.
The following script is finding files that are 500000k or larger.

# find /home -type f -size +500000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’

# find / -size +10M -ls
# find / -size +10M -size -12M -ls