How to Manage Apache Handlers in cPanel
If you are a website owner who uses cPanel to manage your server, you may need to configure Apache handlers at some point. Apache handlers tell the Apache web server how to handle different file types. By default, Apache can handle common file types like HTML, PHP, and images. However, you may need to configure custom handlers for specific file types or scripts. In this guide, we will show you how to manage Apache handlers in cPanel.
Accessing Apache Handlers in cPanel
To manage Apache handlers in cPanel, follow these steps:
- Log in to your cPanel account.
- Scroll down to the "Advanced" section and click on "Apache Handlers."
Adding a Custom Apache Handler
If you need to add a custom Apache handler for a specific file type, you can do so by following these steps:
- In the "Add Handler" section, enter the handler extension (e.g., .cgi).
- Select the handler type (e.g., cgi-script).
- Click on the "Add" button to save your changes.
Editing or Removing an Apache Handler
If you need to edit or remove an existing Apache handler, follow these steps:
- Scroll down to the "Current Handlers" section.
- To edit a handler, click on the "Edit" button next to the handler and make your changes. Click "Save" to apply the changes.
- To remove a handler, click on the "Remove" button next to the handler.
Common Apache Handler Types
Here are some common Apache handler types that you may need to configure:
- php-script: Handles PHP scripts.
- cgi-script: Handles CGI scripts.
- perl-script: Handles Perl scripts.
- ssi-script: Handles Server Side Includes.
Make sure to use the appropriate handler type for the file type or script you are working with.
Conclusion
Managing Apache handlers in cPanel is essential for customizing how the Apache web server handles different file types and scripts on your website. By following the steps outlined in this guide, you can easily add, edit, or remove Apache handlers to meet your specific needs. Make sure to use the correct handler types for the files or scripts you are working with to ensure proper functionality. If you have any questions or need further assistance, consult cPanel's documentation or contact your web hosting provider for support.