Skip to content

Instantly share code, notes, and snippets.

@satujamsaja
Last active April 16, 2019 11:40
Show Gist options
  • Select an option

  • Save satujamsaja/4ed3ccee5514495d2daf3e3833bce085 to your computer and use it in GitHub Desktop.

Select an option

Save satujamsaja/4ed3ccee5514495d2daf3e3833bce085 to your computer and use it in GitHub Desktop.
Symfony 4 Debian 9 (Stretch)

Requirements

PHP

Install requirement for externall packages

  • $ sudo apt install wget curl ca-certificates apt-transport-https
  • $ sudo wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
  • $ sudo echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
  • $ sudo apt update
  • $ sudo apt upgrade
  • $ sudo apt install php7.2
  • $ sudo apt install php7.2-cli php7.2-common php7.2-curl php7.2-mbstring php7.2-mysql php7.2-xml php7.2-zip

Composer

  • $ sudo apt install composer

MariaDB

Use latest MariaDB version, current is 10.3

  • $ sudo apt-get install software-properties-common dirmngr
  • $ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
  • $ sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.3/debian stretch main'
  • $ sudo apt-get update
  • $ sudo apt-get install mariadb-server

Symfony CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment