Monday, 18 July 2011

Shell script - Logged in mail

This is the script used to send email when any user logged in to the Linux server.

Step 1 : Login to the server
Step 2 : vi .bash_profile
Step 3 : Copy paste the script below

echo 'ALERT - Root Shell Access (root@IP ADDRESS) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" hemanthpresence@gmail.com

Step 4 : Save and exit
Step 5 : Now log out and login to the server. You will receive an mail to "hemanthpresence@gmail.com".

Note: Change the email ID and the IP ADDRESS to yours.

Wednesday, 13 July 2011

Server load and reduction methods

Linux, Windows, PHP, MySQL, cPanel, Plesk , etc and their fixes: Server load and reduction methods

Server load and reduction methods

How to check the server load and methods to reduce it?

Methods to check:

1) bash12:~$ w
 11:31:50 up  9:15,  8 users,  load average: 0.81, 0.90, 0.91

2) bash12:~$ top -c
Tasks: 144 total,   2 running, 141 sleeping,   0 stopped,   1 zombie
Cpu(s): 28.7%us,  3.0%sy,  0.0%ni, 68.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:    994376k total,   934952k used,    59424k free,    30228k buffers
Swap:  1389580k total,    22568k used,  1367012k free,   385788k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                  
 8835 hemanth.  20   0  411m 231m  31m R 24.2 23.9  35:23.63 /usr/local/firefox/firefox-bin                                                                           
 6486 root      20   0  117m  74m 9.9m S  5.6  7.6  24:29.87 /usr/X11R6/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7                           
 7037 hemanth.  20   0 40340  18m  10m S  1.3  1.9   0:47.87 gnome-terminal                                                                                           
10025 hemanth.  20   0  5480 2212 1644 R  1.0  0.2   0:00.08 top -c     

3) MySQL connections
root@host # mysqladmin proc
+----------+------------------+-----------+-------------------+----------------+------+--------------------+------------------+
| Id       | User             | Host      | db                | Command        | Time | State              | Info             |
+----------+------------------+-----------+-------------------+----------------+------+--------------------+------------------+
| 257799   | sgfishes_fishmar | localhost | sgfishes_fishmart | Sleep          | 0    |                    |                  |
| 34102304 | DELAYED          | localhost | technoph_sethwee  | Delayed insert | 3    | Waiting for INSERT |                  |
| 34104667 | technoph_sethwee | localhost | technoph_sethwee  | Sleep          | 2    |                    |                  |
| 34104674 | lancermo_vb      | localhost | lancermo_vb       | Sleep          | 0    |                    |                  |
| 34104675 | root             | localhost |                   | Query          | 0    |                    | show processlist |
+----------+------------------+-----------+-------------------+----------------+------+--------------------+------------------+
4) To check the http connections
root@host [/]# pidof httpd
30457 23992 23660 23659 23658 23657 23656 23655 10035 10028

5)  root@host [~]# uptime
 14:09:07 up 159 days, 23:39,  2 users,  load average: 0.30, 0.44, 0.44


1 )netstat -plan | grep :80 | awk '{print $5}' | cut -d: -f 1 | sort | uniq -c | sort -n
2) netstat -plan | grep :25 | awk '{print $5}' | cut -d: -f 1 | sort | uniq -c | sort -n
3) pstree -paul
4) cd /tmp
5) rm -f dos-* sess_* .spamassassin*
6) find . -user nobody -exec rm -f '{}' \;
7) ps -C exim -fH ewww
8) ps -C exim -fH eww |grep home
9) netstat -ntu | grep ':' | awk '{print $5}' | awk '{sub("::ffff:","");print}' | cut -f1 -d ':' | sort | uniq -c | sort -n
10) mysqladmin proc |grep Sleep |awk {'print $4'}|cut -d_ -f 1|sort|uniq -c|sort -nk 1
11) ps -C exim -fH ewww
12) for i in `ipcs -s | awk '{print $2}'`; do (ipcrm -s $i); done
13) for i in `mysqladmin proc |grep Sleep |cut -d " " -f 2`; do mysqladmin kill $i; done
14) exim -bp |grep "*** frozen ***" |awk '{print $3}' |xargs exim -Mrm
15) exiqgrep -z -i | xargs exim -Mrm;exiqgrep -o 432000 -i | xargs exim -Mrm



Tuesday, 12 July 2011

cPanel-Account creation failed

Account Creation Status: failed (Your system has run out of available ip addresses, or you do not have permission to use any more ip addresses. (Unable to find an ip address.) )

You receive the “Account Creation Status: failed” error message while adding a domain from WHM >> Account Functions >> “Create a New Account” option which states that there is no free IP address to assign to your new domain.
The package you are using while adding a domain has the “Dedicated IP” option enabled which searches for a free IP on the server and tries to assign to the every new domain you create. To overcome the issue, you will have to deselect the “Dedicated IP” option from the package which can be achieved via ssh.
Edit the package file located under /var/cpanel/packages
# vi /var/cpanel/packages/packagename
Search for
IP=y
and replace it with
IP=n

Friday, 8 July 2011

Windows command line

Very few people know command line tools used in windows. So this is a little contribution for those.


  • at (windows XP/2000)
    Scheduling utility.
  • bootcfg (XP only)
    This utility allows you to set up your boot options, such as your default OS and other loading options.
  • cacls (XP, 2000, & NT4.0)
    Changes the ACLs (security Settings) of files and folders. Very similar to chmod in Linux.
  • comp (XP & 2000)
    This utility is very similar to diff in Linux. Use the /? switch to get examples of command usage.
  • contig (works with NT4.0 and newer)
    A great defrag utility for NTFS partitions.
  • control (XP only) - unpublished!
    Allows you to launch control panel applets from the command line.
control userpasswords2, for example will launch a helpful local user admin utility.

defrag (XP only - NT4.0 and Win2k use contig)
  • Yes, XP comes with a command line disk defrag utility. If you are running Win2k or NT4.0 there is still hope. Contig is a free defrag program that I describe on the defrag page.
  • diskpart (XP only)
    Use this command to manage your disk partitions. This is the text version for the GUI Disk Manager.
  • driverquery (XP only)
    Produces a list of drivers, their properties, and their versions. Great for computer documentation.
  • eudcedit (XP only) -
unpublished!
Private Character editor. Yes with this program built into Windows XP you can create your own font!
  • findstr Find String - similar to Linux's Grep.
  • fsutil (XP only) - unpublished!
    This is a utility with a lot of capability. Come back soon for great examples.
  • getmac (XP & 2000)
    This command gets the Media Access Control (MAC) address of your network cards.
  • gpresult (XP & 2000)
    This generates a summary of the user settings and computer group policy settings.
  • gpupdate (XP only)
    Use this utility to manually apply computer and user policy from your windows 2000 (or newer) domain.
  • ipconfig (XP, 2000 & NT4.0)
    This handy tool displays IP settings of the current computer and much more.
  • MMC (XP, 2000 & NT4.0) - Microsoft Management Console
    This is the master tool for Windows, it is the main interface in which all other tools use starting primarily in Windows 2000 and newer systems.
  • more
    Utility used to display text output one screen at a time. Ex. more c:\windows\win.ini
  • msconfig (XP only)
    The ultimate tool to change the services and utilities that start when your Windows machine boots up. You can also copy the executable from XP and use it in Win2k.
  • msinfo32 (XP &smp; 2000)
    An awesome diagnostic tool. With it you can get a list of running processes, including the residing path of the executable (great for manually removing malware) and get detailed information about hardware and system diagnostics.
  • narrator (XP only)
    Turns on the system narrator (can also be found in accessibility options in control panel). Will will allow your computer to dictate text to you.
  • netsh (XP & 2000)
    A network configuration tool console. At the 'netsh>' prompt, use the '?' to list the available commands and type "exit" to get back to a command prompt.
  • netstat (XP)
    A local network port tool - try netstat -ano.
  • nslookup (all)
    A DNS name resolution tool.
  • openfiles (XP Only)
    Allows an administrator to display or disconnect open files in XP professional. Type "openfiles /?" for a list of possible parameters.
  • Pathping (XP & 2000)
    A cross between the ping and traceroute utilities. Who needs Neotrace when you can use this? Type "pathping " and watch it go.
  • recover (XP & 2000)
    This command can recover readable information from a damaged disk and is very easy to use.
  • reg (XP & 2000)
    A console registry tool, great for scripting Registry edits.
  • sc (XP & 2000)
    A command line utility called the Service Controller. A power tool to make service changes via a logon/logoff or startup/shutdown script.
  • schtasks (XP only)
    A newer version of the AT command. This allows an administrator to schedule and manage scheduled tasks on a local and remote machines.
  • secedit (XP & 2000)
    Use this utility to manually apply computer and user policy from your windows 2000 (or newer) domain. Example to update the machine policy: secedit /refreshpolicy machine_policy /enforce
    To view help on this, just type secedit.
    NOTE: In Windows XP SP1 and news, this command is superceded by: gpupdate /force
  • sfc (XP & 2000)
    The system file checker scans important system files and replaces the ones you (or your applications) hacked beyond repair with the real, official Microsoft versions.
  • shutdown (XP & 2000)
    With this tool, You can shut down or restart your own computer, or an administrator can shut down or restart a remote computer.
  • sigverif (XP only)
    Microsoft has created driver signatures. A signed driver is Microsoft tested and approved. With the sigverif tool you can have all driver files analyzed to verify that they are digitally signed. Just type 'sigverif' at the command prompt.
  • systeminfo (XP only)
    Basic system configuration information, such as the system type, the processor type, time zone, virtual memory settings, system uptime, and much more. This program is great for creating an inventory of computers on your network.
  • sysedit (XP/2000)
    System Configuration File Editor. An old tool that was very handy for the Windows 9X days. msconfig is what you want to use now.
  • tasklist (XP pro only)
    Tasklist is the command console equivalent to the task manager in windows. It is a must have when fighting scumware and viruses. Try the command:
    tasklist /svc
    to view the memory resources your services take up.
  • taskkill (XP only)
    Taskkill contains the rest of the task manager functionality. It allows you to kill those unneeded or locked up applications.
  • tree (XP & 2000)
    An amazing experience everyone should try! This command will provide a 'family tree' style display of the drive/folder you specify.
  • WMIC (XP & 2000)
    Windows Management Instrumentation Command tool. This allows you to pull an amazing amount of low-level system information from a command line scripting interface.

Thursday, 7 July 2011

Rvsitebuilder- How to import projects of "RVsitebuilder" from one server to another

I have moved my domain to new hosting company. I used RVsitebuilder to create my domain in my old hosting provider. After the migration, my domain gives me lot of errors saying that "unable to fetch the file from RVsitebuilder". I need to download the project from my old server. Can any one help me to fix the issue?


Solution:

*Old server details*
Domain:       hemanthworld.com
Username:   hemanth
Password:   qweqwe
IP address:  1.1.1.1
CP:              cPanel

*New server details*
Domain:       hemanthworld.com
Username:   hemanth
Password:   123123
IP address:  2.2.2.2
CP:              Cpanel

1) Login to your server backend.

2) Go to the home directory of your domain.
   - my home dir is /home/hemanth/

3) Now download your RVsitebuilder project from the old server.
   - You can download in any ways. I used ftp download
   - Syntax: wget -r ftp://USERNAME:PASSWORD@IPADDRESS/.rvsitebuilder
   - wget -r ftp://hemanth:qweqwe@1.1.1.1/.rvsitebuilder
   - All the rvsitebuilder files will be downloaded.

4) Check the Rvsitebuilder location.
   - /home/hemanth/.rvsitebuilder

5) You can verify the available projects in WHM.
   - Go to WHM > Plugins >> RVsitebuilder >>> Recovering Project user list
   - We can see username hemanth > 5asd5a65a65ad2a2a6 (This means your RVsitebuilder project is available)
   - In case, if its not listed here. Then check the ownership of the directory and files of .rvsitebuilder
  
6) Now login to your cPanel

7) Go to RVsitebuilder

8) You can see pending projects list.

9) Just select all the projects and click OK

10) Finish, Now your your project is imported.

Note: In case if you have made the domain to be addon domain in the new hosting provider, then import the project in RVsitebuilder and edit the path in that. This will fix the issue.

Saturday, 2 July 2011

Cpanel Back End Files

WHM : Web Host Manager

====================

http://IPaddress:2086

http://IPaddress/whm



WHM related files

===============

/var/cpanel - whm files

+ bandwidth/ - rrd files of domains

+ username.accts - reseller accounts are listed in this files

+ packages - hosting packages are listed here

+ root.accts - root owned domains are listed here

+ suspended - suspended accounts are listed here

+ users/ - cpanel user file - theme, bwlimit, addon, parked, sub-domains all

are listed in this files

+ zonetemplates/ - dns zone template files are taken from here



Cpanel

==========

http://domainname:2082

http://IP:2082

http://domainname/cpanel



Mail

=========

The important sections under the Mail is defined below.

Email Accounts: In this area you can manage the email accounts associated with

your domain(s).

Webmail : Webmail allows you to check your email from a web browser as

opposed to a desktop mail application such as Outlook Express or Thunderbird.

This means that you can check your email from any web browser

Boxtrapper : BoxTrapper protects your inbox from spam by forcing all people

not on your white list to reply to a verification email before they can send

mail to you.

Spamassassin: SpamAssassin is an automated email filtering system that attempts

to identify spam messages based on the content of the email's headers and

body.

Autoresponders :You can use autoresponders to send a message back

automatically to anyone who sends an email to a certain account.

Forwarders :Forwarders allow you to send a copy of all mail from one email

address to another.

Default Address: The default email address will "catch" any mail that is sent

to an invalid email address for your domain. All mail that is sent to an

address that does not exist will go to the default email address. To send all

default mail to the main mail account, type the user name of your cPanel

account in the email address input field.

Userlevel Filtering: In this area you can manage filters for each user. Each

user filter is processed after the main account filters.



Exim back end files

=================

Conf : /etc/exim.conf - exim main configuration file

/etc/localdomains - list of domains allowed to relay mail

Log : /var/log/exim_mainlog - incoming/outgoing mails are logged here

/var/log/exim_rejectlog - exim rejected mails are reported here

/exim errors are logged here

Mail queue: /var/spool/exim/input

Cpanel script to restart exim - /scripts/restartsrv_exim

Email forwarders and catchall address file - /etc/valiases/domainname.com

Email filters file - /etc/vfilters/domainname.com

POP user authentication file - /home/username/etc/domainname/passwd

catchall inbox - /home/username/mail/inbox

POP user inbox - /home/username/mail/domainname/popusername/inbox

POP user spambox - /home/username/mail/domainname/popusername/spam

Program : /usr/sbin/exim (suid - -rwsr-xr-x 1 root root )

Init Script: /etc/rc.d/init.d/exim



FILES

=========

Backup and BackUp Wiazrd: Backups allow you to download (to your computer) a

zipped copy of either you entire site (your home directory, databases, email

forwarders configuration, email filters configuration) or one of the previously

mentioned parts of your site.

File Manager: Helps you to download upload and create new files and give

permission to the folders and files listed inside it.

WebDisk : You can create a Web Disk login and access your Web Disk below. Once

your Web Disk is configured, you can then drag and drop files to it just like

they are part of your home computer. You can also navigate through the files in

your hosting account just as you do the files on your local computer.

FTP Accounts : FTP Accounts allow you to access your web site's files through a

protocol called FTP. You will need a third party FTP program to access your

files.



ProFTPD

========

Program :/usr/sbin/proftpd

Init Script :/etc/rc.d/init.d/proftpd

Conf: /etc/proftpd.conf

Log: /var/log/messages, /var/log/xferlog

FTP accounts file - /etc/proftpd/username - all ftp accounts for the domain are

listed here



Pure-FTPD

=========

Program : /usr/sbin/pure-ftpd

Init Script :/etc/rc.d/init.d/pure-ftpd

Conf: /etc/pure-ftpd.conf

Anonymous ftp document root - /etc/pure-ftpd/ip-address



LOGS

========

Bandwidth :This function allows you to see the bandwidth usage for your site.

It shows the current month's bandwidth usage as well as your total bandwidth

usage. This will include all HTTP (web) and POP (mail) bandwidth usage and may

include FTP bandwidth usage if your system administrator has enabled FTP

bandwidth loggin

Webalizer Stats :Webalizer is a complex stats program that produces a variety

of charts and graphs about who has visited your site.



SECURITY

=============

IP Deny Manager:This feature will allow you to block a range of IP addresses

to prevent them from accessing your site. You can also enter a fully qualified

domain name, and the IP Deny Manager will attempt to resolve it to an IP

address for you.

SSL/TLS Manager:The SSL/TLS Manager will allow you to generate ssl

certificates, signing requests, and keys.

HotLink Protection:HotLink protection prevents other websites from directly

linking to files (as specified below) on your website.

Leech Protect: Leech Protect allows you to prevent your users from giving out

or publicly posting their password to a restricted area of your site.

Password Protect: You can limit access to certain resources of your website by

password protecting the directories they are in. While doing the applying the

password protection you required an username and passoword for accessing those

directories from web.

/home/username/.htpasswd ... where the username and encrypted password is

stored.

Put the .htaccess file in the directory of the file that you wish to be

protected.

AuthName "Member Only"

AuthType Basic

AuthUserFile /home/username/.htpasswd

require valid-user



DOMAINS

==============

Subdomains: Subdomains are URLs for different sections of your website

Addon Domains:An addon domain allows you to reach a sub-domain when entering

the name of the addon domain into a browse

Parked Domains: Parked Domains (Domain pointers) allow you to "point" or

"park" additional domain names to your existing hosting account.

Redirects : Redirects allow you to make a specific web page redirect to another

page and display the contents of that page.



DATABASES.

===========

MySQL Databases: Mysql data base and the corresponding users can be created

here.

Mysql Database wizard: For creation of Database and giving the privilleges.

phpMyadmin : phpMyAdmin is a third-party tool included with cPanel, used for

maniuplating MySQL databases over the Internet. Using phpMyAdmin, you can add

and drop databases, create, alter, and delete tables, add, edit, and delete

fields, execute SQL statements, and manage users, keys, and permissions.



Mysql backend files

=======

Program : /usr/bin/mysql

Init Script : /etc/rc.d/init.d/mysql

Conf : /etc/my.cnf, /root/.my.cnf

Data directory - /var/lib/mysql - Where all databases are stored.

Database naming convention - username_dbname (eg: john_sales)

Permissions on databases - drwx 2 mysql mysql

Socket file - /var/lib/mysql/mysql.sock, tmp mysql.sock



Software/Services:

=================

CGI Center : Short for “Common Gateway Interface,” CGI lets a web server run

pieces of software called scripts. cPanel’s CGI Center provides CGI scripts

that can do many useful things for your website, like create a guestbook,

clock, hit counter, countdown clock, and banner ads.

Site Software : This interface allows you to add useful software to your

website. Your web host controls what software is available.

PHP PEAR Packages : Using these features you can add and manage PHP packages.

PHP Configuration — This feature allows you to view specific information about

your server's PHP configuration.

Perl Modules : This feature provides an interface for you to add and manage

Perl modules.

Optimize Website — This feature can automatically compress content on your

website, when that content is requested by visitors.

Deploying a Ruby on Rails Environment : To create and deploy a Ruby on Rails

application.



ADVANCED

========

Apache Handlers :This interface allows you to add and manage Apache handlers.

Apache handlers control how your site’s Apache web server software manages

certain file types and file extensions.

Image Manager :cPanel includes 3 tools to help you manage the images you use

on your website.

Index Manager :This interface allows you to configure how a directory index

will appear to those who access it.

Error Pages :This interface allows you to customize the appearance of your

error pages. An error page informs a visitor when there is a problem accessing

your site.

Cron Jobs :cPanel provides 2 interfaces for editing cron jobs. Cron jobs are

scheduled tasks that take place at predefined times or intervals on the server.

FrontPage® Extensions :This feature allows you to enable or disable FrontPage

extensions. FrontPage extensions will allow web pages to be published directly

from the Microsoft® FrontPage application, eliminating the need to use FTP.

Network Tools :This area of cPanel’s interface contains tools for retrieving

network information.

Submit a Support Request : This feature makes it easy for you to submit

support requests and change your contact email address. However, it is

important to remember that this function may not be active per your web host’s

configuration and terms.

MIME Types :This feature allows you to create and manage MIME types. MIME

types relay information to the browser about how to handle file extensions.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Apache

=======

/usr/local/apache

+ bin- apache binaries are stored here - httpd, apachectl, apxs

+ conf - configuration files - httpd.conf

+ cgi-bin

+ domlogs - domain log files are stored here

+ htdocs

+ include - header files

+ libexec - shared object (.so) files are stored here -

libphp4.so,mod_rewrite.so

+ logs - apache logs - access_log, error_log, suexec_log

+ man - apache manual pages

+ proxy -

+ icons -

Init Script :/etc/rc.d/init.d/httpd - apache start script

Cpanel script to restart apache - /scripts/restartsrv_httpd



Exim

=====

Conf : /etc/exim.conf - exim main configuration file

/etc/localdomains - list of domains allowed to relay mail

Log : /var/log/exim_mainlog - incoming/outgoing mails are logged here

/var/log/exim_rejectlog - exim rejected mails are reported here

/exim errors are logged here

Mail queue: /var/spool/exim/input

Cpanel script to restart exim - /scripts/restartsrv_exim

Email forwarders and catchall address file - /etc/valiases/domainname.com

Email filters file - /etc/vfilters/domainname.com

POP user authentication file - /home/username/etc/domainname/passwd

catchall inbox - /home/username/mail/inbox

POP user inbox - /home/username/mail/domainname/popusername/inbox

POP user spambox - /home/username/mail/domainname/popusername/spam

Program : /usr/sbin/exim (suid - -rwsr-xr-x 1 root root )

Init Script: /etc/rc.d/init.d/exim



Frontpage Extensions

=================

Program - (Install): /usr/local/frontpage/version5.0/bin/owsadm.exe

Uninstall and then install for re-installations

FP files are found as _vti-bin, _vti-pvt, _vti-cnf, vti-log inside the

public_html



SSHD

======

Program :/usr/local/sbin/sshd

Init Script :/etc/rc.d/init.d/sshd

/etc/ssh/sshd_config

Log: /var/log/messages



Perl

====

Program :/usr/bin/perl

Directory :/usr/lib/perl5/5.6.1/



PHP

====

Program :/usr/local/bin/php, /usr/bin/php

ini file: /usr/local/lib/php.ini - apache must be restarted after any change to

this file

php can be recomplied using /scripts/easyapache



Named(BIND)

============

Program: /usr/sbin/named

Init Script: /etc/rc.d/init.d/named

/etc/named.conf

db records:/var/named/

/var/log/messages

--------------------------------------------------------------------------------------------------------------------------------------

Cpanel installation directory structure

=============================

/usr/local/cpanel

+ 3rdparty/ - tools like fantastico, mailman files are located here

+ addons/ - AdvancedGuestBook, phpBB etc

+ base/ - phpmyadmin, squirrelmail, skins, webmail etc

+ bin/ - cpanel binaries

+ cgi-sys/ - cgi files like cgiemail, formmail.cgi, formmail.pl etc

+ logs/ - cpanel access log and error log

+ whostmgr/ - whm related files



WHM related files

===============

/var/cpanel - whm files

+ bandwidth/ - rrd files of domains

+ username.accts - reseller accounts are listed in this files

+ packages - hosting packages are listed here

+ root.accts - root owned domains are listed here

+ suspended - suspended accounts are listed here

+ users/ - cpanel user file - theme, bwlimit, addon, parked, sub-domains all

are listed in this files

+ zonetemplates/ - dns zone template files are taken from here



Common CPanel scripts

===================

cpanel/whm Scripts are located in scripts

+ addns - add a dns zone

+ addfpmail - Add frontpage mail extensions to all domains without them

+ addfpmail2 -Add frontpage mail extensions to all domains without them

+ addnetmaskips - Add the netmask 255.255.255.0 to all IPs that have no

netmask

+ addnobodygrp - Adds the gorup nobody and activates security

+ addpop - add a pop account

+ addservlets - Add JSP support to an account (requires tomcat)

+ addstatus - (Internal use never called by user)

+ adduser - Add a user to the system

+ bandwidth - (OLD)

+ betaexim - Installs the latest version of exim

+ biglogcheck - looks for logs nearing 2 gigabytes in size

+ bsdcryptoinstall - Installs crypto on FreeBSD

+ bsdldconfig - Configures the proper lib directories in FreeBSD

+ bsdpkgpingtest - Tests the connection speed for downloading FreeBSD packages

+ buildbsdexpect - Install expect on FreeBSD

+ builddomainaddr - (OLD)

+ buildeximconf - Rebuilds exim.conf

+ buildpostgrebsd-dev - Installs postgresql on FreeBSD.

+ chcpass - change cpanel passwords

+ easyapache - recompile/upgrade apache and/or php

+ exim4 - reinstall exim and fix permissions

+ fixcommonproblems - fixes most common problems

+ fixfrontpageperm - fixes permission issues with Front Page

+ fixmailman - fixes common mailman issues

+ fixnamed - fixes common named issues

+ fixndc - fixes rndc errors with named

+ fixquotas - fixes quota problems

+ fullhordereset - resets horde database to a fresh one - all previous user

data are lost

+ initquotas - initializes quotas

+ installzendopt - installs zend optimizer

+ killacct - terminate an account - make sure you take a backup of the account

first

+ mailperm - fixes permission problems with inboxes

+ park - to park a domain

+ pkgacct - used to backup an account

+ restartsrv - restart script for services

+ restorepkg - restores an account from a backup file ( pkgacct file)

+ runlogsnow - update logs of all users

+ runweblogs - update stats for a particular user

+ securetmp - secures /tmp partition with options nosuexec and nosuid

+ suspendacct - suspends an account

+ unsuspendacct - unsuspends a suspended account

+ upcp - updates cpanel to the latest version

+ updatenow - updates the cpanel scripts

+ updateuserdomains - updates userdomain entries



Important cpanel/whm files

====================

/etc/httpd/conf/httpd.conf - apache configuration file

/etc/exim.conf - mail server configuration file

/etc/named.conf - name server (named) configuration file

/etc/proftpd.conf - proftpd server configuration file

/etc/pure-ftpd.conf - pure-ftpd server configuration file

/etc/valiases/domainname - catchall and forwarders are set here

/etc/vfilters/domainname - email filters are set here

/etc/userdomains - all domains are listed here - addons, parked,subdomains

along with their usernames

/etc/localdomains - exim related file - all domains should be listed here to be

able to send mails

/var/cpanel/users/username - cpanel user file

/var/cpanel/cpanel.config - cpanel configuration file ( Tweak Settings )*

/etc/cpbackup-userskip.conf -

/etc/sysconfig/network - Networking Setup*

/etc/hosts -

/var/spool/exim -

/var/spool/cron -

/etc/resolv.conf - Networking Setup--> Resolver Configuration

/etc/nameserverips - Networking Setup--> Nameserver IPs ( FOr resellers to

give their nameservers )

/var/cpanel/resellers - For addpkg, etc permissions for resellers.

/etc/chkserv.d - Main >> Service Configuration >> Service Manager *

/var/run/chkservd - Main >> Server Status >> Service Status *

/var/log/dcpumon - top log process

/root/cpanel3-skel - skel directory. Eg: public_ftp, public_html. (Account

Functions-->Skeleton Directory )*

/etc/wwwacct.conf - account creation defaults file in WHM (Basic cPanel/WHM

Setup)*

/etc/cpupdate.conf - Update Config *

/etc/cpbackup.conf - Configure Backup*

/etc/clamav.conf - clamav (antivirus configuration file )

/etc/my.cnf - mysql configuration file

/usr/local/Zend/etc/php.ini OR /usr/local/lib/php.ini - php configuration file

/etc/ips - ip addresses on the server (except the shared ip) (IP Functions--

>Show IP Address Usage )*

/etc/ipaddrpool - ip addresses which are free

/etc/ips.dnsmaster - name server ips

/var/cpanel/Counters - To get the counter of each users