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

darkus

Verified User
Joined
Dec 15, 2005
Messages
127
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.

Edit: Be aware, this will only work this way with Alma 8, not with 9 because of newer openssl.
 
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.
 
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:
Back
Top