Hello,
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.
So, I'm wondering if I need to remove the existing PHP version that is included with CentOS? Any suggestions or a better way to do this?
TIA
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.
On Tue, 2021-12-14 at 09:57 -0800, 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:
What about support, i.e. security updates? When I have a look at https://access.redhat.com/support/policy/updates/rhscl-rhel7
The only php SCL on that page that isn't EOL yet is php 7.3 Supported multi php installations seems difficult with that (maybe there is more behind your www.softwarecollections.org link?), although it would be possible to have the original non SCL php 5.4 in addition to the SCL php 7.3.
Best Regards, Markus
On 12/14/2021 1:15 PM, Markus Falb wrote:
The only php SCL on that page that isn't EOL yet is php 7.3 Supported multi php installations seems difficult with that (maybe there is more behind yourwww.softwarecollections.org link?), although it would be possible to have the original non SCL php 5.4 in addition to the SCL php 7.3.
The general concept is to install the 3rd party package to /opt and use environment variables like path to drive a service to use the custom location for your desired version.
You might find that someone has packaged the version you desire in the COPR system. I used that for BackupPC 4 before it was available in EPEL.
On Tue, 2021-12-14 at 19:18 -0800, Kenneth Porter wrote:
You might find that someone has packaged the version you desire in the
Yes, but you have to think about it's maintainance status, be it a SCL or packages in COPR or elsewhere. If it's unmaintained you might not want to use it, especially if Software weaknesses might be exploited remotely.
Regarding the php SCLs by RedHat (which were rebuilt by a CentOS Sig): You will not get security updates for php < 7.3.
Best Regards, Markus
On Wed, Dec 15, 2021 at 02:31:20PM +0100, Markus Falb wrote:
Yes, but you have to think about it's maintainance status, be it a SCL or packages in COPR or elsewhere. If it's unmaintained you might not want to use it, especially if Software weaknesses might be exploited remotely.
Take a look at Remi Collet's https://rpms.remirepo.net/. He is the maintainer for the Fedora packages and the SCLs, and very passionate about PHP. As I understand it, he is providing security updates for the 7.4 SCL available from there through the end of next year (when upstream PHP drops support).
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@centos.org 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?
On 08/14/2022 04:22 PM, Kenneth Porter wrote:
On 8/14/2022 12:36 PM, H wrote:
I do not see SCL having php 7.4, only php 7.3, or did I miss it?
I don't see it, either. I suggest getting the source for 7.2 or 7.3 and updating it to 7.4. Your contribution to the community would be welcome!
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
While I would prefer to install php 7.4 from SCL, both IUS and Remi's repositories do carry it. Do you see a reason to choose one over the other bearing in mind I need to have multiple versions installed used by different web apps?
--On Monday, August 15, 2022 1:03 PM -0400 H agents@meddatainc.com wrote:
While I would prefer to install php 7.4 from SCL, both IUS and Remi's repositories do carry it. Do you see a reason to choose one over the other bearing in mind I need to have multiple versions installed used by different web apps?
I'm a minor PHP user and 7.3 has been adequate for running WordPress. So I haven't felt pressured to investigate the IUS and Remi offerings.
I'd suggest downloading both and querying the packages to compare. Use "rpm -qplv" to list the files included, and "rpm -qp --scripts" to see what other modifications they'll make to your system. I always do that on "alien" packages to make sure they won't do anything unexpected to my system. (I so wish Windows packaging was this simple!)
On August 15, 2022 3:30:00 PM EDT, Kenneth Porter shiva@sewingwitch.com wrote:
--On Monday, August 15, 2022 1:03 PM -0400 H agents@meddatainc.com wrote:
While I would prefer to install php 7.4 from SCL, both IUS and Remi's repositories do carry it. Do you see a reason to choose one over the other bearing in mind I need to have multiple versions installed used
by
different web apps?
I'm a minor PHP user and 7.3 has been adequate for running WordPress. So I haven't felt pressured to investigate the IUS and Remi offerings.
I'd suggest downloading both and querying the packages to compare. Use "rpm -qplv" to list the files included, and "rpm -qp --scripts" to see what other modifications they'll make to your system. I always do that on "alien" packages to make sure they won't do anything unexpected to my system. (I so wish Windows packaging was this simple!)
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Good suggestions, thank you.
On 08/15/2022 08:29 PM, H wrote:
On August 15, 2022 3:30:00 PM EDT, Kenneth Porter shiva@sewingwitch.com wrote:
--On Monday, August 15, 2022 1:03 PM -0400 H agents@meddatainc.com wrote:
While I would prefer to install php 7.4 from SCL, both IUS and Remi's repositories do carry it. Do you see a reason to choose one over the other bearing in mind I need to have multiple versions installed used
by
different web apps?
I'm a minor PHP user and 7.3 has been adequate for running WordPress. So I haven't felt pressured to investigate the IUS and Remi offerings.
I'd suggest downloading both and querying the packages to compare. Use "rpm -qplv" to list the files included, and "rpm -qp --scripts" to see what other modifications they'll make to your system. I always do that on "alien" packages to make sure they won't do anything unexpected to my system. (I so wish Windows packaging was this simple!)
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Good suggestions, thank you.
If any C7 user has an opinion on whether to use IUS or Remi's repository for php 7.4, I would love to hear it. As discussed earlier, I am used to SCL but it is not available there.
Hello,
Am 20.08.2022 02:10, schrieb H:
If any C7 user has an opinion on whether to use IUS or Remi's repository for php 7.4, I would love to hear it. As discussed earlier, I am used to SCL but it is not available there.
I have been using Remi's repo for years and it works great.
It also has a built-in mechanism to run multiple versions in parallel.
The only thing you have to look out for is the dedicated paths it uses, such as /opt/remi/php* and /etc/opt/remi.
Kind regards, Steve
On 08/20/2022 10:58 AM, Steve Meier wrote:
Hello,
Am 20.08.2022 02:10, schrieb H:
If any C7 user has an opinion on whether to use IUS or Remi's repository for php 7.4, I would love to hear it. As discussed earlier, I am used to SCL but it is not available there.
I have been using Remi's repo for years and it works great.
It also has a built-in mechanism to run multiple versions in parallel.
The only thing you have to look out for is the dedicated paths it uses, such as /opt/remi/php* and /etc/opt/remi.
Kind regards, Steve _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Thank you for sharing. I will look at his repository.
By the way, is anyone running php 8.0/8.1 on CentOS 7? Again, it is not available on SCL.