How to upgrade PHP 7.3.23 to 8.2 on AL2023 instance?

0

What are the required steps to upgrade our AL2023 instance's PHP from 7.3.23 to 8.2?

Thank you!

Brent C
질문됨 한 달 전185회 조회
1개 답변
0
수락된 답변

please refer the below commands.

# cat /etc/amazon-linux-release
Amazon Linux release 2023.4.20240401 (Amazon Linux)
# dnf info php8.2
Last metadata expiration check: 0:00:40 ago on Thu Apr  4 07:56:33 2024.
Available Packages
Name         : php8.2
Version      : 8.2.15
Release      : 1.amzn2023.0.2
Architecture : x86_64
Size         : 11 k
Source       : php8.2-8.2.15-1.amzn2023.0.2.src.rpm
Repository   : amazonlinux
Summary      : PHP scripting language for creating dynamic web sites
URL          : http://www.php.net/
License      : PHP and Zend and BSD and MIT and ASL 1.0 and NCSA and Boost
Description  : PHP 8.2 is an HTML-embedded scripting language. PHP 8.2 attempts to make it
             : easy for developers to write dynamically generated web pages. PHP 8.2 also
             : offers built-in database integration for several commercial and
             : non-commercial database management systems, so writing a
             : database-enabled webpage with PHP 8.2 is fairly simple. The most common
             : use of PHP 8.2 coding is probably as a replacement for CGI scripts.
# dnf install php
or
# dnf update php
# rpm -qa | grep php
php8.2-common-8.2.15-1.amzn2023.0.2.x86_64
php8.2-cli-8.2.15-1.amzn2023.0.2.x86_64
php8.2-mbstring-8.2.15-1.amzn2023.0.2.x86_64
php8.2-opcache-8.2.15-1.amzn2023.0.2.x86_64
php8.2-pdo-8.2.15-1.amzn2023.0.2.x86_64
php8.2-process-8.2.15-1.amzn2023.0.2.x86_64
php8.2-fpm-8.2.15-1.amzn2023.0.2.x86_64
php8.2-xml-8.2.15-1.amzn2023.0.2.x86_64
php8.2-sodium-8.2.15-1.amzn2023.0.2.x86_64
php8.2-8.2.15-1.amzn2023.0.2.x86_64
AWS
전문가
hyp
답변함 한 달 전
profile pictureAWS
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠