Estrutura de diretórios do Cpanel/WHM (arquivos fundamentais para uso normal)
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
Fonte: http://wirednless.com/2009/01/cpanel-directory-and-files/
Category :)
- 1 (315)
- android (6)
- apple (6)
- bancos de dados (19)
- bds (15)
- Blog (211)
- bsd (7)
- C (5)
- CentOs (126)
- CentOS Desktop (15)
- CentOS Servidor (24)
- contos (12)
- crônicas de um geek (17)
- cryptocoins (1)
- dba (5)
- debian (43)
- Debian Desktop (6)
- Debian Server (8)
- delphi (2)
- Deus (4)
- entretenimento (18)
- Eventos (5)
- fedora (53)
- Fedora Desktop (8)
- Fedora Servidor (6)
- Flutter/Dart (2)
- FreeBSD || OpenBSD (17)
- gamedev (6)
- Gentoo (25)
- git (1)
- gnu/linux (207)
- google (5)
- Hosting (215)
- How To (167)
- How Tos (139)
- BSD (3)
- DragonFlyBSD (1)
- Freebsd (2)
- FreeBSD Desktop (2)
- FreeBSD Servidor (2)
- NetBSD (1)
- NetBSD Desktop (1)
- NetBSD Servidor (1)
- OpenBSD (1)
- OpenBSD Desktop (1)
- OpenBSD Servidor (1)
- LINUX (82)
- Google Android (10)
- Desenvolvimento (5)
- Usando Android (9)
- Mageia (6)
- Mageia Desktop (6)
- Mageia Servidor (5)
- Mint (6)
- Desktop (6)
- Red Hat (24)
- Google Android (10)
- Mac Os (49)
- Hakcintosh (36)
- Mac OS Desktop (44)
- Unix para Windows (1)
- BSD (3)
- html (18)
- ibm (4)
- iis (3)
- javascript (11)
- Mandriva (14)
- mozilla (4)
- Nerdice! (38)
- Open Source (117)
- OpenSuse (30)
- Open SUSE Desktop (8)
- Open SUSE Servidor (5)
- Painéis de Controle (92)
- parallels (50)
- php (91)
- programação (39)
- python (9)
- red hat (94)
- redes (41)
- Ruby (7)
- Segurança (39)
- Sempre Lammer! (7)
- slackware (23)
- sun (8)
- ubuntu (75)
- Ubuntu Desktop (24)
- Unity (4)
- unix (23)
- vida (1)
- Virtualização (5)
- whmcpanel (45)
- Windows (51)
- Windows (NT~2008 server) (53)
- wordpress (7)
- xml (11)