Skip to content

Instantly share code, notes, and snippets.

@molzieyy
Last active April 16, 2019 03:24
Show Gist options
  • Save molzieyy/9331cd89d08765ccf7927982b8cb04b1 to your computer and use it in GitHub Desktop.
Save molzieyy/9331cd89d08765ccf7927982b8cb04b1 to your computer and use it in GitHub Desktop.
#!/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