Issue update PHP 7 on CentOS 7

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I would like to update PHP 7.0.2.6 to the latest 7.2 version on my CentOS 7 server (with DirectAdmin installed) via SSH. I found many procedures on the internet, but none of them seems to work. I was told the procedure should look like this:

  1. yum install epel-release
  2. rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
  3. yum list installed php*
  4. yum remove php*
  5. yum install --enablerepo=remi-php72 php php-mcrypt php-cli php-gd php-curl
  6. php-mysql php-ldap php-zip php-fileinfo
  7. php -v

I get stuck with step 4, giving the result below. Any thoughts what could be the issue here?

[root@vps ~]# yum list installed php*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ams.edge.kernel.org
 * epel: ams.edge.kernel.org
 * extras: mirror.nforce.com
 * ius: mirror.ehv.weppel.nl
 * remi-php71: remi.mirror.wearetriple.com
 * remi-php72: remi.mirror.wearetriple.com
 * remi-safe: remi.mirror.wearetriple.com
 * updates: centos.mirror.transip.nl
 * webtatic: uk.repo.webtatic.com
Error: No matching Packages to list

Additional information:

[root@vps ~]# dir -A .bash_history .custombuild .rnd .bash_logout epel-release-latest-7.noarch.rpm setup-ius.sh .bash_profile .pki .spamassassin .bashrc remi-release-7.rpm .ssh .cshrc remi-release-7.rpm.1 .tcshrc

Result step 5:

[root@vps ~]# yum install --enablerepo=remi-php72 php php-mcrypt php-cli php-gd php-curl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                     |  30 kB     00:00
 * base: ams.edge.kernel.org
 * epel: ams.edge.kernel.org
 * extras: mirror.nforce.com
 * ius: mirror.amsiohosting.net
 * remi-php71: remi.mirror.wearetriple.com
 * remi-php72: remi.mirror.wearetriple.com
 * remi-safe: remi.mirror.wearetriple.com
 * updates: centos.mirror.transip.nl
 * webtatic: uk.repo.webtatic.com
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
ius                                                      | 2.3 kB     00:00
remi-php71                                               | 3.0 kB     00:00
remi-php72                                               | 3.0 kB     00:00
remi-safe                                                | 3.0 kB     00:00
updates                                                  | 3.4 kB     00:00
webtatic                                                 | 3.6 kB     00:00
(1/3): remi-php72/primary_db                               | 209 kB   00:00
(2/3): remi-php71/primary_db                               | 230 kB   00:00
(3/3): remi-safe/primary_db                                | 1.4 MB   00:00
No package php available.
No package php-mcrypt available.
No package php-cli available.
No package php-gd available.
No package php-curl available.
Error: Nothing to do

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.