centos_php8.1_upgrade
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
centos_php8.1_upgrade [2022/03/06 18:06] – juckins | centos_php8.1_upgrade [2022/06/06 13:47] (current) – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== CentOS | + | ==== Rocky Linux PHP 8.1 Upgrade ==== |
Pre-existing PHP 7.4 RPMs: | Pre-existing PHP 7.4 RPMs: | ||
Line 18: | Line 18: | ||
Install PHP 8.1 on 6 March 2022 using https:// | Install PHP 8.1 on 6 March 2022 using https:// | ||
- | | + | |
- | | + | |
- | | + | |
- | yum-config-manager --disable 'remi-php*' | + | # dnf install php php-mysqlnd php-pecl-mcrypt |
- | yum-config-manager --enable | + | |
- | yum repolist | + | |
- | #yum install php php-{cli,fpm,mysqlnd, | + | |
- | yum install php php-{cli, | + | |
- | After installation, | + | Update |
- | [root@tidewater: | + | |
- | oniguruma5php-6.9.7.1-1.el7.remi.x86_64 | + | |
- | php-8.1.3-1.el7.remi.x86_64 | + | |
- | php-cli-8.1.3-1.el7.remi.x86_64 | + | |
- | php-common-8.1.3-1.el7.remi.x86_64 | + | |
- | 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 | + | # systemctl restart httpd |
+ | # systemctl daemon-reload | ||
+ | |||
+ | Ensure latest version of PHP is installed: | ||
+ | |||
+ | # php --version | ||
+ | |||
+ | After installation, | ||
+ | # 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 | ||
+ | |||
+ | Be sure to test the following: | ||
+ | * phpinfo.php | ||
+ | * https:// | ||
+ | * lastupdated.php and tat_local_php81.php | ||
+ | * Test 127.0.0.1, localhost, and SERVER IP ADDRESS | ||
+ | |||
+ | These errors | ||
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in ... | Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in ... | ||
Line 49: | Line 62: | ||
* use FILTER_UNSAFE_RAW | * use FILTER_UNSAFE_RAW | ||
+ | NOTE: 7 March 2022 | ||
+ | |||
+ | * Had to back out to PHP v7.4 | ||
+ | * 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 | ||
+ | * 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 update-channels | ||
+ | pecl install mcrypt-1.0.5 | ||
+ | | ||
+ | Follow note at end of install to update the php.ini. |
centos_php8.1_upgrade.1646607985.txt.gz · Last modified: 2022/03/06 18:06 by juckins