Control Web Panel
WebPanel => Information => Topic started by: gpslab on February 08, 2019, 10:04:47 AM
-
Hello,
I have multiple domain hosted on my CWP, I want to change the PHP version of only single domain. (Not for all domains)
How can I do it.
My current PHP version: 5.6.37 and I want to change it to 7.x.x for only one domain.
Please help
-
You can use PHP-FPM Selector and compile all php version you need. First you must select module from option list(if you want select module), then compile php.
When the system finishes compiling, go to the configuration
Manage WebServers Configuration, selet the user, then the domain or sub domain, create configuration, select apache php-fpm and the version of php you need. Check Rebuilt vhosts option and save
-
Please just let me know if I am wrong, but I am afraid that PHP for only one domain could work only with the Php-CGI version, not Php-FPM.
Has anyone managed to use Php-FPM per domain, and / or along with the feature of choosing versions per directory .. ??
Regards,
Netino
-
Please just let me know if I am wrong, but I am afraid that PHP for only one domain could work only with the Php-CGI version, not Php-FPM.
Has anyone managed to use Php-FPM per domain, and / or along with the feature of choosing versions per directory .. ??
Regards,
Netino
Yes. I manage different PHP version using PHP-FPM.
-
Hello, PHP-FPM Selector can run only a single PHP-FPM version per domain and subdomain but you can select any versions you want, PHP Switcher can have only a single version active at the same time but you can select the version you want , PHP Selector you can run all at the same time even as a different per folder.
So, gpslab can run default php for all other domains and php-fpm for one domain.
You can configure all from webserver menu>webserver main config and webserver domain config.