How to Set PHP Version Per Folder in cPanel

A step-by-step guide

Evans

Last Update 4 giorni fa

These steps are only applicable to cPanel hosting

  • Go to cPanel > MultiPHP Manager.


  • Select your domain and choose the PHP version you want, then click Apply.


  • Open .htaccess in /public_html/ to copy the PHP handler code.

  • Paste that code into a .htaccess file inside any folder
    (e.g., /forum/) to apply that PHP version there.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us