Easy update Ioncube loader

For Apache server running CentOs:

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

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

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

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

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

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: http://www.webhostingtalk.com/showthread.php?t=873543

In my phpinfo screen, my server now says this:

mbstring

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

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 niagra.tapyourpower.com

http://www.ioncube.com/loaders.php

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

Follow instructions (place ioncube_loader_lin_5.4.so 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:

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”.

Posted in Server tips. No Comments »

R1Soft Restore mySql file from server from .frm no .sql file available

Posted in Server tips. No Comments »

Restore database using R1soft

Here’s how you’d properly restore myslq using r1soft.

1) Setup r1soft to connect to your MySQL instance and configure it to make mysql snap shots.

2) In the event a database and user are deleted:
2a) inside cpanel, create/recreate the usernameyou want to have access to the database
2b) restore the mysql data using r1soft
2c) from command line on the cpanel server run:
/usr/local/cpanel/bin/setupdbmap

(this will restore the database to the cpanel user account so it is visible)
2d) give the mysql user access to that database using cpanel
2e) restart mysql

3) In the vent you just want to roll data back:
3a) restore the data using r1soft
3b) restart mysql

Posted in Server tips. No Comments »

Command line for cpanel – restart whm cpanel server

from: http://cpanel.net/system-administrators/command-line-scripts/

Prefer Command Line to a GUI? You Can Access 98 Percent of WHM Functionality From the Command Line


Using one many automation scripts available in the /scripts folder, allows you to quickly configure, troubleshoot and execute powerful commands on your cPanel & WHM server by using one of the many automation scripts available in the scripts folder. Here are some of the more popular command line scripts available via cPanel & WHM:

easyapache
This powerful script allows you to compile, upgrade, and re-install Apache, PHP, and various modules. EasyApache makes it simple to run multiple PHP versions on your server and compile Apache and PHP modules.
check_cpanel_rpms
The check_cpanel_rpms script validates cPanel-managed RPMs and provides a way to reinstall these RPMs if they have been altered.
*up
The *up script is used to manually update the various services on your cPanel & WHM server using various forms such as mysqlup, phpup and eximup. Although you can configure your services to update with cPanel, *up can be used for finer control.
restartsrv_*
The restartsrv_* script can be used to manually restart the various services on your cPanel server. This is the recommended method for restarting services through SSH.
addpop
The addpop script can be used to add pop email addresses through SSH. Through interactive prompts, addpop will create the new address and set the email address password under the proper user account.
delpop
The delpop scripts can be used to remove email accounts through SSH. Similar to the addpop script, delpop will remove the email address from the proper account.
wwwacct
The wwwacct script can be used to create accounts for your cPanel & WHM server. We’ve made this script full-featured in that you can define all of the parameters for the new account as you would through WHM.
killpkg
The killpkg account can be used in similar fashion as the wwwacct script to automate removal of accounts.
restorepkg
The restorepkg script can be used to manually restore an account from backup.
cpbackup
The cpbackup script can be used to manually trigger system wide backups on your cPanel & WHM server.
pkgacct
The pkgacct script is used within the cpbackup script and can be manually executed to create specific account or system wide backups.
upcp
The upcp script can be used to trigger the update process on your server. You can also configure whether you want server software and the OS updated by the upcp script.
setupmailserver
The setupmailserver script allows you to switch between courier and dovecot, or disable POP3 and IMAP functionality altogether.
setupftpserver
The setupftpserver script allows you to switch between pure-ftpd and proftpd, or disable ftp functionality altogether.
setupnameserver
The setupnameserver script allows you to switch between bind and nsd, or disable nameserver functions altogether.
suspendacct
The suspendacct script can be used to automate suspension of accounts on your cPanel & WHM server.
unsuspendacct
The unsuspendacct script can be used to automate unsuspension of accounts on your cPanel & WHM server.

Using a combination of these scripts, you can automate tasks on your cPanel & WHM server to meet your specific hosting needs.