script - change php for domain

djcart

Verified User
Joined
Jun 29, 2021
Messages
122
Hello! Does anyone have a script for changing the PHP version for a specific domain with CloudLinux support? I'm currently using rules in the .htaccess file. I'm wondering if there's a more convenient option?
 
I tried to install this script (https://forum.directadmin.com/threa...nd-cloudlinux-php-selector.62860/#post-326320). However, I ran into some problems. The panel for changing php is displayed only in the User field for the admin. For other users, the process loads endlessly and can't display anything.

Also, when changing php, I get the following error:

Warning: Use of undefined constant cli - assumed 'cli' (this will throw an Error in a future version of PHP) in /usr/local/directadmin/plugins/phpvs/user/index.html on line 86
 
Back
Top