Skip to content

Instantly share code, notes, and snippets.

@tigusigalpa
tigusigalpa / php72.Dockerfile
Created April 6, 2026 10:07
PHP 7.2 FPM Dockerfile
FROM php:7.2-fpm
RUN sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list && \
sed -i 's/security.debian.org/archive.debian.org/g' /etc/apt/sources.list && \
sed -i '/stretch-updates/d' /etc/apt/sources.list && \
sed -i '/buster-updates/d' /etc/apt/sources.list && \
# Disable Valid-Until check because the archive repositories are no longer updated
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until && \
apt -y update && apt -y install \
build-essential \
@tigusigalpa
tigusigalpa / php84.ini
Created February 21, 2026 15:12
PHP 8.4 FPM ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@tigusigalpa
tigusigalpa / php83.ini
Created February 21, 2026 15:12
PHP 8.3 FPM ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@tigusigalpa
tigusigalpa / php82.ini
Created February 21, 2026 15:11
PHP 8.2 FPM ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@tigusigalpa
tigusigalpa / php81.php
Created February 21, 2026 15:11
PHP 8.1 FPM ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@tigusigalpa
tigusigalpa / php80.ini
Created February 21, 2026 15:10
PHP 8.0 FPM ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@tigusigalpa
tigusigalpa / php74.ini
Created February 21, 2026 15:10
php 7.4 FPM ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@tigusigalpa
tigusigalpa / pg_hba.conf
Last active February 15, 2026 08:10
Postgres config
# TYPE DATABASE USER ADDRESS METHOD
# Remote VPN/IP connections
# Replace xxx.xxx.xx.xxx with your VPN IP
host all all xxx.xxx.xx.xxx/32 scram-sha-256
# Local Unix-socket connections
local all all scram-sha-256
# IPv4 local connections
@tigusigalpa
tigusigalpa / php81.Dockerfile
Created September 23, 2025 08:30
PHP 8.1-FPM Dockerfile
FROM php:8.1-fpm
RUN apt update && apt install -y \
libzip-dev libpng-dev libjpeg-dev libfreetype6-dev \
libonig-dev libicu-dev libpq-dev libwebp-dev git \
libxml2-dev
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
RUN docker-php-ext-install \
@tigusigalpa
tigusigalpa / php83.Dockerfile
Last active September 23, 2025 07:52
PHP 8.3-FPM Dockerfile
FROM php:8.3-fpm
RUN apt update && apt install -y \
libzip-dev libpng-dev libjpeg-dev libfreetype6-dev \
libonig-dev libicu-dev libpq-dev libwebp-dev git \
libxml2-dev
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
RUN docker-php-ext-install \