What is the proper way to install php 7.3 on Rhel 9?

darkus

Verified User
Joined
Dec 15, 2005
Messages
129
I’m migrating to a new server with rhel9, however I have one domain that requires php 7.3

It seems that php is not totally compatible with rhel 9

From some basic googling it seems it’s still possible to run using remi, but I’ve never used it so I wanted to check in here and see if it plays nicely with DA/custobuild or if there is an even easier way to do it?

I would need php7.3 as well as php fpm 73

I’m ok building it once and never again for that domain. It’s not like there are any new pho7.3 versions coming
 
Last edited:
You don't need Remi for that. Directadmin supports that as well (or will install a repo if required). I just don't know if you can limit the choice option afterwards to 1 domain. Most likely everybody can choose it.

Try like this:
da build set phpX_release 7.3
the X stands for the number like php3 or php4 depending on how many php versions you already have running. I would suggest to use the last free option.

And then do the rest, I will use php3_mode as example and presume you're using php-fpm:
Code:
da build set php3_mode php-fpm
da build php 7.3
da build rewrite_confs
after that, switch that one domain to php 7.3 via the php selector and you're done.

Do at your own risk. DA does support these EOL versions in way of installing, but it does not do any security patches like Cloudlinux does. So your older php versions can be vulnerable or at risk if they have leaks/issues.
 
Last edited:
You don't need Remi for that. Directadmin supports that as well (or will install a repo if required). I just don't know if you can limit the choice option afterwards to 1 domain. Most likely everybody can choose it.

Try like this:
da build set phpX_release 7.3
the X stands for the number like php3 or php4 depending on how many php versions you already have running. I would suggest to use the last free option.

And then do the rest, I will use php3_mode as example and presume you're using php-fpm:
Code:
da build set php3_mode php-fpm
da build php 7.3
da build rewrite_confs
after that, switch that one domain to php 7.3 via the php selector and you're done.

Do at your own risk. DA does support these EOL versions in way of installing, but it does not do any security patches like Cloudlinux does. So your older php versions can be vulnerable or at risk if they have leaks/issues.
Oh wow ok it seemed like php7.x catnt run on rhel/centos9 from my basic google search. You just made my day! Going to get my server upgraded and on the way soon.

Thanks again for this advice, very very much appreciated!
 
Thanks again for this advice, very very much appreciated!
Oh wait sorry. DA does support installation, but Alma9 does indeed not because the version of OpenSSL is higher. I have been a bit blind and read an 8 while you wrote 9, sorry for that.

To be able to run PHP 7.3 you need Almalinux 8, other wise it won't work.
Or you need to compile openssl and run 2 versions of that, which most likely give issues. Like you probably can't use custombuild options.

So to be able to use php 7.3 you need Alma 8.

First post was correct, with CB it's possible.
 
Last edited:
Oh wait sorry. DA does support installation, but Alma9 does indeed not because the version of OpenSSL is higher. I have been a bit blind and read an 8 while you wrote 9, sorry for that.

To be able to run PHP 7.3 you need Almalinux 8, other wise it won't work.
Or you need to compile openssl and run 2 versions of that, which most likely give issues. Like you probably can't use custombuild options.

So to be able to use php 7.3 you need Alma 8.
Ah ok understood, thanks anyways. I actually just finished installing centos 9 stream but it shouldbe easy enough to reinstall alma8 or centos 8.

Now to figure out why CSF doesnt work with centos9.. :)
 
centos 9 stream but it shouldbe easy enough to reinstall alma8 or centos 8.
As I understand the new "stream" versions of Centos would be even more "beta" than Fedora which made most of us switch to Alma Linux 8.

As for Centos 9 I don't know, but we have several servers with Alma 9 running CSF without issues. ;)
 
As I understand the new "stream" versions of Centos would be even more "beta" than Fedora which made most of us switch to Alma Linux 8.

As for Centos 9 I don't know, but we have several servers with Alma 9 running CSF without issues. ;)
Yes now im learning about "stream". This might have been a mistake, i miss RHEL already. More reason to go back to 8 and stable too
 
Not agree ,all our servers that has AL9 have 8.3 , 7.3 and 7.4 and even have 5.6 installed so this works
@darkus as described here :
Oh interesting! you did not run into the issue with openssl? you just built the php 7.4 for example with custombuild and everythign was ok (even with php-fpm)?

(being able to do 5.6 will be an absolute game changer for my install as i have one pesky install using 5.6 that i could fold in. cautiously optimistic right now!!)
 
Last edited:
you just built the php 7.4 for example with custombuild and everythign was ok (even with php-fpm)?
Yes (dont forget to execute rewrite_confs after build) and use the latest DA
being able to do 5.6 will be an absolute game changer
No problem :)
Like i said 5.6 is no issue, did you follow the link and read the release notes ? it states :
This change allows using any PHP version (from 5.6 to 8.2) on Debian 12 and RHEL 9 systems
 
Yes (dont forget to execute rewrite_confs after build) and use the latest DA

No problem :)
Like i said 5.6 is no issue, did you follow the link and read the release notes ? it states :
Yes I read it after you posted the link and it seems too good to be true :) Thanks I will try this out with RHEL9 this weekend most likely. THis is a game changer!
 
Not agree ,all our servers that has AL9 have 8.3 , 7.3 and 7.4 and even have 5.6 installed so this works
Ah zo then I -was- right. I thought I read that somewhere in the past, but couldn't find it anymore and searching only gave result that it was not possible. So thought I was wrong and custom openssl was required.
Pff LoL... then I can re-edit my post again. :)

Thanks for correcting me @Active8 and @darkus LoL... my mind is playing tricks with me. :)
 
Ah zo then I -was- right. I thought I read that somewhere in the past, but couldn't find it anymore and searching only gave result that it was not possible. So thought I was wrong and custom openssl was required.
Pff LoL... then I can re-edit my post again. :)

Thanks for correcting me @Active8 and @darkus LoL... my mind is playing tricks with me. :)
Alls well that ends well, I really appreciate both your help. I plan to setup with multiple php versions from 8, 7.4, 7.3 and 5.6.
Great community and still love DA after all these years!
Will report back if it works (or does not work)
 
Back
Top