LNMP Server

Posted on Dec 2, 2023
PHP web server with nginx Debian-12 nginx-1.22.1 mariadb-10.11.6 php-8.2

SOFTWARE ENVIROMENT

Debian 12
nginx-1.22.1
mariadb-10.11.6
php-8.2

NGINX & PHP

INSTALL

apt install mariadb-client nginx-full php-fpm php-xml php-json php-mbstring php-zip php-intl php-gd

PHP COMPOSER

apt install wget php-cli php-zip unzip
wget -O composer-setup.php https://getcomposer.org/installer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

# aliyun source
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

composer self-update
composer update

START

systemctl enable --now nginx.service
systemctl enable --now php8.2-fpm.service

MARIADB

apt install mariadb-server
systemctl enable --now mariadb.service