Re: OT:: Multiple PHP versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 12/14/2021 12:57 PM, Kenneth Porter wrote:
> On 12/14/2021 9:38 AM, TE Dukes wrote:
>> Been trying to get multiple versions of PHP on a CentOS 7 machine, off and
>> on for the past couple months. I have followed 5 or 6 different howtos but
>> none work. They are very similar and they seems to be done on a fresh
>> install as most do an apache install is the steps. I setup two virtualhosts
>> one for PHP5.6 and one for PHP 7.4. When I create a file with phpinfo, it
>> reports back 5.6.xxx on both sites.
>
> You should be using Software Collections to install additional versions:
>
> https://www.softwarecollections.org/en/about/
>
> Instead of running PHP within the Apache binary, use a proxy. I suggest learning how to use fcgi. Your VirtualHost could include a directive like this:
>
> SetHandler "proxy:fcgi://127.0.0.1:9000
>
> Install rh-php73-php-fpm (for example) with yum to run the proxy service.
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos

I do not see SCL having php 7.4, only php 7.3, or did I miss it?

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux