PHP installeren
Standaard PHP-installatie (PHP 8.2 voor Debian 12 Bookworm)
De standaardversie voor moderne Debian 12-systemen.
sudo apt update
sudo apt install php libapache2-mod-php php-cli php-common php-mbstring php-gd php-intl php-xml php-mysql php-zip php-curl
Installatie verifiëren
Controleer welke versie momenteel actief is:
php -v
Legacy: PHP 7.3 (oude Debian-versies)
Gebruik dit alleen als je specifiek een oudere versie nodig hebt.
sudo apt install php7.3 php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-mysql php7.3-zip php7.3-fpm php7.3-mbstring
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php7.3-fpm