Ok, after an AWS upgrade, my PHP version abruptly changed from 7.1.8. to 5.4.16. Previously I was using 7.1.8.
To chg back the PHP version to 7.1.8, i tried this. Under Virtualmin -> Server Configurations -> PHP Versions, it says, "This virtual server is using the mod_php or FPM execution mode for PHP, such does not allow per-directory version selection".
So i went to Virtualmin -> System Settings -> Server Templates -> Default -> PHP Options, and selected "Highest Available" but still the PHP version is 5.4.16 (shown my phpinfo output) after Apache restart. Although i have 7.0.27, and 7.1.8. Previously I was using 7.1.8.
How do I fix this?