PHP Version not Change after change in MultiPHP Manager

jsofari

Member
Dec 22, 2022
5
2
3
Indonesia
cPanel Access Level
Root Administrator
I use PHP version 7.2 as the default, then I create a subdomain and use PHP 8.1 for the subdomain, but when I try php -v in the subdomain directory what appears is version 7.2. I've tried changing htaccess, restarting php-fpm and restarting apache but still php7.2 appears
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! That's normal behavior - the command line doesn't have any concept of the directory structure for MultiPHP. A better test would be to create a PHP info page in the directory and then visit that page in the browser. I would expect that to show the customization on the directory level.