Baikal on Debian 11 | mysql + nginx

Install mysql. Log into mysql as root. CREATE USER ‘baikal’@’localhost’ IDENTIFIED BY ‘password’; GRANT PRIVILEGE ON *.* TO ‘baikal’@’localhost’; Log out. Log in as baikal into mysql. Then do apt-get install wget nginx certbot python3-certbot-nginx php php-fpm php-mysql php-xmlwriter php-dom php-mbstring Configure letsencrypt (certbot) BEFORE you run the baikal configuration. Get the nginx conf file […]

nginx + php

# apt-get install php php-common php-cli php-fpm Put this into your (virtual) servers nginx config file: … and … into the index line. create a test.php file: restart nginx and test it. Tune php.ini in /etc/php/…

OpenBSD + NGINX [fastcgi] + PHP

php-fpm is not an independent package. Install php, php-fpm is included. php-fpm is properly pre-configured and should run instantly. nginx.conf: location ~ \.php$ { try_files $uri $uri/ =404; fastcgi_pass unix:run/php-fpm.sock; # NO ABSOLUTE PATH PLS. !!! fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }