Skip to content

Instantly share code, notes, and snippets.

#!/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 {} +
## install drush
sudo pear channel-discover pear.drush.org
sudo pear install drush/drush-5.9.0
#!/bin/bash
## update the server and then install the lamp stack
sudo yum update -y
## install PHP 55
## this also installs apache as it's a dependecy in amazons version of php55
sudo yum install -y php55 php55-mysqlnd php55-bcmath php55-gd php55-xml php55-mbstring php55-mcrypt php55-soap php55-xml
## install mysql
sudo yum install -y mysql-server
:: UPDATE YUM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sudo yum update -y
:: INSTALL WEBSERVER :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sudo yum install httpd24
sudo service httpd start
sudo chkconfig httpd on
chkconfig --list httpd