fixed php pdo errors for rds example, upgraded to amazon-linux-extra php7.4

This commit is contained in:
Sebastian Rieger 2020-05-29 18:27:27 +02:00
parent fb2437d829
commit aca7a2e740

View File

@ -159,7 +159,10 @@ userDataWebServer = ('#!/bin/bash\n'
'# essential tools\n' '# essential tools\n'
'yum install -y joe htop git\n' 'yum install -y joe htop git\n'
'# httpd and mysql client\n' '# httpd and mysql client\n'
'yum install -y httpd php php-mysql mariadb\n' 'yum install -y httpd mariadb\n'
'# fix php5.x PDO prob PDO::__construct(): Server sent charset (255) unknown to the client.\n'
'# by using Amazons Linux 2 PHP extras\n'
'amazon-linux-extras install -y php7.4\n'
'\n' '\n'
'service httpd start\n' 'service httpd start\n'
'\n' '\n'