Last active
December 25, 2015 10:39
-
-
Save henter/6963568 to your computer and use it in GitHub Desktop.
install php5 mysql nginx on ubuntu
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 | |
#prepare for php5.5 | |
sudo apt-get install -y python-software-properties | |
#sudo add-apt-repository ppa:ondrej/php5 | |
sudo add-apt-repository -y ppa:zanfur/php5.5 | |
sudo apt-get update -y | |
#sudo apt-get upgrade -y | |
#install php5.5 | |
sudo apt-get -y install php5-cli php5-curl php5-json php5-gd php5-mcrypt php5-fpm php-pear php5-mysql php5-intl php5-dev libcurl4-openssl-dev | |
#nginx | |
sudo apt-get -y install nginx | |
#install mysql | |
sudo apt-get -y install mysql-client | |
#install mysql without root password prompt | |
#http://stackoverflow.com/questions/7739645/install-mysql-on-ubuntu-without-password-prompt | |
#http://stackoverflow.com/questions/8138636/install-mysql-on-ubuntu-natty-without-password-prompt-and-using-shell-variable-a | |
export DEBIAN_FRONTEND=noninteractive | |
echo mysql-server-5.5.32 mysql-server/root_password password '123456' | debconf-set-selections | |
echo mysql-server-5.5.32 mysql-server/root_password_again password '123456' | debconf-set-selections | |
sudo apt-get -y install mysql-server | |
echo "done" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment