Skip to content

Instantly share code, notes, and snippets.

@jonhy81
Last active January 16, 2018 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonhy81/85bf9bf5b3128fa1eeb2271fc93b017b to your computer and use it in GitHub Desktop.
Save jonhy81/85bf9bf5b3128fa1eeb2271fc93b017b to your computer and use it in GitHub Desktop.
AWS Cloud9 basic configuration to EC Toolkit
#!/bin/bash
# Update repository
sudo yum update -y
# Install XDebug
sudo yum -y install php56-pecl-xdebug
sudo sed -i "/^;xdebug.remote_enable/axdebug.remote_enable = 1" /etc/php-5.6.d/15-xdebug.ini
# Update docroot to match with toolkit setup
sudo sed -i 's|DocumentRoot\ "/var/www/html"|DocumentRoot "/home/ec2-user/environment"|' /etc/httpd/conf/httpd.conf
# Install Mysql 5.6
sudo yum -y remove mysql-config mysql55-libs mysql55-server perl-DBD-MySQL55
sudo yum -y install mysql56-server
sudo yum -y install phpMyAdmin
# Install composer
sudo curl -sS https://getcomposer.org/installer | sudo php
sudo mv composer.phar /usr/local/bin/composer
sudo ln -s /usr/local/bin/composer /usr/bin/composer
# Start services
sudo service httpd restart
sudo service mysqld start
sudo service docker start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment