aws-samples / aws-refarch-wordpress

This reference architecture provides best practices and a set of YAML CloudFormation templates for deploying WordPress on AWS.
MIT No Attribution
1.08k stars 601 forks source link

Memached doesn't seem to be installed #50

Open natorious opened 5 years ago

natorious commented 5 years ago

After running the template, I can get my site to work but W3 Total Cache's compatibility modal reports that Memcached is not installed. As such, it's not available in any of the dropdowns for caching options.

fss18 commented 5 years ago

I encounter the same problem. this pull request https://github.com/aws-samples/aws-refarch-wordpress/pull/49 will solve your issue

parque-docs commented 5 years ago

I have the same problem. In my case after cf template installation I performed a migration of my previous site using All-in-One WP Migration plugin. After that I installed W3 Total Cache through wp cli (command: wp plugin install w3-total-cache --allow-root ) but after that Memcached option still not available as option. I suppose the migrating operation overwritten some configuration file.

tedsecretsource commented 5 years ago

Have you tried W3 Total Cache Fixed? Might help…

pkhadka56 commented 3 years ago

I checked /etc/php-7.0.d/50-memcached.ini file which was empty. The solution for me was to re-write the line 982 and 983 in aws-refarch-wordpress-04-web.yaml as the following

sudo echo 'extension=igbinary.so;' | sudo tee -a /etc/php-7.0.d/50-memcached.ini
sudo echo 'extension=/usr/lib64/php/7.0/modules/amazon-elasticache-cluster-client.so;' | sudo tee -a /etc/php-7.0.d/50-memcached.ini

After this, update the stack aws-refarch-wordpress-04-web.yaml