Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


php8.2_on_rocky_linux_8

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
php8.2_on_rocky_linux_8 [2023/06/22 10:52] juckinsphp8.2_on_rocky_linux_8 [2024/01/17 17:28] (current) juckins
Line 1: Line 1:
-==== PHP 8.2 on Rocky Linux 8 and Rocky Linux 9 ====+==== PHP 8.2 on Rocky Linux 9 ====
  
-Follow notes at [[https://blog.remirepo.net/post/2022/12/08/PHP-version-8.2.0-is-released|Remi Repo blog]] and [[https://www.linuxcapable.com/how-to-install-php-on-rocky-linux/|linuxcapable.com]]+Follow notes at [[https://blog.remirepo.net/post/2022/12/08/PHP-version-8.2.0-is-released|Remi's RPM Repo Blog]] and [[https://www.linuxcapable.com/how-to-install-php-on-rocky-linux/|linuxcapable.com]]
  
 +  dnf config-manager --set-enabled crb
 +  dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm 
 +  NOTE: You may not want the following: dnf install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
 +  dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm
   dnf module reset php   dnf module reset php
-  dnf module install php:remi-8.2+  dnf module list php 
 +  dnf module enable php:remi-8.2 
 +  dnf install php php-cli php-mysqlnd php-opcache php-pdo php-pecl-mcrypt php-sodium
  
 +Run ''php -v'' to verify correct version is installed.
  
 After the install, these PHP packages should be on the system: After the install, these PHP packages should be on the system:
- +  oniguruma5php-6.9.8-1.el9.remi.x86_64 
-  php-8.2.0~RC7-8.el8.remi.x86_64 +  php-8.2.7-2.el9.remi.x86_64 
-  php-cli-8.2.0~RC7-8.el8.remi.x86_64 +  php-cli-8.2.7-2.el9.remi.x86_64 
-  php-common-8.2.0~RC7-8.el8.remi.x86_64 +  php-common-8.2.7-2.el9.remi.x86_64 
-  php-fpm-8.2.0~RC7-8.el8.remi.x86_64 +  php-fpm-8.2.7-2.el9.remi.x86_64 
-  php-mbstring-8.2.0~RC7-8.el8.remi.x86_64 +  php-mbstring-8.2.7-2.el9.remi.x86_64 
-  php-mysqlnd-8.2.0~RC7-8.el8.remi.x86_64 +  php-mysqlnd-8.2.7-2.el9.remi.x86_64 
-  php-opcache-8.2.0~RC7-8.el8.remi.x86_64 +  php-opcache-8.2.7-2.el9.remi.x86_64 (this may not be needed) 
-  php-pdo-8.2.0~RC7-8.el8.remi.x86_64 +  php-pdo-8.2.7-2.el9.remi.x86_64 
-  php-pecl-mcrypt-1.0.5-1.el8.remi.8.2.x86_64 +  php-pecl-mcrypt-1.0.6-1.el9.remi.8.2.x86_64 
-  php-sodium-8.2.0~RC7-8.el8.remi.x86_64 +  php-sodium-8.2.7-2.el9.remi.x86_64 
-  php-xml-8.2.0~RC7-8.el8.remi.x86_64 +  php-xml-8.2.7-2.el9.remi.x86_64
- +
- +
-Why is RC7 listed in the above??+
  
 One of my VMs had these installed, but I removed them: One of my VMs had these installed, but I removed them:
Line 30: Line 34:
   php-pecl-zip   php-pecl-zip
  
 +If you want to go back down a version, follow the steps above to reset/list/enable the version you want.  Then ''rpm -qa |grep php'' to find the packages that need to be downgraded to the previous version.  Remove all those RPMs.  Then do the ''dnf install php'' packages command to get the version you desire.  
  
php8.2_on_rocky_linux_8.1687445562.txt.gz · Last modified: 2023/06/22 10:52 by juckins