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!

Google Them 2013

In the new year 2013, GoogleThem.com has been providing google tips and tricks and more since November 2007, starting with an early version of WordPress MU (2.7) and now running WordPress 3.5!

The Hardware is freshly upgraded for the new year to a dedicated Xeon X3430 8 core, 32 Gigs of RAM, 1TB hard disk server.

301 Wildcard redirect for WordPress Multisite not working

Tip: Use Cpanel “Subdomains” instead of “Redirects”, read all about it by clicking to the details.

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.