Skip to content

Instantly share code, notes, and snippets.

@saxenap
Last active August 29, 2015 13:59
Show Gist options
  • Save saxenap/10742693 to your computer and use it in GitHub Desktop.
Save saxenap/10742693 to your computer and use it in GitHub Desktop.
#!/bin/bash
###############################################
# To use:
# wget https://gist.githubusercontent.com/saxenap/10742693/raw
# sudo cp raw setup
# sudo rm raw
# chmod 777 setup
# ./setup
###############################################
echo "*****************************************"
echo " 1. Download and Install PHP + Apache, Create Directories"
echo "*****************************************"
sudo wget https://gist.githubusercontent.com/saxenap/10701529/raw
sudo chmod 777 raw
sudo ./raw
sudo rm raw
echo "*****************************************"
echo "*****************************************"
echo " 2. Httpd Rewrites + Security"
echo "*****************************************"
sudo wget https://gist.githubusercontent.com/saxenap/10741490/raw
sudo chmod 777 raw
sudo ./raw
sudo rm raw
echo "*****************************************"
echo "*****************************************"
echo " 3. PHP Installations"
echo "*****************************************"
sudo wget https://gist.githubusercontent.com/saxenap/10741794/raw
sudo chmod 777 raw
sudo ./raw
sudo rm raw
echo "*****************************************"
echo "*****************************************"
echo " 4. Php.ini Configurations"
echo "*****************************************"
sudo wget https://gist.githubusercontent.com/saxenap/10738762/raw
sudo chmod 777 raw
sudo ./raw
sudo rm raw
echo "*****************************************"
echo "*****************************************"
echo " 5. Restart Apache Server"
echo "*****************************************"
sudo service httpd restart
echo "*****************************************"
echo "*****************************************"
echo " Installation Complete!"
echo "*****************************************"
echo "*****************************************"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment