buddying-inc / docker-container

GitHub Container Registry
0 stars 0 forks source link

amazon-elasticache-cluster-client.so #211

Closed apple-x-co closed 1 year ago

apple-x-co commented 1 year ago

https://github.com/aws-samples/aws-refarch-moodle/blob/master/templates/04-web.yaml#L497C35-L497C133

# Install ElastiCache client
 if [ $(uname -a | grep -c x86_64) == "1" ]; then
    echo "downloading x86 client for ElastiCache"
    wget -P /tmp/ https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-8.1/latest-64bit-X86-openssl3
    tar -xf '/tmp/latest-64bit-X86-openssl3'
else 
    echo "downloading ARM-64 client for ElastiCache"
    wget -P /tmp/ https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-8.2/latest-64bit-arm-X86-openssl3
    tar -xf '/tmp/latest-64bit-arm-X86-openssl3'
fi
mv amazon-elasticache-cluster-client.so /usr/lib64/php/modules/
echo 'extension=amazon-elasticache-cluster-client.so;' > /etc/php.d/50-elasticache.ini
apple-x-co commented 1 year ago

webserver-al2023-apache24-php81 が NG (PHP8.1 に PHP8.2 の so ファイルを読み込ませているせいか?)

bash-5.2# php -v
PHP Warning:  PHP Startup: memcached: Unable to initialize module
Module compiled with module API=20220829
PHP    compiled with module API=20210902
These options need to match
 in Unknown on line 0

Warning: PHP Startup: memcached: Unable to initialize module
Module compiled with module API=20220829
PHP    compiled with module API=20210902
These options need to match
 in Unknown on line 0
PHP 8.1.22 (cli) (built: Aug  1 2023 16:16:09) (NTS gcc aarch64)
Copyright (c) The PHP Group
Zend Engine v4.1.22, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.22, Copyright (c), by Zend Technologies
bash-5.2# 
bash-5.2# php -m | grep mem
PHP Warning:  PHP Startup: memcached: Unable to initialize module
Module compiled with module API=20220829
PHP    compiled with module API=20210902
These options need to match
 in Unknown on line 0
Warning: PHP Startup: memcached: Unable to initialize module
apple-x-co commented 1 year ago

PHP8.1 は ARM 版無し

スクリーンショット 2023-10-15 13 44 54