FeministWiki:Server setup: Difference between revisions

Line 90: Line 90:


  # Debian
  # Debian
  echo deb http://deb.debian.org/debian $(lsb_release -sc)-backports main > /etc/apt/sources.list.d/backports.list
  echo deb http://deb.debian.org/debian $(lsb_release -sc)-backports main contrib non-free > /etc/apt/sources.list.d/backports.list
   
   
  # Ubuntu
  # Ubuntu
  echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-backports main universe > /etc/apt/sources.list.d/backports.list
  echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-backports main universe > /etc/apt/sources.list.d/backports.list


PHP repo '''only''' if a very new version is needed:
Usually you want up-to-date versions of Apache2, Nginx, and PHP.  Ondřej provides them:


  wget -O /etc/apt/trusted.gpg.d/sury-php.gpg https://packages.sury.org/php/apt.gpg
  # Debian
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/sury-php.list
for repo in apache2 nginx-mainline php
 
do
MariaDB repo '''only''' if a very new version is needed:
  curl https://packages.sury.org/$repo/apt.gpg > /etc/apt/trusted.gpg.d/sury-$repo.gpg
 
  echo "deb https://packages.sury.org/$repo/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/sury-$repo.list
  wget https://mariadb.org/mariadb_release_signing_key.asc
done
  apt-key add mariadb_release_signing_key.asc
  rm mariadb_release_signing_key.asc
# Ubuntu
echo "deb http://mirror.23media.de/mariadb/repo/10.4/debian $(lsb_release -sc) main" > /etc/apt/sources.list.d/mariadb.list
  add-apt-repository ppa:ondrej/apache2
  add-apt-repository ppa:ondrej/nginx
  add-apt-repository ppa:ondrej/php


=== Create vmail user ===
=== Create vmail user ===