In this blog, we’ll explain What Is PHP Handler and How To Change PHP Handlers In WHM (Web Host Manager) with a step-by-step visual guide. This is especially useful for system administrators or website owners managing VPS or dedicated servers using cPanel/WHM.
If you are running a website on a cPanel server, understanding what is PHP handler and learning how to configure it correctly is essential for optimal performance and security. A PHP handler defines how Apache interacts with PHP scripts on your web server. Choosing the right one can significantly affect your site’s load time, resource usage, and compatibility.
What is a PHP Handler?
A PHP Handler is a method by which Apache processes PHP files. It acts as a bridge between your web server and the PHP interpreter. There are several types of handlers, each with its own use case:
- CGI: Older and stable, but not the most performance-efficient.
- suPHP: Secure but slower. Ideal for shared environments.
- DSO (mod_php): Fast, but runs PHP as Apache user (less secure).
- FCGI (FastCGI): Recommended for performance and better resource management.
Why it matters: The wrong PHP handler can increase memory usage or cause permission issues. Choosing the right handler ensures stability, performance, and security.
When Should You Change PHP Handlers?
- You’re migrating servers with a different PHP environment.
- You want to improve performance or reduce resource load.
- Your current handler is outdated or unsupported.
- Specific PHP scripts or CMS platforms require a different handler.
HostraGo Tip: If you’re unsure which handler to choose, consult with your web hosting provider. At HostraGo, we assist clients in customizing PHP settings for optimal performance.
What Is PHP Handler and How To Change PHP Handlers In WHM (Step-by-Step Guide)
Let’s walk through the exact process using WHM. Make sure you have root access to proceed.
Step 1: Log into WHM Panel
Navigate to your WHM login at https://yourserverIP:2087
. Enter your root credentials.
Step 2: Search for “MultiPHP Manager”
In the left sidebar search bar, type “software” and find MultiPHP Manager.

Step 3: Open MultiPHP Manager
Click on MultiPHP Manager to access the interface for PHP configuration. It allows you to assign different PHP versions and handlers to individual domains or globally.
Step 4: Change the PHP Handler
Click the dropdown menu under the PHP Handler column. Select from options like cgi
, fcgi
, or suphp
.
For example, if you’re using PHP 7.4
, and it’s set to cgi
, you can change it to fcgi
for better performance.

Step 5: Apply Changes
Once you select your preferred handler, changes are applied instantly. No need to reboot Apache. However, it’s good practice to test your site for compatibility after switching handlers.
Best Practices When Changing PHP Handlers
- Always backup your website before making configuration changes.
- Test on staging environment if possible.
- Monitor server load and performance post-change.
- Ensure compatibility with your web application (e.g., WordPress, Magento, Laravel).
Common Issues and Troubleshooting
- 500 Internal Server Error: Usually due to permission conflict or .htaccess incompatibility.
- Slow performance after change: May need to switch to a more efficient handler like FCGI.
- Script errors: Some scripts may depend on specific handlers.
For quick assistance, visit our Support Center or raise a ticket.
Final Thoughts
Understanding and managing What Is PHP Handler and How To Change PHP Handlers In WHM can significantly improve your hosting experience. Whether you’re running high-traffic sites or just starting with shared hosting, proper configuration matters. At HostraGo, we provide flexible hosting solutions with full root access to help you control every aspect of your server.