Last active
January 16, 2018 10:04
-
-
Save jonhy81/85bf9bf5b3128fa1eeb2271fc93b017b to your computer and use it in GitHub Desktop.
AWS Cloud9 basic configuration to EC Toolkit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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