Directory Structure of CPanel

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 -

Cpanel script to restart apache – /scripts/restartsrv_httpd

Start httpd with ssl – /etc/init.d/httpd startssl

DNS – Named(Bind)

Program: /usr/sbin/named

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

/etc/named.conf

db records:/var/named/

/var/log/messages

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

/var/log/exim_paniclog – 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

Mysql

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

SSHD

Program :/usr/local/sbin/sshd

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

/etc/ssh/sshd_config

Log: /var/log/messages

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

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

Cpanel

/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

/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

Important cpanel/whm files

/usr/local/apache/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 togive 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. (AccountFunctions–>Skeleton Directory )*

/etc/wwwacct.conf – account creation defaults file in WHM (Basic cPanel/WHMSetup)*

/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.

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

About these ads
About

anees

Posted in Cpanel, General discussions
34 comments on “Directory Structure of CPanel
  1. j says:

    you missed the correct location down at the > Important cpanel/whm files < for httpd.conf.

    Like

  2. [...] you just stumble upon something so incredible useful! I recently found this gem on LinuxStuffs, so all credit goes to that [...]

    Like

  3. JIJIN says:

    HI Anees
    You did a great work, really helpfull.
    Cheers!!!!!!

    Like

  4. math says:

    Thank you very much :)

    Like

  5. Jerome Jose says:

    This is really good.. helping me a lot.. and thank you very much for this stuff..

    Like

  6. stephenzhang says:

    very good! very helpful!

    Like

  7. denny says:

    thnx aneez… ;)

    Like

  8. Jayaraj K G says:

    Superb………

    Like

  9. 3d animasyon says:

    thanks alot admin

    Like

  10. Abhilash says:

    Good work boss…

    Like

  11. oranksenank says:

    thanks, dude ;)

    Like

  12. orthodontics says:

    You’re so awesome! I do not believe I’ve truly read anything like that before.
    So nice to find another person with some unique thoughts on this subject matter.
    Really.. thank you for starting this up. This website is one thing that is needed on the internet,
    someone with a little originality!

    Like

  13. ipad pris says:

    Thank you a bunch for sharing this with all folks you really realize what you are speaking approximately!
    Bookmarked. Please also discuss with my website =).

    We may have a hyperlink trade arrangement among us

    Like

  14. Pretty nice post. I just stumbled upon your weblog
    and wished to say that I have really enjoyed browsing your blog posts.
    In any case I will be subscribing to your feed and I hope you write again soon!

    Like

  15. Woah! I’m really enjoying the template/theme of this website. It’s simple, yet effective.

    A lot of times it’s very hard to get that “perfect balance” between usability and visual appearance. I must say that you’ve done
    a excellent job with this. Also, the blog loads very fast for me on Chrome.

    Outstanding Blog!

    Like

  16. Marian says:

    Remarkable job on the information; you seem to know a great deal.
    My question is a little off of topic, but I want to
    ask nevertheless… where did you get this template from?
    I’d personally love to make use of it on my web site if at all possible. Thanks a lot!

    Like

  17. look at this says:

    Admiring the dedication you put into your blog and
    detailed information you provide. It’s awesome to come across a blog every once in a while that isn’t the same out of date rehashed
    information. Fantastic read! I’ve bookmarked your site and I’m including your RSS feeds
    to my Google account.

    Like

  18. Edith says:

    I’m not that much of a online reader to be honest but
    your sites really nice, keep it up! I’ll go ahead and bookmark your website to come back down the road. Cheers

    Like

  19. Pretty! This was a really wonderful post.
    Thank you for providing this info.

    Like

  20. Good day! Would you mind if I share your blog with my twitter
    group? There’s a lot of people that I think would really appreciate your content. Please let me know. Many thanks

    Like

  21. Hey there! I know this is kinda off topic but I was wondering if you
    knew where I could locate a captcha plugin
    for my comment form? I’m using the same blog platform as yours and I’m having problems finding
    one? Thanks a lot!

    Like

  22. Milesweb says:

    Thanks for the share. For noobs, best article to refer and understand the cPanel structure. Keep up the good work.

    Like

  23. Woah! I’m really loving the template/theme of this site. It’s simple, yet effective.
    A lot of times it’s challenging to get that “perfect balance” between usability and visual appearance. I must say you’ve done a amazing job with this.
    In addition, the blog loads extremely fast for me on Safari.
    Outstanding Blog!

    Like

  24. I have been browsing online more than 2 hours today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. In my opinion, if all site owners and bloggers made good content as you did, the net will be
    a lot more useful than ever before.

    Like

  25. Good submission. Rarely will you see as quality a set of clear views on the web hosting industry.

    Congratulations!
    enjoyed the read! Will certainly be back again!

    Like

  26. Hi my family member! I want to say that this article
    is amazing, great written and include almost all
    vital infos. I’d like to see extra posts like this .

    Like

  27. I loved as much as you will receive carried out right
    here. The sketch is tasteful, your authored subject matter stylish.
    nonetheless, you command get bought an nervousness over that you
    wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly a lot
    often inside case you shield this hike.

    Like

  28. George says:

    Internet hosting is far too complicated currently!
    There’s juyst too mahy suppliers and features to choose from.

    Like

  29. Thanks for sharing your thoughts about [beach resort sabah].
    Regards

    Like

  30. Thank you for sharing your info. I really appreciate your efforts and I am waiting for your next write
    ups thanks once again.

    Like

  31. No oone understands everything, but tbis weekend, ggo thy
    way; We’ll hold a discussion, in case you’re looking to cause a yellow thin film oof moisture, don’t disappoint her.
    It is the sexiest member. Director Qiao, I really juice diets don’t ant to ask.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog Stats
  • 119,664 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers

%d bloggers like this: