Skip to content

Instantly share code, notes, and snippets.

@kmkmjhyiiiu
Last active November 8, 2018 09:45
Show Gist options
  • Save kmkmjhyiiiu/59d428f8f944ee7c088ac4d85acd6f94 to your computer and use it in GitHub Desktop.
Save kmkmjhyiiiu/59d428f8f944ee7c088ac4d85acd6f94 to your computer and use it in GitHub Desktop.
Setup PHP 7.2 , nginx with laravel 5 required modules + composer
# update repo
sudo apt-get update
# install nginx and add to firewall and restart it
sudo apt-get -y install nginx
sudo ufw allow 'Nginx HTTP'
sudo systemctl restart nginx
sudo systemctl enable nginx
# mysql
sudo apt-get -y install mysql-server
# required python system properties for adding repo
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:ondrej/php -y
add-apt-repository ppa:jonathonf/python-3.6 -y
# update repo
apt-get update
# install php mysql and laravel required stuff Plus composer
sudo apt-get -y install php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml php7.2 composer php-fpm
# mysql
sudo apt-get -y install mysql-client mysql-server
echo "install python3.6"
apt-get install python3.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment