Author Topic: I want to change the PHP version of only single domain  (Read 387 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
I want to change the PHP version of only single domain
« 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

Offline
*
Re: I want to change the PHP version of only single domain
« Reply #1 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

Offline
***
Re: I want to change the PHP version of only single domain
« Reply #2 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

Offline
***
Re: I want to change the PHP version of only single domain
« Reply #3 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.

Offline
*
Re: I want to change the PHP version of only single domain
« Reply #4 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.