Difference between revisions of "CPanel"

From Hostek.com Wiki
Jump to: navigation, search
m
Line 9: Line 9:
 
*The link below will send you to our SmarterMail Video Tutorials Wiki:
 
*The link below will send you to our SmarterMail Video Tutorials Wiki:
 
#https://wiki.hostek.com/CPanel_Tutorials#cPanel
 
#https://wiki.hostek.com/CPanel_Tutorials#cPanel
 +
===Helpful Links===
 +
*This link will take you to our Shared SSL Wiki:
 +
#https://wiki.hostek.com/Shared_SSL#Linux_cPanel_Customers
 +
*This link will take you to our Default Document Wiki:
 +
#https://wiki.hostek.com/Default_document#Changing_the_Default_Document_in_Linux_cPanel
 +
*This link will take you to our MIME Types Wiki:
 +
#https://wiki.hostek.com/Mime_types#Adding_MIME_Types_in_Linux_cPanel
 +
 +
==cPanel File Permissions==
 +
{| class="wikitable floatright"
 +
| colspan="2" style="text-align:center;" | '''User, Group, and World Permissions'''
 +
|-
 +
| style="background-color: #D8D8D8; text-align:center;" | Permission
 +
| style="text-align:center; background-color: #D8D8D8;" | Description
 +
|-
 +
|style="text-align:center" | 0
 +
|style="text-align:center" | No Permission
 +
|-
 +
|style="text-align:center" | 1
 +
|style="text-align:center" | X
 +
|-
 +
|style="text-align:center" | 2
 +
|style="text-align:center" | W
 +
|-
 +
|style="text-align:center" | 3
 +
|style="text-align:center" | WX
 +
|-
 +
|style="text-align:center" | 4
 +
|style="text-align:center" | R
 +
|-
 +
|style="text-align:center" | 5
 +
|style="text-align:center" | RX
 +
|-
 +
|style="text-align:center" | 6
 +
|style="text-align:center" | RW
 +
|-
 +
|style="text-align:center" | 7
 +
|style="text-align:center" | RWX
 +
|-
 +
|style="text-align:center" | 1
 +
|style="text-align:center" | X
 +
|-
 +
|}
 +
{| class="wikitable" align="right"
 +
| colspan="2" style="text-align:center;" | '''Permissions breakdown'''
 +
|-
 +
| style="background-color: #D8D8D8; text-align:center;" | Permission
 +
| style="text-align:center; background-color: #D8D8D8;" | Description
 +
|-
 +
|style="text-align:center" | R
 +
|style="text-align:center" | Read
 +
|-
 +
|style="text-align:center" | W
 +
|style="text-align:center" | Write
 +
|-
 +
|style="text-align:center" | X
 +
|style="text-align:center" | Execute
 +
|}
 +
*There are 2 methods used when adjusting file/folder permissions.
 +
#Login to the File Manager in cPanel
 +
##When you have selected a file or folder click the '''key icon''' at the top to change the permissions.
 +
#Use a FTP client to connect to the server
 +
##Select the file and choose the change permission option.
 +
##If an option is not listed right click the file and select file permissions.
 +
*The the right you will see a breakdown of the Permissions:
 +
*Default file and folder permissions:
 +
#'''Files:''' 644
 +
#'''Folders:''' 755
 +
 +
 +
 +
 +
==cPanel Webmail==
 +
 +
===Accessing Webmail===
 +
#Log in to '''cPanel''' (i.e. '''<nowiki>http://www.yourdomain.com/webmail/</nowiki>''')
 +
#Click on '''Webmail'''.
 +
#Click on '''Go to Webmail Login'''.
 +
#Choose one of the three available Webmail Programs: '''1)NeoMail 2)Horde 3)SquirrelMail'''
 +
#For this tutorial we will use '''SquirrelMail,''' but all three are fairly similar.
 +
#From the main screen Click on '''Options'''. (From here you can change many settings within your Webmail.)
 +
*'''Note:''' You do not have to login to cPanel in order to access your Webmail.
 +
 +
===Creating Folders and Sub-folders===
 +
#While in the '''Options''' menu, Click on '''Folders'''.
 +
#Place the desired name into the '''box''' below the '''Create a Folder''' title.
 +
#If you already have a folder created, you can use the '''drop-down menu''' right below the name box, to choose a sub-folder location.
 +
#Click on '''Create'''.
 +
#In order to see the new folder listed, Click on '''Refresh Folder List'''.
 +
*'''Note:''' You can create as many folders as you need.
 +
 +
===Adding an Entry to the Address Book===
 +
#While in the '''Options''' menu, Click on '''Addresses'''.
 +
#All of the fields are required, except for the 'Additional Information' box.
 +
#Click '''Add Address'''
 +
 +
===Composing Email===
 +
#While in the '''Options''' menu, Click on '''Compose'''.
 +
#To select a Email Address from your Address Book, click on '''Addresses'''
 +
#You can choose how to send them, by ticking the boxes beside: '''To''', '''CC (Carbon Copy)''', or '''BCC (Blind Carbon Copy)'''.
 +
#Click on '''Use Addresses'''.
 +
#Next, fill out your '''Subject''' and the body of the message.
 +
#You can also send an attachment, just '''Scroll Down''' to the bottom of the page.
 +
#Beside the '''Attach''' box, Click on '''Browse'''.
 +
#Choose the file.
 +
#Click on '''Add'''
 +
#To complete everything, Click on '''Send''' on the bottom of the page.
 +
 +
===Deleting and Moving Mail===
 +
*Video tutorial [http://hostek.com/tutorials/cpanel-x3-webmail.html here]
 +
#From your '''Inbox'''
 +
#Tick the box next to the email(s) of choice.
 +
#To trash your Email(s) Click on '''Delete'''.
 +
#To place your Email(s) in a different folder, Click the '''drop-down menu''' and choose the folder you wish to move the Email(s) to.
 +
#Click on '''Move'''
 +
 +
===Create a POP Email Account in cPanel===
 +
*Video tutorial [http://hostek.com/tutorials/cpanel-x3-popemail.html here]
 +
#Login to cPanel.
 +
#Click on '''Email Accounts'''.
 +
#There will already be a '''Default POP Email Account''' listed.
 +
#Fill out the boxes labelled: '''Email''', '''Password''', '''Password( Again)'''.
 +
#Be sure to choose the correct domain name (If you have Parked Domain and/or a Addon Domain) ''' '@ drop-down menu' '''.
 +
#You can set the '''Mailbox Quota Limit''' if you wish.
 +
#Click on '''Create'''
 +
#Click on '''No''' (This can be done later.)
 +
*From the '''Email Accounts''' page you can '''Access Webmail''', '''Change Quota''', '''Change Password''', '''Configure Mail Client''', and '''Delete'''.
 +
*'''Note:''' You can make as many POP Email Accounts as your Hosting Plan will allow.
 +
*'''Don't Forget''' to setup your POP Email Accounts in your preferred Email Client. (I.E. Microsoft Outlook, Mozilla Thunderbird, Eudora, etc.)
 +
 +
===Create a Default (Catchall) Email Address in cPanel===
 +
*Video tutorial [http://hostek.com/tutorials/cpanel-x3-catchall.html here]
 +
*Logging in to cPanel.
 +
#Click on '''Default Address'''.
 +
#Enter the desired email address in the '''Forward to Email Address''' box.
 +
#Now Click on '''Change'''.
 +
*'''Note:''' All emails sent to an address you have not defined, will go to the email address you enter.
  
 
==cPanel Mailing Lists==
 
==cPanel Mailing Lists==
Line 27: Line 164:
 
*'''Note:''' You may also generate/use a Random Password by clicking on '''Password Generator''' and then copy and pasting it into both password text boxes.
 
*'''Note:''' You may also generate/use a Random Password by clicking on '''Password Generator''' and then copy and pasting it into both password text boxes.
  
==Common cPanel Errors==
+
==Forwarding==
*This wiki goes over known cPanel errors that appear often and provides fixes and workarounds for them.
+
===How to add an Email-level Forwarder===
 +
#In your cPanel account click '''Forwarders''' under the '''Mail''' section.
 +
#Clink on '''Add Forwarder''' button.
 +
#In the '''Address to Forward''' section type in a Username you would like to set.
 +
#Next type in the '''Destination''' email address, into the section '''Forward to email address'''
 +
#Then click on '''Add Forwarder''' button to complete.
 +
*Note - You may '''Delete''' and '''Trace''' the forwarding address you created under the '''Functions''' section.
  
 +
===How to add a Domain-level Forwarder===
 +
#In your cPanel account click '''Forwarders''' under the '''Mail''' section.
 +
#Clink on '''Add Domain Forwarder''' button below.
 +
#Choose the appropriate domain and type in the '''Destination''' email address in the '''To''' section.
 +
#Then click on the '''Add Domain Forwarder''' button to complete.
 +
 +
==How to view the Access Logs==
 +
#Login to cPanel
 +
#In the '''"Logs"''' section, click on '''"Raw Access Logs"'''
 +
#Click on the link for the log file you want to download
 +
#Unzip the '''.gz''' with a program such as 7zip
 +
#Open the file with notepad or your favorite text editing program
 +
 +
==How to find the publishing folder==
 +
*Also referred to as the "webroot" or "home path", the publishing folder is where you put site files.
 +
*This directory is live, "published" to the web.
 +
*Our Linux/cPanel plans use the folder "public_html" as the publishing folder.
 +
#You can confirm this by viewing the '''"Stats"''' section in your cPanel.
 +
 +
==cPanel Errors==
 +
===Error Handling===
 +
*The link below will send you to our Error Handling Wiki:
 +
#https://wiki.hostek.com/Error_Handling#cPanel
 +
===Excessive 404 errors causing IP address to be blocked===
 +
*On our shared Linux cPanel servers, generating excessive "''404: File does not exist''" errors will result in the IP address of the visitor generating the errors to get temporarily blocked. 
 +
*The purpose for this temporary block is for performance and manageability of the server and your site.
 +
*Consider this:  Assume that one visitor generates the full number of ''404: File does not exist'' errors within a few minutes minutes and the site in question has 100 visitors over the course of the day. That is 20,000 errors in one day getting logged.  So over the course of a month that is over 600,000 additional errors for the site being logged.  With no restrictions, a busy site with bad code generating multiple 404 errors could very well generate millions of errors being logged in a very short amount of time.  Now multiply that by the number of sites on the server.  As you can imagine, this can quickly cause the server error log to swell to an unmanageable size.
 +
 
 +
===Common Errors===
 +
*This wiki goes over known cPanel errors that appear often and provides fixes and/or workarounds for them.
 
<pre> Sorry, cannot determine nameserver IPs. Please make sure that the domain is registered with a valid domain registrar.</pre>
 
<pre> Sorry, cannot determine nameserver IPs. Please make sure that the domain is registered with a valid domain registrar.</pre>
 
*This is caused by the VPS not being able to lookup whois info for the domain.  
 
*This is caused by the VPS not being able to lookup whois info for the domain.  
Line 40: Line 213:
 
#Click Save.
 
#Click Save.
  
 +
 +
[[Category:VPS]]
 +
[[Category:Control Panels]]
 +
[[Category:cPanel]]
 +
[[Category:Linux-VPS]]
 +
[[Category:VPS]]
 
[[Category:cPanel]]
 
[[Category:cPanel]]
 
[[Category:Misc-Email]]
 
[[Category:Misc-Email]]
Line 45: Line 224:
 
[[Category:Linux-VPS]]
 
[[Category:Linux-VPS]]
 
[[Category:cPanel-VPS]]
 
[[Category:cPanel-VPS]]
 +
[[Category:WHM]]
 +
[[Category:Reseller]]
 +
[[Category:Lucee]]
 +
[[Category:Railo]]
 +
[[Category:Email]]
 +
[[Category:Tutorials]]

Revision as of 19:19, 17 June 2015


cPanel Help

cPanel Documentation

  • The link below will send you to the cPanel Documentation, this will familiarize you with the interface and it's functions:
  1. https://documentation.cpanel.net/display/ALD/cPanel+User+Documentation
  2. For a different version of cPanel, please see this page: https://documentation.cpanel.net/pages/viewpage.action?pageId=1507796

cPanel Video Tutorials

  • The link below will send you to our SmarterMail Video Tutorials Wiki:
  1. https://wiki.hostek.com/CPanel_Tutorials#cPanel

Helpful Links

  • This link will take you to our Shared SSL Wiki:
  1. https://wiki.hostek.com/Shared_SSL#Linux_cPanel_Customers
  • This link will take you to our Default Document Wiki:
  1. https://wiki.hostek.com/Default_document#Changing_the_Default_Document_in_Linux_cPanel
  • This link will take you to our MIME Types Wiki:
  1. https://wiki.hostek.com/Mime_types#Adding_MIME_Types_in_Linux_cPanel

cPanel File Permissions

User, Group, and World Permissions
Permission Description
0 No Permission
1 X
2 W
3 WX
4 R
5 RX
6 RW
7 RWX
1 X
Permissions breakdown
Permission Description
R Read
W Write
X Execute
  • There are 2 methods used when adjusting file/folder permissions.
  1. Login to the File Manager in cPanel
    1. When you have selected a file or folder click the key icon at the top to change the permissions.
  2. Use a FTP client to connect to the server
    1. Select the file and choose the change permission option.
    2. If an option is not listed right click the file and select file permissions.
  • The the right you will see a breakdown of the Permissions:
  • Default file and folder permissions:
  1. Files: 644
  2. Folders: 755



cPanel Webmail

Accessing Webmail

  1. Log in to cPanel (i.e. http://www.yourdomain.com/webmail/)
  2. Click on Webmail.
  3. Click on Go to Webmail Login.
  4. Choose one of the three available Webmail Programs: 1)NeoMail 2)Horde 3)SquirrelMail
  5. For this tutorial we will use SquirrelMail, but all three are fairly similar.
  6. From the main screen Click on Options. (From here you can change many settings within your Webmail.)
  • Note: You do not have to login to cPanel in order to access your Webmail.

Creating Folders and Sub-folders

  1. While in the Options menu, Click on Folders.
  2. Place the desired name into the box below the Create a Folder title.
  3. If you already have a folder created, you can use the drop-down menu right below the name box, to choose a sub-folder location.
  4. Click on Create.
  5. In order to see the new folder listed, Click on Refresh Folder List.
  • Note: You can create as many folders as you need.

Adding an Entry to the Address Book

  1. While in the Options menu, Click on Addresses.
  2. All of the fields are required, except for the 'Additional Information' box.
  3. Click Add Address

Composing Email

  1. While in the Options menu, Click on Compose.
  2. To select a Email Address from your Address Book, click on Addresses
  3. You can choose how to send them, by ticking the boxes beside: To, CC (Carbon Copy), or BCC (Blind Carbon Copy).
  4. Click on Use Addresses.
  5. Next, fill out your Subject and the body of the message.
  6. You can also send an attachment, just Scroll Down to the bottom of the page.
  7. Beside the Attach box, Click on Browse.
  8. Choose the file.
  9. Click on Add
  10. To complete everything, Click on Send on the bottom of the page.

Deleting and Moving Mail

  1. From your Inbox
  2. Tick the box next to the email(s) of choice.
  3. To trash your Email(s) Click on Delete.
  4. To place your Email(s) in a different folder, Click the drop-down menu and choose the folder you wish to move the Email(s) to.
  5. Click on Move

Create a POP Email Account in cPanel

  1. Login to cPanel.
  2. Click on Email Accounts.
  3. There will already be a Default POP Email Account listed.
  4. Fill out the boxes labelled: Email, Password, Password( Again).
  5. Be sure to choose the correct domain name (If you have Parked Domain and/or a Addon Domain) '@ drop-down menu' .
  6. You can set the Mailbox Quota Limit if you wish.
  7. Click on Create
  8. Click on No (This can be done later.)
  • From the Email Accounts page you can Access Webmail, Change Quota, Change Password, Configure Mail Client, and Delete.
  • Note: You can make as many POP Email Accounts as your Hosting Plan will allow.
  • Don't Forget to setup your POP Email Accounts in your preferred Email Client. (I.E. Microsoft Outlook, Mozilla Thunderbird, Eudora, etc.)

Create a Default (Catchall) Email Address in cPanel

  • Video tutorial here
  • Logging in to cPanel.
  1. Click on Default Address.
  2. Enter the desired email address in the Forward to Email Address box.
  3. Now Click on Change.
  • Note: All emails sent to an address you have not defined, will go to the email address you enter.

cPanel Mailing Lists

How to Create a Mailing List

  1. In your cPanel account click on Mailing Lists under the Mail section.
  2. Type in your List Name in the text box.
  3. Type a secure but memorable Pass-phrase in the Password field.
  4. Confirm the password in the Password (Again) field.
  5. Then click on Add Mailing List.

How to Reset the Mailing List Password

  1. In your cPanel account click Mailing Lists under the Mail section.
  2. Under the Functions area click on Change Passwordfor your Mailing List.
  3. Type a secure but memorable pass-phrase in the Password field .
  4. Re-type to confirm the password in the Password (Again) field.
  5. Then click on the Change Password tab which will reset your password.
  • Note: You may also generate/use a Random Password by clicking on Password Generator and then copy and pasting it into both password text boxes.

Forwarding

How to add an Email-level Forwarder

  1. In your cPanel account click Forwarders under the Mail section.
  2. Clink on Add Forwarder button.
  3. In the Address to Forward section type in a Username you would like to set.
  4. Next type in the Destination email address, into the section Forward to email address
  5. Then click on Add Forwarder button to complete.
  • Note - You may Delete and Trace the forwarding address you created under the Functions section.

How to add a Domain-level Forwarder

  1. In your cPanel account click Forwarders under the Mail section.
  2. Clink on Add Domain Forwarder button below.
  3. Choose the appropriate domain and type in the Destination email address in the To section.
  4. Then click on the Add Domain Forwarder button to complete.

How to view the Access Logs

  1. Login to cPanel
  2. In the "Logs" section, click on "Raw Access Logs"
  3. Click on the link for the log file you want to download
  4. Unzip the .gz with a program such as 7zip
  5. Open the file with notepad or your favorite text editing program

How to find the publishing folder

  • Also referred to as the "webroot" or "home path", the publishing folder is where you put site files.
  • This directory is live, "published" to the web.
  • Our Linux/cPanel plans use the folder "public_html" as the publishing folder.
  1. You can confirm this by viewing the "Stats" section in your cPanel.

cPanel Errors

Error Handling

  • The link below will send you to our Error Handling Wiki:
  1. https://wiki.hostek.com/Error_Handling#cPanel

Excessive 404 errors causing IP address to be blocked

  • On our shared Linux cPanel servers, generating excessive "404: File does not exist" errors will result in the IP address of the visitor generating the errors to get temporarily blocked.
  • The purpose for this temporary block is for performance and manageability of the server and your site.
  • Consider this: Assume that one visitor generates the full number of 404: File does not exist errors within a few minutes minutes and the site in question has 100 visitors over the course of the day. That is 20,000 errors in one day getting logged. So over the course of a month that is over 600,000 additional errors for the site being logged. With no restrictions, a busy site with bad code generating multiple 404 errors could very well generate millions of errors being logged in a very short amount of time. Now multiply that by the number of sites on the server. As you can imagine, this can quickly cause the server error log to swell to an unmanageable size.

Common Errors

  • This wiki goes over known cPanel errors that appear often and provides fixes and/or workarounds for them.
 Sorry, cannot determine nameserver IPs. Please make sure that the domain is registered with a valid domain registrar.
  • This is caused by the VPS not being able to lookup whois info for the domain.
  • A work around:
  1. Log in to WHM.
  2. Select Server Configuration.
  3. Select Tweak Settings.
  4. Select the Domains tab.
  5. Change the setting for Allow unregistered domains.
  6. Click Save.