Book Image

cPanel User Guide and Tutorial

By : Aric Pedersen
Book Image

cPanel User Guide and Tutorial

By: Aric Pedersen

Overview of this book

"A great book for getting the most out of your cPanel-supporting web host" If you have web hosting requirements beyond the most basic, you should look for a host that offers cPanel. cPanel gives you tight control over every aspect of your web site, email accounts, and domain names. But once you've got a web site with cPanel support, how do you go about using it? While the documentation included with cPanel may provide a quick reference, to really get the most from it you need a more detailed, systematic tutorial. Read this book to find out exactly how to get the most from cPanel in all aspects of your web site management: web, email, FTP, security, domains, back ups, and more.
Table of Contents (18 chapters)
cPanel: User Guide and Tutorial
Credits
About the Author
Preface
Glossary

Apache Handlers


Apache handlers tell the web server itself how to handle certain types of files. You can define what the server does with certain types of files by clicking Apache Handlers in cPanel. There are a couple of handlers already installed.

One potential use for this feature is to be able to create files that contain both HTML code and PHP code, and have both be parsed properly by Apache. Normally, if you want the code to be parsed properly you can only have PHP code in files that end in .php, .php4, or .php3. If you place PHP code in an .html file, the code will be displayed on screen as text. If you need to have both types of code in a single file, you need to tell Apache that it needs to expect PHP code in .html or .htm files. To do this, add the line Extensions: .html .htm Handler: application/x‑httpd‑php. From now on, Apache will parse PHP code if it is found inside .html or .htm files.

Note

Be careful with Apache Handlers! Improper use could cause your website not to work properly...