Last active
September 3, 2015 03:44
-
-
Save bperin/7156599ad43fd9af4a69 to your computer and use it in GitHub Desktop.
Install 2
This file contains hidden or 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 | |
## fix the folder permissions for the html directory | |
sudo chown -R root:www /var/www | |
sudo chmod 2775 /var/www | |
find /var/www -type d -exec sudo chmod 2775 {} + | |
find /var/www -type f -exec sudo chmod 0664 {} + | |
## fix the httpd.conf so clean urls work | |
sudo sed -i '151s/.*/ AllowOverride All/' /etc/httpd/conf/httpd.conf | |
sudo service httpd restart | |
## create a test index.php file | |
touch /var/www/html/index.php | |
echo "<?php phpinfo(); ?>" >> /var/www/html/index.php | |
## put a little message saying where to view the phpinfo page | |
sudo yum -y install cloud-utils | |
echo "Take a look at the following IP to see your PHP config" | |
ec2-metadata --public-ipv4 | |
#get fuel oil | |
sudo curl get.fuelphp.com/oil | sh | |
cd /var/www/ | |
sudo git clone --recursive https://github.com/bperin/hackysnap_api | |
sudo chmod -R 777 /var/www/hackysnap_api/fuel/app/logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment