AnclaNET
cPanel



How do I add an Apache handler?
How do I change my account password in Cpanel?
How do I create custom error pages?
How do I login to Cpanel?
How do I password protect a directory?
Is there a secure https login for Cpanel?
My counter doesn't work. All it says is: cannot open /var/cpanel/Counters/counter.dat
What are some common error codes?





How do I add an Apache handler?
1) Click on the 'Apache handlers' link in Cpanel. (under the 'Site Management' header.)
2) Enter the extension you wish to add in the first field.
3) Enter the handler in the second field.
4) Click on the 'Add' button.



How do I change my account password in Cpanel?
1) Click on 'Change Password' under the 'Site Management' header in Cpanel.
2) Enter your existing password where it says 'Old Password:'.
3) Enter your new password where it says 'New Password:'.
4) Enter it again to confirm where it says 'New Password (again)'.
5) Click on the 'Change your password now!' button.



How do I create custom error pages?
Error pages are served to Internet users when any one of a variety of errors occur, such as when a user enters an incorrect URL or is not authorized to access a specific directory in your web site. Companies often customize error pages to brand them with a specific corporate image and a link to their home page. You do not have to customize these pages - the error page is always available, whether customized or not.

To create or modify a customized error page:
Click on the Error Pages link under the 'Site Management' header in Cpanel.
Click on the button of the required error page, such as the 404 button.
Enter the HTML code for the error page. You can use the buttons at the top of the page to insert variables into the displayed code.

Example:
404 Not Found
The requested page, is not available.

Click on the SAVE button. Your page for the selected error should now appear as your custom page.



How do I login to Cpanel?
You can login to Cpanel with the url that is in your Welcome email: http://servername.hostname.com/cpanel/
or, if your domain has propagated, you can use: http://yourdomain.com/cpanel/



How do I password protect a directory?
You can password protect directories within your site from unauthorized users by using 'Web Protect'. This allows you to restrict material to only authorized users or store sensitive material online.

To password protect a directory:

Click on the Web Protect link under the Site Management header in Cpanel.
Navigate to the directory that you want to protect. Select a folder by clicking on the folder name link, or open a folder by clicking on the folder icon.
Click on the tick box next to the LOCK icon. (make sure you do this, this is something most people forget)
Enter the name that you want to appear in the Protected Resource Name field.
Click on the SAVE button.

Generally, you now need to add at least one authorized user to enable access to the directory. Refer to Adding an authorized user for more information.

When you check to make sure the password protect is working, please make sure you aren't just suffering from browser caching issues.



Is there a secure https login for Cpanel?
Yes, there is.
Try: https://www.domain.com:2083
or: https://server.hostname.com:2083

You will get a warning message, but this is normal. The transferred data is still encrypted with 128 bit encryption in spite of the warning.



My counter doesn't work. All it says is: cannot open /var/cpanel/Counters/counter.dat
If you get this error message, please submit a support ticket and we can correct this for you. This happens once in a while, as Cpanel creates the .dat file with incorrect permissions.



What are some common error codes?
Here is a list of many common error codes:


Succesful Client Requests:
200 OK
201 Created
202 Accepted
203 Non-Authorative Information
204 No Content
205 Reset Content
206 Partial Content


Client Request Redirected:
300 Multiple Choices
301 Moved Permanently
302 Moved Temporarily
303 See Other
304 Not Modified
305 Use Proxy


Client Request Errors:
400 Bad Request
401 Authorization Required
402 Payment Required (not used yet)
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable (encoding)
407 Proxy Authentication Required
408 Request Timed Out
409 Conflicting Request
410 Gone
411 Content Length Required
412 Precondition Failed
413 Request Entity Too Long
414 Request URI Too Long
415 Unsupported Media Type


Server Errors:
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported

You can use these error codes to specify your own custom error pages through the .htaccess file.

For example, supposing you want a custom page for anyone who experiences an internal server error, you would put this in the .htaccess file:

ErrorDocument 500 /errorpages/500error.html

This is of course assuming the file you want displayed is 500error.html located in the /errorpages directory.