Skip to content

Instantly share code, notes, and snippets.

@kunit
Last active August 29, 2018 11:37
Show Gist options
  • Save kunit/c2cc88d18d4ce9ad972bab2bdc3b6f3f to your computer and use it in GitHub Desktop.
Save kunit/c2cc88d18d4ce9ad972bab2bdc3b6f3f to your computer and use it in GitHub Desktop.
AWS Cloud9 のPHP/MySQLのバージョンを PHP 7.1/MySQL 5.7 にするスクリプト
#!/bin/sh
sudo service mysqld stop
sudo yum -y erase mysql-config mysql55-server mysql55-libs mysql55
sudo yum -y install mysql57-server mysql57
sudo service mysqld start
sudo yum -y install php71 php71-cli php71-common php71-devel php71-mysqlnd php71-pdo php71-xml php71-gd php71-intl php71-mbstring php71-mcrypt php71-opcache php71-pecl-apcu php71-pecl-imagick php71-pecl-memcached php71-pecl-redis php71-pecl-xdebug
sudo alternatives --set php /usr/bin/php-7.1
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/bin/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment