2 Answers
- Newest
- Most votes
- Most comments
0
Try this
dnf install -q -y php-devel php-pear gcc
dnf install -q -y libzip-devel libzip
/usr/bin/yes | pecl install zip
echo 'extension=zip.so' > /etc/php.d/20-zip.ini
Taken from aws-samples/ec2-lamp-server GitHub.
You can also consider using the Amazon Linux 2023 CloudFormation template to create your LEMP stack EC2 instance with common PHP extensions such as zip, imagick, redis, igbinary, sodium and most of extensions as required by WordPress.
0
You can see in the New Packages in AL2023.2 since AL2023.1 in the AL2023 Release Notes that php8.2-zip
was added with the AL2023.2 point release, which you can read the release notes for the first AL2023.2 release (2023.2.20230920) here, which was released at the end of September 2023.
So you can now avoid building anything yourself, and just use the packaged version in AL2023.
answered 9 months ago
Relevant content
- asked 3 months ago
- asked 5 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 months ago