Overview
With Prabhu Host's CloudLinux-powered web hosting in Nepal, you can assign different PHP versions to different directories or subdomains within your cPanel account. This is especially useful if you're running legacy applications alongside newer ones that require the latest PHP features. Thanks to CloudLinux’s Alt-PHP and LiteSpeed integration, managing this setup is easy through .htaccess.
Step 1: View Installed PHP Versions
Connect to your server via SSH and run the following command to list available PHP versions:
ls /opt/alt | grep php
