Archive for the 'cPanel/WHM' Category

How to convert mbox to maildir for a single domain on a cpanel server

Written by anil on Thursday, September 27th, 2007 in cPanel/WHM.

Hi

WHM has a built in script to do this …  Here is the format …

/usr/local/cpanel/3rdparty/mb2md/mb2md -s /home/username/mail/domain.com/user/inbox -d /home/username/mail/domain.com/user/

As always take the backup of “/home/username/mail/domain.com/user/” before doing this. Please provide your feedback.

Cheers … :)
Anil

Create/generate deleted zone files for domains in cPanel

Written by anil on Sunday, September 23rd, 2007 in cPanel/WHM.

Hi

You accidentally deleted all zone files in /var/named?

I have created a script for generating zone files and its entries for /etc/named.conf for all the domains in /etc/userdomains. This script is harmless if you run it on "/root/named" rather than "/var/named". Please make a backup of "/etc/named.conf" and "/var/named".

Download:
http://rapidshare.com/files/57828712/cPanelZFG-tecpages.com.zip


Please provide your feed back on the script so that I can make this better ….

Thank you.

Cheers

Anil

mysqlcheck and myisamchk are used to check and repair tables (MYISAM Tables). They can help you keep your tables free from errors. If any errors occurred to MySQL database due to a server crash or by an unexpected MySQL service issue, those commands can be used to recover or repair your valuable MySQL databases. So what is the difference between mysqlcheck and myisamchk . . . :) mysqlcheck is a client program that communicate with the MySQL server over a network connection. To use mysqlcheck the MySQL server should be online. This also means that you can use mysqlcheck to repair a remote database. myisamcheck isn't a client program. It is a utility program that works directly on the files that represent MyISAM tables (.MYI files, inside MySQL database directory). You must need read write privileges on these files to use myisamchk.

When using myisamcheck on tables inside a database, the tables must not be accessed during the check. The safest method is to bring the server down during a myisamchk. Otherwise it will not give the results you are expecting.

Now the theory part is over … ;). Lets do some MySQL database repairing . . .

BEFORE PERFORMING OPERATIONS SPECIFIED IN THIS TUTORIAL PLEASE TAKE A BACKUP OF YOUR DATABASE

First mysqlcheck . . . By default if we doesn't provide any options mysqlcheck takes the first argument as the database name and check all the tables inside it. Example :- 

(more…)

Best easy how to for installing IONCUBE Loader

Written by anil on Thursday, June 21st, 2007 in php, Linux, cPanel/WHM.

The ionCube PHP Encoder and optional licensing system is the one-stop solution for protecting PHP source code and other files from prying eyes, theft and change. For more information please visit IONCUBE homepage Installation steps … First change the directory to

(more…)

How to uninstall whmreseller (Deasoft)

Written by anil on Thursday, June 21st, 2007 in Linux, cPanel/WHM.

Use this at your own risk … But this is the only way to uninstall it  … :)

Here are the steps …

First remove the whmreseller directory,

rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/whmreseller

Then cronjobs,

crontab -e

Remove the following jobs …
/usr/local/cpanel/whostmgr/docroot/cgi/whmreseller/wdmonitor >/dev/null 2>&1
/usr/local/cpanel/whostmgr/docroot/cgi/whmreseller/versionupdate2 >/dev/null 2>&1
/usr/local/cpanel/whostmgr/docroot/cgi/whmreseller/scripts/backupcron >/dev/null 2>&1

Finally remove the whmreseller link from WHM …

rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_whmreseller.cgi



Site Navigation