Control Web Panel

WebPanel => Information => Topic started by: gpslab on February 08, 2019, 10:04:47 AM

Title: I want to change the PHP version of only single domain
Post 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
Title: Re: I want to change the PHP version of only single domain
Post by: ginevra on February 08, 2019, 12:09:53 PM
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
Title: Re: I want to change the PHP version of only single domain
Post by: Netino on February 09, 2019, 01:30:57 AM
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
Title: Re: I want to change the PHP version of only single domain
Post by: ring_c on February 09, 2019, 06:32:20 PM
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.
Title: Re: I want to change the PHP version of only single domain
Post by: ginevra on February 10, 2019, 09:24:45 AM
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.