Skip to content

Instantly share code, notes, and snippets.

@sn0rk64
Last active June 27, 2019 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sn0rk64/42397429d06dd56b0856488c031b016f to your computer and use it in GitHub Desktop.
Save sn0rk64/42397429d06dd56b0856488c031b016f to your computer and use it in GitHub Desktop.
debian installing handy packages

NGINX

Install nginx.

sudo apt-get install nginx

PHP 7.3

Install required packages.

sudo apt install ca-certificates apt-transport-https lsb-release

Import signing key and enable the PPA

sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.3.list

Update packages.

sudo apt update

Install php 7.3 with common extensions.

sudo apt install php7.3 php7.3-cli php7.3-common php7.3-opcache php7.3-curl php7.3-mbstring php7.3-mysql php7.3-zip php7.3-xml

MYSQL

Configure MySQL PPA

wget http://repo.mysql.com/mysql-apt-config_0.8.9-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.9-1_all.deb

Install MySQL

sudo apt update 
sudo apt install mysql-server

Secure MySQL Installation

sudo systemctl restart mysql
sudo mysql_secure_installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment