cpanel Structure Details for the complete structure of cpanel by Kevin Asklund.



Similar documents
cpanel Structure Details for the structure of cpanel & WHM by Kevin Asklund.

WebHost Manager 7 User Guide DOCUMENTATION VERSION: 1.2

Linux VPS with cpanel. Getting Started Guide

WebHost Manager User Manual. cpanel

VPS Geek Guide. cpanel/whm

Dedicated Servers InfoGuide

Introduction to the Capabilities of cpanel & WHM

Closing the Loop: Automating Server Setups. Vanessa Vasile, InMotion Hosting

CPanel User Guide DOCUMENTATION VERSION: 1.2

SMT v4.0 Users Guide (Linux version)

iweb Management Packages - List of supported services and software

Host your websites. The process to host a single website is different from having multiple sites.

WHM Administrator s Guide

42goISP Documentation

ISPConfig Documentation

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

WHY USE ILLUMIN8 MARKETING FOR HOSTING YOUR WEB SITE?

Create a New Account Contents

Domain Name. Domain Registrar. Web Site cpanel URL: Username: Password: Username: Password:

Talk Internet User Guides Controlgate Administrative User Guide

cpanel 11 User Manual

Creating Custom Nameservers Contents

Hostopia Web Hosting - Getting Started

imhosted Web Hosting Knowledge Base

ISPConfig Documentation

Simple. Control Panel. for your Linux Server. Getting Started Guide. Simple Control Panel // Linux Server

Tango Hostway s Reseller Platform

About this Guide Web Hosting...6 Concepts... 6

ENTERPRISE LINUX NETWORKING SERVICES

Introduction to cpanel

GL275 - ENTERPRISE LINUX NETWORKING SERVICES

Hostdime s. Guide to CPANEL 9.9. Created and Maintained by: Aric Pedersen

GL-275: Red Hat Linux Network Services. Course Outline. Course Length: 5 days

Legal and Copyright Notice

NGASI Shared-Runtime Manager Administration and User Guide WebAppShowcase DBA NGASI

Bigstep Server Management Service Details

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

Parallels Plesk Automation

Automated CPanel Backup Script. for home directory backup, remote FTP backup and Amazon S3 backup

Advanced 100 GB storage space. Unlimited monthly bandwidth. Pro 150 GB storage space. Unlimited monthly bandwidth. Horde Squirrelmail Round Cube Mail

ENTERPRISE LINUX NETWORKING SERVICES

Getting Started Guide. Getting Started With Your Dedicated Server. Setting up and hosting a domain on your Linux Dedicated Server using Plesk 8.0.

A Beginner's Guide to Setting Up A Web Hosting System (Or, the design and implementation of a system for the worldwide distribution of pictures of

Server Management Tool (SMT) 4.1. SMT 4.1 User s Guide (Linux Version)

WHMCS Integration Manual

When you first login to your reseller account you will see the following on your screen:

Lets Get Started In this tutorial, I will be migrating a Drupal CMS using FTP. The steps should be relatively similar for any other website.

Getting Started With Your Dedicated Server. Getting Started Guide

cpanel (yes, it stands for Control Panel) and WHM (the Web Host Manager) provide a web-based graphical

A Reseller s Guide to Using Helm

Ensim WEBppliance 3.0 for Windows (ServerXchange) Release Notes

Parallels Plesk Panel 11 for your Windows Server

"Charting the Course... Enterprise Linux Networking Services Course Summary

Web Hosting Control Panel Guide

Parallels Plesk Panel 11 for your Linux server

Exim4U. Server Solution For Unix And Linux Systems

Parallels Plesk Panel

About This Document 3. Integration Overview 4. Prerequisites and Requirements 6

Parallels Operations Automation

cpanel User Guide and Tutorial Chapter 4. "Working with Mail" Aric Pederson

Setup a Virtual Host/Website

Parallels Plesk Panel

Customer Control Panel Manual

Introduction Connecting Via FTP Where do I upload my website? What to call your home page? Troubleshooting FTP...

Asia Web Services Ltd. (vpshosting.com.hk)

Administrators guide to the Matrix Control Panel

Getting Started - The Control Panel

Parallels Plesk Automation. Customer s Guide. Parallels Plesk Automation 11.5

User Manual. version 3.0-r1

ICCM Reseller Web site Plan Features

Plesk for Windows Copyright Notice

1. An Introduction to cpanel. Welcome to Thanks for signing up. 2. How Domain Names work

Parallels Plesk Control Panel

Lab Tasks 1. Configuring a Slave Name Server 2. Configure rndc for Secure named Control

Web Hosting Control Panel

Ensim WEBppliance 3.1 for Linux (LH) Release Notes

Quick Start Guide Getting started with your Hetzner package

Host Excellence Hosting Manual. June 26th, 2007

Parallels Panel. Deployment Guide. Plesk Automation Revision 1.0

JMS MULTISITE for joomla!

Administrators guide to the Matrix Control Panel. Linux

APACHE WEB SERVER. Andri Mirzal, PhD N

Transcription:

cpanel Structure Details for the complete structure of cpanel by Kevin Asklund. The cpanel and WebHost Manager package includes: * cpanel - Domain Owner Control * WebHost Manager - Server Administration and Reseller * Webmail Panel - Webmail Access Directory Structure of cpanel ======================= Apache ======= /usr/local/apache bin- apache binaries are stored here - httpd, apachectl, apxs conf - configuration files - httpd.conf - php.conf cgi-bin domlogs - domain access and stat log files are stored here for all domains htdocs - default apache DocumentRoot location 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 icons - icon/jpg/gif images modules - shared object (.so) files are store here - Apache-2.x+ Init Script :/etc/rc.d/init.d/httpd or /usr/local/apache/bin/apachectl - apache start script Cpanel script to restart apache - /scripts/restartsrv_httpd Exim ===== Conf : /etc/exim.conf - exim main configuration file - Do not manually edit /etc/localdomains - list of domains allowed to relay/receive mail Log : /var/log/exim_mainlog - incoming/outgoing mails are logged here Log : /var/log/exim_rejectlog - exim rejected mails are reported here Log : /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/new POP user inbox - /home/username/mail/domainname/popusername/new 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 : /scripts/restartsrv_exim : service exim restart ProFTPD ======== Program :/usr/sbin/proftpd Init Script :/etc/rc.d/init.d/proftpd : /scripts/restartsrv_ftpserver Conf: /etc/proftpd.conf Log: /var/log/messages, /var/log/xferlog Accounts file - /etc/proftpd/$username - all ftp accounts are stored here Pure-FTPD ========= Program : /usr/sbin/pure-ftpd Init Script :/etc/rc.d/init.d/pure-ftpd : /scripts/restartsrv_ftpserver Conf: /etc/pure-ftpd.conf Accounts file: /etc/proftpd/$username - all ftp accounts are stored here Anonymous ftp document root - /etc/pure-ftpd/ip-address Frontpage Extensions ================= Program - (Install): /usr/local/frontpage/version5.0/bin/owsadm.exe Uninstall and then install for re-installations FP files are found as _vti-bin, _vti-pvt, _vti-cnf, vti-log inside the public_html /scripts/setupfp5 domain.com Mysql ======= Program : /usr/bin/mysql Init Script : /etc/rc.d/init.d/mysql : service mysql start/stop : /scripts/restartsrv_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) Log: Startup errors - /var/lib/mysql/hostname.tld.err 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 - /scripts/restartsrv_sshd Conf: /etc/ssh/sshd_config Log: /var/log/messages

Perl ==== Program :/usr/bin/perl Directory :/usr/lib/perl5/5.8.x/ Version: perl -v Check: /scripts/checkperlmodules Installer: /scripts/perlinstaller : /scripts/realperlinstaller : perl -MCPAN -e shell Build: /home/.cpan PHP ==== System PHP Program :/usr/local/bin/php, /usr/bin/php, /usr/local/php4/bin/php ini file: /usr/local/lib/php.ini - apache must be restarted after any change to this file php can be recomplied using /scripts/easyapache : /scripts/phpup using /var/cpanel/ easy/apache/profile/ Internal PHP Program : /usr/local/cpanel/3rdparty/bin/php : /var/cpanel/3rdparty/bin/php ini file: /usr/local/cpanel/3rdparty/etc/php.ini internal PHP can be recompiled using : /scripts/makecpphp using /var/cpanel/easy/ apache/profile/makecpphp.profile.yaml Named(BIND) ============ Program: /usr/sbin/named Init Script: /etc/rc.d/init.d/named Config: /etc/named.conf Zone files:/var/named/ Log: /var/log/messages: /var/named/data/named.run NSD (Alternate DNS option) ===================== Program: /usr/sbin/nsd Init Script : /etc/rc.d/init.d/nsd db records : /var/named Config: /etc/nsd/nsd.conf Log: /var/log/messages Courier ===== Program: /usr/lib/courier-imap/libexec/couriertcpd Init Script: /etc/init.d/courier : /scripts/restartsrv_courier Config: /usr/local/libexec/courier-imap Log: /var/log/maillog

Dovecot ====== Program: /usr/sbin/dovecot Init Script: /etc/init. Config: /etc/dovecot.conf Log: /var/log/maillog 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, error_log, license_log, stats_log + whostmgr/ - whm related files + base/frontend - cpanel related files - themes + perl/ - internal Perl modules for compiled binaries + etc/init - init files for cpanel services 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 Common CPanel scripts =================== cpanel/whm Scripts are located in /scripts/ + addns - add a dns zone + addfpmail - Add frontpage mail extensions to all domains without them + addfpmail2 -Add frontpage mail extensions to all domains without them

+ addpop - add a pop account + addservlets - Add JSP support to an account (requires tomcat) + addstatus - (Internal use never called by user) + adduser - Add a user to the system + apachelimits - calculates memory limits for apache processes then adds to httpd.conf + bandwidth - (deprecated) + betaexim - Installs the latest version of exim + biglogcheck - looks for logs nearing 2 gigabytes in size + bsdcryptoinstall - Installs crypto on FreeBSD + bsdldconfig - Configures the proper lib directories in FreeBSD + bsdpkgpingtest - Tests the connection speed for downloading FreeBSD packages + buildbsdexpect - Install expect on FreeBSD + buildeximconf - Rebuilds exim.conf + buildpostgrebsd-dev - Installs postgresql on FreeBSD. + chcpass - change cpanel passwords + cleandns - removes domains from named.conf that do not have a Zone. + courierup - used to update/reinstall courier + cpbackup - to backup accounts (if backups enabled) (--force) + dnscluster - used to synchronize DNS zones with clustered servers (--help) + dumpstor - displays contents of.datastore storable files + dumpgdbm - displays contents of.gdbm locale files + easyapache - recompile/upgrade apache and/or php + editquota - used to manually set a users quota limit + ensure_vhost_includes - ensures users includes are added in httpd.conf + eximup - used to update exim to latest version - will overwrite any manual changes + fixcommonproblems - fixes mailbox permissions, mailman, cgi scripts, ndc and quotas + fixfrontpageperm - fixes permission issues with Front Page + fixmailman - fixes common mailman issues + fixndc - fixes rndc errors with named + fixquotas - fixes quota problems + fullhordereset - resets horde database to a fresh one - all previous user data are lost + ftpup - used to update/install FTP server (pureftpd or proftpd) to latest version + generatemaildirsize - generates new maildirsize for any or all users *(--help) + initquotas - initializes quotas + installzendopt - installs zend optimizer - thru phpextensionmgr + killacct - terminate an account - make sure you take a backup of the account first + killdns - removes a DNS Zone + mailperm - fixes permission problems with mail directories + makecpphp - rebuilds internal PHP from /var/cpanel/easy/apache/profile/ makecpphp.profile.yaml + mysqlup - used to update mysql to latest version specified in /var/cpanel/cpanel.config + park - to park a domain - only adds DNS + pkgacct - used to backup an account + pre* - used to create pre service scripts that run before a service is updated + post* - used to create post service scripts that run after a service is updated + phpup - used to update PHP only

+ rebuildcpusers - chowns /var/cpanel/users files + rebuildnamedconf + rebuildparkeddomains + restartsrv - restart script for services + restorepkg - restores an account from a backup file ( pkgacct file) + runlogsnow - update logs of all users + runweblogs - update stats for a particular user + securetmp - secures /tmp partition with options nosuexec and nosuid + setupftpserver - sets which FTP server to install (pureftpd or proftpd) + setupmailserver - sets which mail service to install (courier or dovecot) + setupnameserver - sets which DNS service to install (Bind or NSD) + suspendacct - suspends an account + unsuspendacct - unsuspends a suspended account + upcp - updates cpanel to the latest version (--force) + updatenow - updates the cpanel scripts + updateuserdomains - updates /etc/userdomains entries from /var/cpanel/users + wwwacct - to create new accounts (wwwacct domain.com user password) 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/receive emails /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 - cronjobs are stored here for all users /etc/resolv.conf - Networking Setup > Resolver Configuration /etc/nameserverips - Networking Setup > Nameserver IPs ( FOr resellers to give 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. (Account Functions >Skeleton Directory )* /etc/wwwacct.conf - account creation defaults file in WHM (Basic cpanel/whm Setup)* /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/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 /etc/domainips - IPʼs set as dedicated for specific domains /var/cpanel/counters - To get the counter of each users. /var/cpanel/bandwidth - To get bandwith usage of domains /var/cpanel/userdata - Defines parked, addon, subdomains as well as VirtualHost /var/cpanel/logs - transfer logs /var/cpanel/easy - easyapache build files/profile /var/cpanel/userhomes - session holder for Horde, Roundcube, phpmyadmin /var/cpanel/serviceauth - chkservd service user/pass data /var/cpanel/updatelogs - upcp daily logs