Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


centos_php8.1_upgrade

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
Last revisionBoth sides next revision
centos_php8.1_upgrade [2022/06/01 11:02] juckinscentos_php8.1_upgrade [2022/06/06 13:45] juckins
Line 18: Line 18:
 Install PHP 8.1 on 6 March 2022 using https://computingforgeeks.com/how-to-install-php-centos-rhel-linux/ Install PHP 8.1 on 6 March 2022 using https://computingforgeeks.com/how-to-install-php-centos-rhel-linux/
  
-  yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm +  # dnf module list php 
-  yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm +  # dnf -y module reset php 
-  yum install yum-utils +  # dnf module install php:remi-8.1 
-  yum-config-manager --disable 'remi-php*' +  # dnf install php php-mysqlnd php-pecl-mcrypt libmcrypt libmcrypt-devel 
-  yum-config-manager --enable remi-php81 + 
-  yum repolist +Update the php.ini to my local changes 
-  #yum install php php-{cli,fpm,mysqlnd,zip,devel,gd,mbstring,curl,xml,pear,bcmath,json,opcache,redis,memcache} + 
-  yum install php php-{cli,common,json,mbstring,mysqlnd,pdo,pecl-mcrypt,sodium,xml}+  # systemctl restart httpd 
 +  # systemctl daemon-reload 
 + 
 +Ensure latest version of PHP is installed: 
 + 
 +  php --version
  
 After installation, PHP 8.1 RPMs include the following: After installation, PHP 8.1 RPMs include the following:
 +  # rpm -qa |grep php | sort
 +  oniguruma5php-6.9.8-1.el8.remi.x86_64
 +  php-8.1.6-1.el8.remi.x86_64
 +  php-cli-8.1.6-1.el8.remi.x86_64
 +  php-common-8.1.6-1.el8.remi.x86_64
 +  php-fpm-8.1.6-1.el8.remi.x86_64
 +  php-mbstring-8.1.6-1.el8.remi.x86_64
 +  php-mysqlnd-8.1.6-1.el8.remi.x86_64
 +  php-opcache-8.1.6-1.el8.remi.x86_64
 +  php-pdo-8.1.6-1.el8.remi.x86_64
 +  php-pecl-mcrypt-1.0.5-1.el8.remi.8.1.x86_64
 +  php-sodium-8.1.6-1.el8.remi.x86_64
 +  php-xml-8.1.6-1.el8.remi.x86_64
      
-  [root@tidewater~]# rpm -qa |grep php | sort +Be sure to test the following
-  oniguruma5php-6.9.7.1-1.el7.remi.x86_64 +  * phpinfo.php 
-  php-8.1.3-1.el7.remi.x86_64 +  * https://juckins.net and all ASMAD pages 
-  php-cli-8.1.3-1.el7.remi.x86_64 +  * lastupdated.php and tat_local_php81.php 
-  php-common-8.1.3-1.el7.remi.x86_64 +      * Test 127.0.0.1, localhost, and SERVER IP ADDRESS
-  php-mbstring-8.1.3-1.el7.remi.x86_64 +
-  php-mysqlnd-8.1.3-1.el7.remi.x86_64 +
-  php-pdo-8.1.3-1.el7.remi.x86_64 +
-  php-pecl-mcrypt-1.0.4-5.el7.remi.8.1.x86_64 +
-  php-sodium-8.1.3-1.el7.remi.x86_64 +
-  php-xml-8.1.3-1.el7.remi.x86_64+
  
-Now these errors appear:+These errors appeared:
  
   Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in ...   Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in ...
Line 54: Line 66:
   * Had to back out to PHP v7.4   * Had to back out to PHP v7.4
     * Local copy of Dokuwiki would not render correctly     * Local copy of Dokuwiki would not render correctly
 +      * Fixed upon attempt number 2 in June 2022
 +      * Ensure permissions are correct
     * Local TAT http wget was failing     * Local TAT http wget was failing
 +      * Needed to install php-pecl-mcrypt
 +      * Fixed upon attempt number 2 in June 2022
 +
 +If php-pecl-mcrypt disappears one day, you can use [[https://pecl.php.net/package/mcrypt|PECL]]
 +
 +  pecl update-channels
 +  pecl install mcrypt-1.0.5
 +  
 +Follow note at end of install to update the php.ini
 +
centos_php8.1_upgrade.txt · Last modified: 2022/06/06 13:47 by juckins