cPanel is best and No.1 web hosting control panel for Linux environment, which will help administrator to manage everything without headache. Also read about cPanel/WHM utility Command line scripts & cPanel/WHM log files location. We know 95% of the configuration files are located under /etc
directory (and subdirectory) and you can use your favorite text editor to manage when you want to make any changes on. Make sure if you make changes wrongly which will lead to damage the particular service because services depends configuration file on Linux. I have collected almost, all the cPanel configuration files location, Still i’m searching to add more files. If you found anything missed in our article add your command to our comment section for future readers.
Config file location | Description |
---|---|
/usr/local/apache/conf/httpd.conf | Apache configuration file |
/etc/exim.conf | Exim 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 |
/var/cpanel/cpanel.config | cpanel configuration file (Tweak Settings) |
/etc/resolv.conf | Networking Setup, Resolver Configuration |
/etc/wwwacct.conf | account creation defaults file in WHM (Basic cPanel/WHM Setup) |
/etc/cpupdate.conf | cPanel Update Config (upcp) |
/etc/cpbackup.conf | Backup Configuration |
/etc/clamav.conf | clamav (antivirus configuration file) |
/usr/local/lib/php.ini | php configuration file |
/etc/my.cnf | mysql configuration file |
/etc/dovecot.conf | dovecot configuration file |
/var/lib/pgsql/data/postgresql.conf & pg_hba.conf | PostgreSQL configuration file |
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 |
/etc/cpbackup-userskip.conf | backup skipped configuration file |
/etc/ssh/sshd_config | ssh configuration file |
/etc/sysconfig/network | Networking Setup |
/etc/hosts | /etc/nameserverips |
/etc/nameserverips | For addpkg, etc permissions for resellers |
/var/cpanel/resellers | For addpkg, etc permissions for resellers |
/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/username.accts | reseller accounts are listed in this files |
/var/cpanel/packages | hosting packages are listed here |
/var/cpanel/root.accts | root owned domains are listed here |
/var/cpanel/suspended | suspended accounts are listed here |
/var/cpanel/users/ | cpanel user file – theme, bwlimit, addon, parked, sub-domains all are listed in this files |
/var/cpanel/zonetemplates/ | dns zone template files are taken from here |