Last active
September 20, 2018 06:21
-
-
Save Ashrafdev/5fdc4aa11e1b421ebe5a35af8eae67f5 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 | |
# apt common | |
sudo apt-get install -y python-software-properties | |
sudo apt-get install -y software-properties-common | |
# webserver | |
sudo apt-get install -y nginx-full | |
# generate cipher for SSL | |
openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048 | |
# php repo | |
sudo add-apt-repository -y ppa:ondrej/php | |
# update | |
sudo apt update | |
sudo apt upgrade | |
sudo apt dist-upgrade | |
# php env | |
apt-get install -y php7.1 php7.1-cli php7.1-common php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mysql php7.1-mcrypt php7.1-zip php7.1-pdo-pgsql php7.1-dom php7.1-bcmath php7.1-curl php7.1-fpm | |
# optional for pgsql ext | |
#apt-get install -y php7.1-pgsql | |
# composer | |
sudo apt install composer | |
# speedup composer package | |
sudo composer global require hirak/prestissimo | |
# chown app dir | |
sudo chown -R www-data:www-data /var/www | |
# install redis-server for cache | |
sudo apt-get -y install redis-server | |
# Install Percona Server database | |
wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb | |
dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb | |
# update cache & install percona | |
sudo apt-get -y update | |
# Install Percona Server DB | |
# install MyRocks & TokuDB Storage Engine (optional) | |
sudo apt-get -y install percona-server-tokudb-5.7 | |
#sudo apt-get -y install percona-server-rocksdb-5.7 | |
#sudo apt-get -y install percona-server-server-5.7 | |
# Install libjemalloc | |
sudo apt-get install -y libjemalloc-dev | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment