HomeCpanelFile locations

File locations

Apache

Installation directory: /usr/local/apache

Apache binaries are stored here – httpd, apachectl, apxs: /usr/local/apache/bin

Configuration files: /usr/local/apache/conf

Main configuration file: /usr/local/apache/conf/httpd.conf

Domain log files are stored here: /usr/local/apache/domlogs

Default Document root: /usr/local/apache/htdocs

Header files: /usr/local/apache/include

Shared object (.so) files are stored here [libphp4.so,mod_rewrite.so]: /usr/local/apache/libexec

Apache logs [access_log, error_log, suexec_log]: /usr/local/apache/logs

Apache manual pages: /usr/local/apache/man

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

Cpanel script to restart apache: /scripts/restartsrv_httpd

Exim

Main configuration file: /etc/exim.conf

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

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 )

List of domains allowed to relay mail: /etc/localdomains

ProFTPD

Program :/usr/sbin/proftpd

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

Configuration file: /etc/proftpd.conf

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

FTP accounts file [all ftp accounts for the domain are listed here]: /etc/proftpd/username

Pure-FTPD

Program: /usr/sbin/pure-ftpd

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

Configuration file: /etc/pure-ftpd.conf

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

Mysql

Program : /usr/bin/mysql

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

Configuration file: /etc/my.cnf, /root/.my.cnf

Data directory [where all databases are stored]: /var/lib/mysql

Database naming convention – username_dbname (eg: veeble_sales)

Permissions on databases – drwx 2 mysql mysql

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

SSHD

Program: /usr/local/sbin/sshd

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

Configuration file: /etc/ssh/sshd_config

Log files: /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 [apache must be restarted after any change to this file]: /usr/local/lib/php.ini

php can be recomplied using /scripts/easyapache

Named(BIND)

Program: /usr/sbin/named

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

Configuration file: /etc/named.conf

Zone files or db records:/var/named/

log file: /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

Some Important cpanel/whm files

/var/cpanel/users/username – cpanel user file

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

/etc/cpbackup-userskip.conf – User accounts listed in in this file will be skipped during backup.

/etc/sysconfig/network – Networking Setup*

/var/spool/cron – Cronjobs could be found here.

/etc/resolv.conf – Resolver Configuration

/etc/nameserverips – nameserver configuration

/var/cpanel/resellers – Lists each reseller’s previlege.

/etc/chkserv.d – Checkservd configuration

/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 – cpanel Update Configuration

/etc/cpbackup.conf – Configure Backup

/etc/clamav.conf – clamav antivirus 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.

/var/cpanel/bandwidth – To get bandwith usage of domain

Scroll to Top