MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Tips and Tricks => Topic started by: LotsOfQ on 2017-06-07, 07:12:25

Title: PHP Used and PHP Branch
Post by: LotsOfQ on 2017-06-07, 07:12:25
What are PHP Used and PHP Branch? I am still not completely understand it. What exactly the differences?
Title: Re: PHP Used and PHP Branch
Post by: MRatWork on 2017-06-07, 13:12:28
There are 4 php terms in Kloxo-MR. One of them is 'php branch' and others are 'multiple php', 'secondary php' and 'php used'.

Because Kloxo-MR 7.0 can handle multiple php where every website using different php version. For this situation, we need to set 'default php'. For php-fpm, this 'default php' set via 'php used'. For non php-fpm (only possible in apache; like suphp), 'default php' is 'php branch'.

If we list php via 'yum list php*' we can see various php like php54, php56u and so on. This various php are 'php branch' and install to server via 'yum install'.

Difference with 'php branch', 'multiple php' installed via 'special' treatment (may different trick for each control panel). This 'multple php' (only under php-fpm; remember web servers except apache always use php-fpm) may possible use for every website with select via 'php selected' in 'web features' (in php-fpm) or via modified .htaccess file for apache (non php-fpm; aka php-cgi).
Title: Re: PHP Used and PHP Branch
Post by: tochits on 2017-06-08, 13:16:39
What about 'Secondary PHP'? When is this used?
Title: Re: PHP Used and PHP Branch
Post by: MRatWork on 2017-06-08, 13:35:19
Term of 'secondary php' taken from Kloxo-MR 6.5. This feature only work under Apache with using worker (like suphp_worker/php-fpm_worker) or event (like suphp_event/php-fpm_event) and setting via .htaccess. See content of .htaccess in document root to know more.