Cpanel Newbie Guide

This guide assumes you already have Cpanel installed......this is meant to be a breif overview of some important features - not a complete WHM guide - that should be the responsibility of DarkOrb (www.cpanel.net)

If you do not have Cpanel installed please read the guide from DarkOrb - http://cpanel.net/docs.htm

Logins!
You need to login to your box right well here are a few things to help you. SSL logins are highly recommended for security - please see our Force SSL logins in the Cpanel Tutorials for more details.

* WHM
- Secure SSL https://sitename.com:2087
- Regular http://sitename.com:2086 and http://yourdomain.com/whm
* Cpanel
- Secure SSL https://sitename.com:2083
- Regular http://sitename.com:2082 and http://yourdomain.com/cpanel
* Webmail
- Secure SSL https://domain.com:2096
- Regular http://domain.com:2095 and http://yourdomain.com/webmail


First off is updates with Cpanel:
Do not use anything other than stable releases.
Server Setup/Change Update Preferences:
Cpanel/WHM Updates: Manual Updates Only (STABLE tree)
- All set to manual updates. I prefer manual over automatic because I like to keep a better eye on what has been changed.
If you select manual and you want to perform the update simply scroll down WHM and go to Cpanel 6 > Upgrade To Latest Version.

This will update Exim, Perl, Apache and Cpanel if updates are available - it will only update to the Cpanel release type you selected previously.

To see if new updates are available go to http://layer2.cpanel.net
EG: Latest Builds:
Cpanel-6.4.0-STABLE_16-Linux-i686-glibc-2.1 (Tue Apr 15 12:34:00 2003

Read your WHM news page to see important release and news information!

Tweak Settings:
Anything not listed is up to you

Things to enable:

* Webalizer Stats
* Awstats Stats (Very nice stats program - recommended.
* Spamassassin
* Disk Space Usage Warnings
* The number of times users are allowed to check their mail using pop3 per hour: (60)
* The maximum each domain can send out per hour (0 is unlimited): (250) - This is SMTP only!
* Email users when they have reached 80% of their bandwidth


Things you don't or shouldn't really enable:

* Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)
(This won't allow PHP scripts to send mail - EG formmail or anything else as they're sent using nobody)
* Keep log files at the end of the month (default is off as you can run out of disk space quickly)

Service Status
System Health and running services - eg Apache, Exim etc.
Green = Good | Yellow = Warning | Red = Trouble
Clients can see the service status through their own Cpanel as well.

Logs
No one tells you where they are but it's very important to know
*Important!
All users have their own seperate log files - every domain has their own logs - eg: sitename.com

* Exim: - /var/log/exim_mainlog -/var/log/maillog -/var/log/exim_paniclog
* Apache: -Error Log: /usr/local/apache/logs/error_log (404 not found errors, etc)
- Access Log: /usr/local/apache/logs/access_log
- Site Logs: /usr/local/apache/domlogs/sitename.com
* Logins: /var/log/secure /var/log/logins_log
* Messages: /var/log/messages
* Cpanel: /usr/local/cpanel/logs/access_log


Other things to know:
Restart Cpanel in SSH #:
/etc/rc.d/init.d/cpanel3 restart

Apache Config Test in SSH: -test httpd.conf file for errors!
/usr/local/apache/bin/apachectl configtest

The configuration file�is located in /usr/local/apache/conf/httpd.conf so you may need to edit it in Pico or your favourite editor and make changes.

Manual Stop - Start of services in SSH: (start | stop | restart) #
service httpd
service exim
service proftpd
service named
service mysql

Overall Cpanel is easy to use and has some nice automated features but a control panel can only do so much, you need to get your hands dirty sometimes!

If you have any other questions, do contact our support department.

 

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

What is Dedicated Hosting?

Dedicated hosting reserves a Web server for a single customer where the customer has exclusive...

How Do I know that I need a Dedicated Server ?

Having a dedicated server gives you high flexibility and a lot of options for your site. Usually...

Basic SSH Commands

We've put together some of the more frequently used SSH commands or linux shell commands, and...

How Long Does it Take to Set Up My Dedicated Server?

It may take up to 48 hours for the server option to appear in your account. Once this option...

I think I Need a Dedicated Server But I do not Have Time or Know How to Manage it?

All server offered by Hosting comapany are fully managed. So you need not to worry about server...