1.888.294.UNIX
 

cPanel Extras...

Our shared web hosting packages are the ideal place for most small to medium sized web sites. We offer hosting packages that cater to both business and personal sites alike, and you'll find a wide range of features with our state of the art control panel.
There is a lot to look for when it comes to dedicated servers, all of which you will find right here with Network Data Center Host. In addition to our popular pre-built solutions, we offer exceptional custom built systems. We pride ourselves in our ability to custom configure a server to fit any clients needs.
Specializing in Midwest and Eastern clients looking for a Southern California server location, Network Data Center Host offers a variety of hosting solutions in the Orange County, California area. Multiple bandwidth providers to choose from, redundant and robust networks, all housed at a chilling 68 degrees(+/- 3).


 
Script Name: clear_exim_queue
Version: 1

Simple script that will clear the exim queue from the console
 
Script Name: chkphpbbver
Version: 0.1

This script will scan and find vulnerable versions of phpBB 2.0.x. The script was created after a nasty hole was discovered in phpbb which allowed a unauthorized guest to execute code on the server. This script has a few options, run the script with the --help argument to get a list of options.
 
Script Name: fixmailboxhardlinks
Version: 0.1

This script fixes a problem where /home/mail/user/inbox and /home/mail/domain/user/inbox are not linked to the same inode (hardlinked). The problem is that some times this link is broken and 2 separate inbox's are created leaving one of them just sitting there eating up resources. This script will do one of the following depending on which arguments you pass to it. One, Combine the 2 separate mailboxes and recreate the hardlink or Two, Delete the bad mailbox and recreate the hardlinks.
 
Script Name: portwatch
Version: 0.2

Portwatch counts the number of connections from a single ip to a specific port. This script is useful to see how many request are comming into somthing like apache/ftp/smtp/pop/imap/etc at that point in time from a single ip. Shows both UDP/TCP
 
Script Name: install_imagemagick
Version: n/a

Image Magick installation howto
 
Script Name: updateserial
Version: 0.01

Runs thru /var/named and updates the serial on all zones. Update format allows for just numerical increments or YYYYMMDDRR.
 
Script Name: forcelayer2
Version: n/a

Instructions to force layer2 to run (fix's problems some times)
 
Script Name: xmailandforward
Version: 0.1

This theme is a hacked up version of xmail. This theme was created because of customers who sell domain names wanted to give there clients the ability to setup a redirect or frame forward for there domain. This theme gives the cPanel user the ability to control mail account functions, and setup a Frame Forward or Redirect for there domain. To install this theme, download the tarball, log into the whm, under the theme section click install cPanel theme, select the tarball and your done. Just modify the user to use xmailandforward and your good to go.
 
Script Name: chkformmailver
Version: 0.1

This script was written because way too many people run versions of formmail which allow spammers to spam thru. This script scans your system, finds all *.cgi and *.pl files and looks for formmail. If it finds a formmail version in the script it pulls it and checks to make sure it's not vulnerable. This script gives you a cupple options, you can run it as a cron job and have the results emailed to you every night or you could also set the script to disable the insecure files (chmod 000 file). By default it prints the output to stdout.

Requires PerlMod File::Find::Rule
 
Script Name: cleanbackups
Version: 0.1

This script cleans up old backups. If some of you have noticed cpanel leaves backups of old accounts that have been terminated. This can comsume valuble space. This script runs thru /var/cpanel/users and compares those users with the cpanel backups. If it finds a backup that does not have a user in /var/cpanel/users it takes whatever action you told it to do (Report, or Delete). This script can be run from cron, this script also checks for cpbackup and sleeps until cpbackup stops.
 
Script Name: rebuildnamedzones
Version: 0.1

This script will rebuild all your /var/named/*.db files. It first pulls every client from /var/cpanel/users and grabs each users domain and ip address. It then pulls the first 2 nameservers from /etc/wwwacct.conf and rebuilds the zones to how they would be if you just setup this account.

 
Script Name: watchmysql
Version: 0.2

WatchMySQL is a script we wrote because some people out there where having problems with users abusing mysql and they could not figure out who it was. You should run this script in the background. It will connect into MySQL and stay connected. Every 10 minutes (default) it will check to make sure that the user has not gone over their concurrent connection limit. You can change the time/limits. As of version 0.2 the script has the ability to kill the users connections to mysql if they go over there limit.
 
Script Name: chkcpaccts
Version: 0.3

The main reason this script was written was to help admins keep track of domains that still pointed to a server that they where trying to move accounts off of. This script was also found useful because it helped find mistakes. Some sales/admins forget to remove accounts of canceled customers. Basically this script scans thru a db file and resolves each domain and makes sure it points to the correct ip. If it does not point to the right ip then it will let you know.

 
Script Name: fix404errors
Version: 0.1

Tired of seeing the 404.shtml cannot be found in the error_log? This script runs thru your system and creates 404.shtml for every user who doesnt have one. It also creates one in the cpanel3-skel dir. Depending on how many 404.shtml errors you get per sec this may help with cutting down some read/writes on your harddisk.
 
Script Name: whocompiled
Version: 0.1

Check .bash_history files to see if any of the users have used cc/gcc (the compilers). If they have, it show's you what they ran. If the .bash_history file doesn't exist then the script creates one. Main purpose of this script was just a quick way to scan for and see if any body is compiling something they shouldn't be. Any smart hacker will clear the .bash_history and cover there tracks or if they use another shell type.
 
Copyright 2005, Network Data Center Host, Inc. All rights reserved.