Fix Heartbleed bug by quick update for openSSL on apache

Posted on April 13, 2014 by admin.
Categories: Apache Server Tips, Linux tips and tricks, Server tips.

yum update openssl* -y
This will update openSSL to the newest version for apache on CentOS

To check your server to see if it’s vulnerable to the Heartbleed bug:

Locked out of my own firewall

Posted on October 28, 2013 by admin.
Categories: Apache Server Tips, Server tips.

CSF is the first culprit if you are locked out of your own server firewall after too many failed login attempts from a certain IP.

The block was in your firewall, not cpHulk.
The IP was listed in /etc/csf/csf.deny and /var/lib/csf/csf.tempip and /var/lib/csf/csf.tempban
You can whitelist the IP in your firewall by placing the IP in /etc/csf/csf.conf, then running csf -r

Next you can place your external IP in the whitelist of cPHulk:

WHM > Security Center > cPHulk brute force protection > White/Black list > Quick Add your current external IP to: White List (Trusted IP List)

To find your external IP:

Easy update Ioncube loader

Posted on September 23, 2013 by admin.
Categories: Apache Server Tips, Server tips.

For Apache server running CentOs:

yum update ioncube
ioncube -v
php -v
/scripts/phpextensionmgr install IonCubeLoader
php -v

OS X flush dns

Posted on August 23, 2013 by admin.
Categories: OS X tips.

sudo killall -HUP mDNSResponder this works for OS X Mountain Lion or Lion

SMTP Reverse DNS Mismatch Warning – Reverse DNS does not match SMTP Banner

Posted on May 9, 2013 by admin.
Categories: email tips, Server tips.

This alert on an SMTP check on Mxtoolbox is trivial.

It could be because your outbound (sending) mail server is blocking un-authenticated port 25 use by spammers. Instead you can authenticate (login) on port 487 to send email.

This from Mxtoolbox:

“Also, the banner mismatch is just a warning. There’s nothing that says that having a mismatch (or no hostnme in your banner at all) will cause you to have difficulty sending or receiving mail, it’s really more of a best practice.”

If you cannot login with SFTP or SSH but can login with FTP and WHM and Cpanel

Posted on April 26, 2013 by admin.
Categories: Apache Server Tips, Server tips.

This is likely that you need to restart the SSH service. SFTP uses SSH not FTP.

“I just had to restart the SSH service from WHM

Sometimes, SSH will crash

If it does, just login to WHM and restart SSH”

Enable GD support in PHP

Posted on April 7, 2013 by admin.
Categories: Apache Server Tips, Server tips.

In default cPanel/WHM installation GD support in PHP is disabled. You can enable using the following simple steps:
1. Login to WHM as root;
2. Go to WHM >> Main >> Software >> Apache Update
3. Click on the “Load Previous Config” button (if exists);
4. Select “GD” option and any other PHP option you may need;
5. Uncheck the “Skip Apache Build if up to date” option;
6. Click “Start build” button at the bottom of the screen and wait 15-30 minutes.

StripeXS addon fails with white screen in WHMCS when viewing info

Posted on April 5, 2013 by admin.
Categories: Apache Server Tips, Server tips.

This usually means that the server doesn’t have the php-mbsting enabled.

When rebuilding Apache with Easy Apache, on step 6 (exhaustive options), scroll down and check php-mbstring.

Then let it compile as usual.

Mine had an alert near the end of the make process “No package php-mbstring available.
Error: Nothing to do”

However it fixed the problem!

Another way to enable php-mbsting is manually run in SSH shell as root:
“yum -y install php-mbstring”, then “service httpd restart”
Mine couldn’t find php-mbstring, but that’s probably just a matter of adding the right repository to yum.
More info on this here:

In my phpinfo screen, my server now says this:


Multibyte Support enabled
Multibyte string engine libmbfl
HTTP input encoding translation disabled

mbstring extension makes use of “streamable kanji code filter and converter”, which is distributed under the GNU Lesser General Public License version 2.1.

ionCube loader fails after update of PHP Apache config

Posted on April 4, 2013 by admin.
Categories: Apache Server Tips, Server tips.

If WHMCS fails to run after updating PHP and Apache with a fail message about ionCube loader:

Go here and download the right loader – Linux (x86-64) for

Install the loader-wizard.php file on the serv er public_html and run it.

Follow instructions (place and it’s related files in the right directory, edit the /usr/local/lib/php.ini file to include the ioncube loader, restart apache and click the test loader link in the wizard.
All should be set now, WHMCS will run!

R1Soft to change the number of backups to be kept:

Posted on March 26, 2013 by admin.
Categories: Server tips.

To edit the number of backups to be kept:

Click Policy.
Click the Edit option to the right of the policy.
Click the Data Retention Tab.
You should be able to edit this value: “Number of Recovery Points to Retain”.