1,106
edits
Technician (talk | contribs) |
Technician (talk | contribs) |
||
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 | Usually you want up-to-date versions of Apache2, Nginx, and PHP. Ondřej provides them: | ||
# Debian | |||
for repo in apache2 nginx-mainline php | |||
do | |||
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 | |||
done | |||
apt- | |||
# Ubuntu | |||
add-apt-repository ppa:ondrej/apache2 | |||
add-apt-repository ppa:ondrej/nginx | |||
add-apt-repository ppa:ondrej/php | |||
=== Create vmail user === | === Create vmail user === |