I recently tried to run stack based amazon cloud formation template for WordPress. Unfortunately yum installs old PHP and I got this communicate:
Your server is running PHP version 5.3.29 but WordPress 5.2.1 requires at least 5.6.20.
I change the stack and specify version:
"install_wordpress" : {
"packages" : {
"yum" : {
"php" : ["5.6.20"],
"php-mysql" : [],
"mysql" : [],
"mysql-server" : [],
"mysql-devel" : [],
"mysql-libs" : [],
"httpd" : []
}
},
But still I got same error. How to properly specify version for yum in cloud formation template?
As base template I used default template provided by AWS: https://s3-us-west-2.amazonaws.com/cloudformation-templates-us-west-2/WordPress_Single_Instance.template