Last active
April 16, 2019 03:24
-
-
Save molzieyy/9331cd89d08765ccf7927982b8cb04b1 to your computer and use it in GitHub Desktop.
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/ | |
####################################### | |
# Bash script to install apps on a new system (Ubuntu) | |
# Written by @slackware from slackware609[at]gmail.com | |
####################################### | |
## Update packages and Upgrade system | |
#https://gist.github.com/aamnah/340240de52fd5be13549 | |
#TO RUN | |
# | |
# | |
# | |
# | |
#For Debian and Ubuntu. To run, copy the script to the server and run ``bash install-apps.sh`` | |
# | |
# | |
#install nginx | |
echo 'Updating System...............................###' | |
sudo apt-get update -y | |
echo 'Upgrading System...............................###' | |
sudo apt-get upgrade -y | |
echo '#####installing NGINX and NGINX CUSTOM...............................###' | |
sudo apt-get install nginx -y | |
echo '###Adjusting the Firewall' | |
sudo ufw allow 'Nginx Full' | |
echo '###enabling firewall' | |
sudo ufw enable | |
# | |
echo '############################### \n# \n# \n# \n#INSTALLING MYSQL \n# \n# \n# \n# \n# \n# \n# \n# \n############################' | |
sudo apt-get install mysql-server -y | |
#secure install mysql | |
echo 'SECURING MYSQL' | |
mysql_secure_installation | |
#install php and php fpm | |
echo '## Installing PHP Latest......' | |
sudo add-apt-repository -y ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install -y zip unzip php7.2-fpm php-mysql php-xml php-gd php-mbstring php-zip php-curl -y | |
sudo apt-get install phpmyadmin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment