Skip to content

Proposal: setup.sh, Version 1.0.1

Taylor Warden edited this page May 31, 2015 · 4 revisions

#Closed: Commit bbec866a0cc3d71705659fce556c33d6b8ef4a18

Version 1.0.1 Proposal

Update README.md. Note if you would like to run this script and avoid any errors, to perform the following:

Have root/sudo access.

Run sudo nano /etc/apt/sources.list

At the end of the document, copy and paste in:

deb http://download.webmin.com/download/repository sarge contrib deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

setup.sh's Requirements:

Write a bash shell script to perform the following functionality:

Require user to be root or enter their sudo password for access to apt-get for updating and upgrading the server:

sudo apt-get update && sudo apt-get upgrade

Run the apt-get command to install Apache, MySQL, PHP5, webmin, and phpMyadmin. Suggest to run sudo apt-get install proftpd for FTP access to the server.

echo "This script will now attempt to install Apache, MySQL, PHP5, webmin, and phpMyadmin"; echo "When you encounter the installation of phpMyadmin, Choose Apache and then YES for dbconfig-common."; sudo apt-get install python-software-properties -f sudo add-apt-repository ppa:ondrej/php5-oldstable sudo apt-get update sudo apt-get install php5 php5-gd php5-mysql php5-curl php5-cli php5-cgi php5-dev php5-fpm -f sudo apt-get install apache2 libapache2-mod-php5 -f sudo apt-get install mysql-server mysql-client -f sudo apt-get install phpmyadmin wget http://www.webmin.com/jcameron-key.asc sudo apt-key add jcameron-key.asc sudo apt-get update sudo apt-get install webmin -f sudo /etc/webmin/start echo "If you need to edit the phpMyadmin config: sudo nano /etc/dbconfig-common/phpmyadmin.conf"; echo "If this is a fresh install of Ubuntu (or if you do not know your password), you can run sudo passwd ubuntu to set a new one."; echo "If you would prefer FTP access to this server instead of SSH, consider running sudo apt-get install proftpd to install an FTP server."; echo "This script has executed. If you experience an error from apt-get, please make an issue @ https://github.com/whotooktwarden/QuickGatewayKit";

Clone this wiki locally