View all posts

suPHP and cPanel: What it is, why it’s deprecated, and what to use instead

If you’ve recently logged into a cPanel server and noticed that suPHP is missing, you’re not alone. suPHP was once a popular PHP handler in shared hosting environments, but times have changed. In this article, we’ll break down what suPHP is, why it became popular, why it’s now deprecated, and what you should be using instead.

What is suPHP?

suPHP is a PHP handler that executes PHP scripts as the user who owns the file, rather than the default web server user (e.g., nobody or www-data). This isolation was a huge win for shared hosting providers, as it:

  • Prevented one user’s scripts from interfering with another’s
  • Avoided permission issues
  • Allowed detailed logging and accountability

In a typical Apache + suPHP setup, each PHP request spawns a new process under the user’s UID, runs the script, and then exits.

Why Was suPHP So Popular?

Before technologies like PHP-FPM and LSAPI matured, suPHP was the safest and most cPanel-friendly way to run PHP in multi-tenant environments.

  • It provided security isolation between users
  • Didn’t require complex configuration
  • Was easy to deploy via EasyApache
  • Worked with popular control panels like cPanel/WHM

For many years, suPHP was the default PHP handler in cPanel.

Why suPHP is Deprecated

Despite its early strengths, suPHP hasn’t aged well:

  • Performance Issues: suPHP spawns a new PHP process for every request, which is slow and inefficient. There’s no persistent process or shared opcode cache.
  • Incompatibility with Modern PHP: As PHP evolved (especially PHP 7+), suPHP fell behind in compatibility and performance.
  • No Upstream Maintenance: The last known release was in 2013. The project is effectively dead.
  • cPanel Deprecation: cPanel has officially deprecated suPHP in its Deprecation Plan and recommends modern handlers like PHP-FPM.

While suPHP is still technically available in some cPanel systems via EasyApache 4, it is no longer the default and will likely be removed in a future release.

What Should You Use Instead?

There are two modern and actively maintained alternatives that outperform suPHP in every way:

1. PHP-FPM (FastCGI Process Manager)

  • Comes bundled with cPanel and supported via WHM > MultiPHP Manager
  • Allows each domain/user to have its own PHP pool
  • Fast, supports persistent processes, and works with OPcache
  • Widely supported and officially recommended by cPanel

2. LSAPI (LiteSpeed SAPI)

  • The fastest PHP handler available
  • Available via mod_lsapi (especially if using CloudLinux)
  • Supports opcode caching, persistent processes, and user isolation
  • Excellent for high-concurrency environments and shared hosting
  • Fully compatible with cPanel and PHP Selector

Comparison Table

FeaturesuPHPPHP-FPMLSAPI
Runs as userYesYesYes
Opcode cache supportNoYesYes
PerformancePoorGoodExcellent
Actively maintainedNoYesYes
Works with cPanelDeprecatedYesYes (with CloudLinux)

How to Transition Away from suPHP

  1. Check your current PHP handler in WHM under MultiPHP Manager or EasyApache 4.
  2. Switch to PHP-FPM by enabling it per domain or server-wide.
  3. If you require legacy PHP support or better performance, consider installing CloudLinux with mod_lsapi.
  4. Test your websites thoroughly after switching handlers, as some scripts may require permission adjustments.

Conclusion

suPHP had its time, and it served a critical role in shared hosting security for many years. But with modern alternatives like PHP-FPM and LSAPI offering better performance, security, and long-term support, it’s time to move on.

If you’re still using suPHP, now is the perfect time to plan your migration. Your users (and your server) will thank you.

Related Articles...

QuickHost DC Runner Game

DC Runner the Game

A small side project built by the QuickHost engineering team. Run through a virtual data centre, avoid hazards, and reboot the failing server before time runs out. Play Now: https://dc-runner.quickhost.uk/ Read more