Comments on: How to Install PHP 7.4, 7.3, 7.2 on CentOS 7 and RHEL 7 Server https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/ Thu, 04 Mar 2021 15:34:03 +0000 hourly 1 By: david https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-22850 Thu, 04 Mar 2021 15:34:03 +0000 https://www.linuxtechi.com/?p=7845#comment-22850 In reply to Raza Javed.

Thanks for the post, i am facing the same issue as you. Where you able to fix this?

]]>
By: david https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-22849 Thu, 04 Mar 2021 15:31:14 +0000 https://www.linuxtechi.com/?p=7845#comment-22849 How to intstall this in a secure environment, where there is not direction outside connection

]]>
By: Raza Javed https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-21636 Mon, 07 Sep 2020 14:05:35 +0000 https://www.linuxtechi.com/?p=7845#comment-21636 Hi,

I installed mediawiki using your following tutorial:

https://www.linuxtechi.com/install-mediawiki-on-linux/

it is going good, but when I open my browser, it shows the mediawiki page with a warning that mediawiki 1.34 does not work with PHP version 5.4.16. I must have at least PHP 7.2.9. So, I am trying to upgrade it. I followed your this tutorial for that. Till step 3, it works fine, but when I use yum to install it, there I get an error.
I always use the following yum command to install anything
“yum –disablerepo=\* –enablerepo=c7-media install php”

“c7-media is to link it to baseurl where I mounted my centOS.iso file that contains all packages.” And it contains PHP version 5.4.16.

Now to install this new version of PHP, how to RUN yum command, because “yum install php” does not work for me. it gives me error “unable to find the valid baseurl”. Can you please help me out in this.

OR can you please tell how to get the .tar file for old version of mediawiki (1.24 etc).
Thank you for your help

]]>
By: Nick https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-21504 Tue, 25 Aug 2020 23:39:49 +0000 https://www.linuxtechi.com/?p=7845#comment-21504 I had php5.6w and rh-php7.3
This process replaced php5.6w and now I can not run php in CGI wrapper , it doesnt execute, it downloads the php file.
When I switch to mod_php mode, new php7.4 remi works.
I need to run in CGI wrapper how can I undo this process?
yum history undo # is enough or do I need to yum-config-manager –disable remi-php74 first?
Any help will be highly appreciated.

]]>
By: Nick https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-21503 Tue, 25 Aug 2020 23:29:55 +0000 https://www.linuxtechi.com/?p=7845#comment-21503 How can we undo this process in Centos7.

]]>
By: UncaAlby https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-20966 Wed, 08 Jul 2020 15:14:16 +0000 https://www.linuxtechi.com/?p=7845#comment-20966 In reply to UncaAlby.

I believe part of the problem I encountered was that I had already followed similar instructions to install PHP 5.6. The default for CentOS 7 is PHP 5.4. So in order further upgrade to PHP 7.4 you must disable PHP 5.6. So at Step 2 to “configure PHP 7.x repo” you might also need to add “yum-config-manager –disable remi-php56” (or whatever version had been configured previously). Once that’s done, re-install 7.4, and all is well.

]]>
By: UncaAlby https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-20954 Tue, 07 Jul 2020 21:51:16 +0000 https://www.linuxtechi.com/?p=7845#comment-20954 In reply to UncaAlby.

It seems when I did that, it created a “/bin/php74” executable instead of “/bin/php”, which was easily resolved with a “ln” command.

]]>
By: UncaAlby https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-20953 Tue, 07 Jul 2020 21:43:02 +0000 https://www.linuxtechi.com/?p=7845#comment-20953 You can’t follow these instructions exactly.

What will happen is that it will re-install PHP 5.6, which was just removed.

You have to “yum install php74 php74-php-cli php74-php-mysqld … ” etc.

]]>
By: Daryl https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-14350 Thu, 05 Sep 2019 23:12:57 +0000 https://www.linuxtechi.com/?p=7845#comment-14350 Trying to install php74 from remi repo but it does not install the apache module libphp7.so and no amount of yum search find any apache module in the remi repos. Any help would be greatly appreciated.

]]>
By: Magikal https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/#comment-9718 Sun, 28 Apr 2019 07:58:11 +0000 https://www.linuxtechi.com/?p=7845#comment-9718 very helpful article

]]>