@@ -634,32 +634,20 @@ Resources:
634634 sudo yum install -y php-pecl-memcached
635635 sudo yum remove -y php-pecl-memcached
636636 sudo yum install -y php-redis
637-
637+ sudo yum install -y openssl11
638638
639639 if [ $(uname -a | grep -c x86_64) == "1" ]; then
640640 echo "downloading x86 client for ElastiCache"
641- wget -P /tmp/ https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-8.0/latest-64bit-X86-openssl3
642- tar -xf '/tmp/latest-64bit-X86-openssl3 '
641+ wget -P /tmp/ https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-8.0/latest-64bit-X86-openssl1.1
642+ tar -xf '/tmp/latest-64bit-X86-openssl1.1 '
643643 else
644644 echo "downloading ARM-64 client for ElastiCache"
645- wget -P /tmp/ https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-8.0/latest-64bit-arm-openssl3
646- tar -xf '/tmp/latest-64bit-arm-openssl3 '
645+ wget -P /tmp/ https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-8.0/latest-64bit-arm-openssl1.1
646+ tar -xf '/tmp/latest-64bit-arm-openssl1.1 '
647647 fi
648648
649649 cp 'amazon-elasticache-cluster-client.so' /usr/lib64/php/modules/
650- if [ ! -f /etc/php.d/50-memcached.ini ]; then
651- touch /etc/php.d/50-memcached.ini
652- fi
653- echo 'extension=/usr/lib64/php/modules/amazon-elasticache-cluster-client.so;' >> /etc/php.d/50-memcached.ini
654- echo 'extension=igbinary.so;' >> /etc/php.d/50-memcached.ini
655-
656- if [ ! -f /etc/php.d/20-redis.ini ]; then
657- touch /etc/php.d/20-redis.ini
658- fi
659- echo 'extension=/usr/lib64/php/modules/amazon-elasticache-cluster-client.so;' >> /etc/php.d/20-redis.ini
660- echo 'extension=igbinary.so;' >> /etc/php.d/20-redis.ini
661-
662-
650+ echo 'extension=amazon-elasticache-cluster-client.so;' > /etc/php.d/50-elasticache.ini
663651 mode : 000500
664652 owner : root
665653 group : root
0 commit comments