{"id":55,"date":"2015-04-27T09:53:07","date_gmt":"2015-04-27T09:53:07","guid":{"rendered":"http:\/\/betakb.veeble.org\/?p=55"},"modified":"2025-04-29T11:30:10","modified_gmt":"2025-04-29T06:00:10","slug":"essential-cpanel-whm-file-paths-explained","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/essential-cpanel-whm-file-paths-explained\/","title":{"rendered":"Essential cPanel\/WHM File Paths Explained"},"content":{"rendered":"<div id=\"toc\" class=\"toc\">\n<div id=\"toctitle\">\n<h2>Contents<\/h2>\n<\/div>\n<ul>\n<li class=\"toclevel-1 tocsection-1\"><a href=\"#Apache\"><span class=\"tocnumber\">1<\/span> <span class=\"toctext\">Apache<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-2\"><a href=\"http:\/\/kb.veeble.org\/Filetion_locas#Exim\" target=\"_blank\" rel=\"noopener\"><span class=\"tocnumber\">2<\/span> <span class=\"toctext\">Exim<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-3\"><a href=\"#ProFTPD\"><span class=\"tocnumber\">3<\/span> <span class=\"toctext\">ProFTPD<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-4\"><a href=\"#Pure-FTPD\"><span class=\"tocnumber\">4<\/span> <span class=\"toctext\">Pure-FTPD<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-5\"><a href=\"#Mysql\"><span class=\"tocnumber\">5<\/span> <span class=\"toctext\">Mysql<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-6\"><a href=\"#SSHD\"><span class=\"tocnumber\">6<\/span> <span class=\"toctext\">SSHD<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-7\"><a href=\"#Perl\"><span class=\"tocnumber\">7<\/span> <span class=\"toctext\">Perl<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-8\"><a href=\"#PHP\"><span class=\"tocnumber\">8<\/span> <span class=\"toctext\">PHP<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-9\"><a href=\"#Named.28BIND.29\"><span class=\"tocnumber\">9<\/span> <span class=\"toctext\">Named(BIND)<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-10\"><a href=\"#Cpanel_installation_directory_structure\"><span class=\"tocnumber\">10<\/span> <span class=\"toctext\">Cpanel installation directory structure<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-11\"><a href=\"#WHM_related_files\"><span class=\"tocnumber\">11<\/span> <span class=\"toctext\">WHM related files<\/span><\/a><\/li>\n<li class=\"toclevel-1 tocsection-12\"><a href=\"#Some_Important_cpanel.2Fwhm_files\"><span class=\"tocnumber\">12<\/span> <span class=\"toctext\">Some Important cpanel\/whm files<\/span><\/a><\/li>\n<\/ul>\n<\/div>\n<h2><span id=\"Apache\" class=\"mw-headline\">Apache<\/span><\/h2>\n<p>Installation directory: \/usr\/local\/apache<\/p>\n<p>Apache binaries are stored here &#8211; httpd, apachectl, apxs: \/usr\/local\/apache\/bin<\/p>\n<p>Configuration files: \/usr\/local\/apache\/conf<\/p>\n<p>Main configuration file: \/usr\/local\/apache\/conf\/httpd.conf<\/p>\n<p>Domain log files are stored here: \/usr\/local\/apache\/domlogs<\/p>\n<p>Default Document root: \/usr\/local\/apache\/htdocs<\/p>\n<p>Header files: \/usr\/local\/apache\/include<\/p>\n<p>Shared object (.so) files are stored here [libphp4.so,mod_rewrite.so]: \/usr\/local\/apache\/libexec<\/p>\n<p>Apache logs [access_log, error_log, suexec_log]: \/usr\/local\/apache\/logs<\/p>\n<p>Apache manual pages: \/usr\/local\/apache\/man<\/p>\n<p>Init Script: \/etc\/rc.d\/init.d\/httpd &#8211; apache start script<\/p>\n<p>Cpanel script to restart apache: \/scripts\/restartsrv_httpd<\/p>\n<h2><span id=\"Exim\" class=\"mw-headline\">Exim<\/span><\/h2>\n<p>Main configuration file: \/etc\/exim.conf<\/p>\n<p>Init Script: \/etc\/rc.d\/init.d\/exim<\/p>\n<p>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]<\/p>\n<p>Mail queue: \/var\/spool\/exim\/input<\/p>\n<p>Cpanel script to restart exim: \/scripts\/restartsrv_exim<\/p>\n<p>Email forwarders and catchall address file: \/etc\/valiases\/domainname.com<\/p>\n<p>Email filters file: \/etc\/vfilters\/domainname.com<\/p>\n<p>POP user authentication file &#8211; \/home\/username\/etc\/domainname\/passwd<\/p>\n<p>Catchall inbox: \/home\/username\/mail\/inbox<\/p>\n<p>POP user inbox: \/home\/username\/mail\/domainname\/popusername\/inbox<\/p>\n<p>POP user spambox: \/home\/username\/mail\/domainname\/popusername\/spam<\/p>\n<p>Program: \/usr\/sbin\/exim (suid &#8211; -rwsr-xr-x 1 root root )<\/p>\n<p>List of domains allowed to relay mail: \/etc\/localdomains<\/p>\n<h2><span id=\"ProFTPD\" class=\"mw-headline\">ProFTPD<\/span><\/h2>\n<p>Program\u00a0:\/usr\/sbin\/proftpd<\/p>\n<p>Init Script\u00a0:\/etc\/rc.d\/init.d\/proftpd<\/p>\n<p>Configuration file: \/etc\/proftpd.conf<\/p>\n<p>Log files: \/var\/log\/messages, \/var\/log\/xferlog<\/p>\n<p>FTP accounts file [all ftp accounts for the domain are listed here]: \/etc\/proftpd\/username<\/p>\n<h2><span id=\"Pure-FTPD\" class=\"mw-headline\">Pure-FTPD<\/span><\/h2>\n<p>Program: \/usr\/sbin\/pure-ftpd<\/p>\n<p>Init Script: \/etc\/rc.d\/init.d\/pure-ftpd<\/p>\n<p>Configuration file: \/etc\/pure-ftpd.conf<\/p>\n<p>Anonymous ftp document root: \/etc\/pure-ftpd\/ip-address<\/p>\n<h2><span id=\"Mysql\" class=\"mw-headline\">Mysql<\/span><\/h2>\n<p>Program\u00a0: \/usr\/bin\/mysql<\/p>\n<p>Init Script\u00a0: \/etc\/rc.d\/init.d\/mysql<\/p>\n<p>Configuration file: \/etc\/my.cnf, \/root\/.my.cnf<\/p>\n<p>Data directory [where all databases are stored]: \/var\/lib\/mysql<\/p>\n<p>Database naming convention &#8211; username_dbname (eg: veeble_sales)<\/p>\n<p>Permissions on databases &#8211; drwx 2 mysql mysql<\/p>\n<p>Socket file &#8211; \/var\/lib\/mysql\/mysql.sock, \/tmp\/ mysql.sock<\/p>\n<h2><span id=\"SSHD\" class=\"mw-headline\">SSHD<\/span><\/h2>\n<p>Program: \/usr\/local\/sbin\/sshd<\/p>\n<p>Init Script: \/etc\/rc.d\/init.d\/sshd<\/p>\n<p>Configuration file: \/etc\/ssh\/sshd_config<\/p>\n<p>Log files: \/var\/log\/messages<\/p>\n<h2><span id=\"Perl\" class=\"mw-headline\">Perl<\/span><\/h2>\n<p>Program: \/usr\/bin\/perl<\/p>\n<p>Directory: \/usr\/lib\/perl5\/5.6.1\/<\/p>\n<h2><span id=\"PHP\" class=\"mw-headline\">PHP<\/span><\/h2>\n<p>Program: \/usr\/local\/bin\/php, \/usr\/bin\/php<\/p>\n<p>ini file [apache must be restarted after any change to this file]: \/usr\/local\/lib\/php.ini<\/p>\n<p>php can be recomplied using \/scripts\/easyapache<\/p>\n<h2><span id=\"Named.28BIND.29\" class=\"mw-headline\">Named(BIND)<\/span><\/h2>\n<p>Program: \/usr\/sbin\/named<\/p>\n<p>Init Script: \/etc\/rc.d\/init.d\/named<\/p>\n<p>Configuration file: \/etc\/named.conf<\/p>\n<p>Zone files or db records:\/var\/named\/<\/p>\n<p>log file: \/var\/log\/messages<\/p>\n<h2><span id=\"Cpanel_installation_directory_structure\" class=\"mw-headline\">Cpanel installation directory structure<\/span><\/h2>\n<p>\/usr\/local\/cpanel<\/p>\n<p>+ 3rdparty\/ &#8211; tools like fantastico, mailman files are located here<\/p>\n<p>+ addons\/ &#8211; AdvancedGuestBook, phpBB etc<\/p>\n<p>+ base\/ &#8211; phpmyadmin, squirrelmail, skins, webmail etc<\/p>\n<p>+ bin\/ &#8211; cpanel binaries<\/p>\n<p>+ cgi-sys\/ &#8211; cgi files like cgiemail, formmail.cgi, formmail.pl etc<\/p>\n<p>+ logs\/ &#8211; cpanel access log and error log<\/p>\n<p>+ whostmgr\/ &#8211; whm related files<\/p>\n<h2><span id=\"WHM_related_files\" class=\"mw-headline\">WHM related files<\/span><\/h2>\n<p>\/var\/cpanel &#8211; whm files<\/p>\n<p>+ bandwidth\/ &#8211; rrd files of domains<\/p>\n<p>+ username.accts &#8211; reseller accounts are listed in this files<\/p>\n<p>+ packages &#8211; hosting packages are listed here<\/p>\n<p>+ root.accts &#8211; root owned domains are listed here<\/p>\n<p>+ suspended &#8211; suspended accounts are listed here<\/p>\n<p>+ users\/ &#8211; cpanel user file &#8211; theme, bwlimit, addon, parked, sub-domains all are listed in this files<\/p>\n<p>+ zonetemplates\/ &#8211; dns zone template files are taken from here<\/p>\n<h2><span id=\"Some_Important_cpanel.2Fwhm_files\" class=\"mw-headline\">Some Important cpanel\/whm files<\/span><\/h2>\n<p>\/var\/cpanel\/users\/username &#8211; cpanel user file<\/p>\n<p>\/var\/cpanel\/cpanel.config &#8211; cpanel configuration file ( Tweak Settings )*<\/p>\n<p>\/etc\/cpbackup-userskip.conf &#8211; User accounts listed in in this file will be skipped during backup.<\/p>\n<p>\/etc\/sysconfig\/network &#8211; Networking Setup*<\/p>\n<p>\/var\/spool\/cron &#8211; Cronjobs could be found here.<\/p>\n<p>\/etc\/resolv.conf &#8211; Resolver Configuration<\/p>\n<p>\/etc\/nameserverips &#8211; nameserver configuration<\/p>\n<p>\/var\/cpanel\/resellers &#8211; Lists each reseller&#8217;s previlege.<\/p>\n<p>\/etc\/chkserv.d &#8211; Checkservd configuration<\/p>\n<p>\/var\/log\/dcpumon &#8211; top log process<\/p>\n<p>\/root\/cpanel3-skel &#8211; skel directory. Eg: public_ftp, public_html. (Account Functions&#8211;&gt;Skeleton Directory )*<\/p>\n<p>\/etc\/wwwacct.conf &#8211; account creation defaults file in WHM (Basic cPanel\/WHM Setup)*<\/p>\n<p>\/etc\/cpupdate.conf &#8211; cpanel Update Configuration<\/p>\n<p>\/etc\/cpbackup.conf &#8211; Configure Backup<\/p>\n<p>\/etc\/clamav.conf &#8211; clamav antivirus configuration file )<\/p>\n<p>\/usr\/local\/Zend\/etc\/php.ini OR \/usr\/local\/lib\/php.ini &#8211; php configuration file<\/p>\n<p>\/etc\/ips &#8211; ip addresses on the server (except the shared ip) (IP Functions&#8211;&gt;Show IP Address Usage )*<\/p>\n<p>\/etc\/ipaddrpool &#8211; ip addresses which are free<\/p>\n<p>\/etc\/ips.dnsmaster &#8211; name server ips<\/p>\n<p>\/var\/cpanel\/Counters &#8211; To get the counter of each users.<\/p>\n<p>\/var\/cpanel\/bandwidth &#8211; To get bandwith usage of domain<\/p>\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-6397396f wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Launch Your Powerful Magento Store<\/h3><p class=\"uagb-cta__desc\">Get started quickly with reliable hosting built for Magento. Benefit from optimized speed, robust security, and expert support from day one.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/magento-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Choose Your Plan<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Contents 1 Apache 2 Exim 3 ProFTPD 4 Pure-FTPD 5 Mysql 6 SSHD 7 Perl 8 PHP 9 Named(BIND) 10 Cpanel installation directory structure [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":8778,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Essential-cPanelWHM-File-Paths-Explained.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Essential-cPanelWHM-File-Paths-Explained-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Essential-cPanelWHM-File-Paths-Explained-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Essential-cPanelWHM-File-Paths-Explained-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Essential-cPanelWHM-File-Paths-Explained-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Essential-cPanelWHM-File-Paths-Explained.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Essential-cPanelWHM-File-Paths-Explained.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Vipin Raj","author_link":"https:\/\/www.veeble.com\/kb\/author\/vipin\/"},"uagb_comment_info":0,"uagb_excerpt":"Contents 1 Apache 2 Exim 3 ProFTPD 4 Pure-FTPD 5 Mysql 6 SSHD 7 Perl 8 PHP 9 Named(BIND) 10 Cpanel installation directory structure [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":5,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":8777,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/55\/revisions\/8777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8778"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}