From 617fdbcd2171c9ecd2d2288b0b486b8f166f0f70 Mon Sep 17 00:00:00 2001 From: jknapp Date: Mon, 28 Jul 2025 07:27:39 -0700 Subject: [PATCH] Add PostgreSQL support for all PHP versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added postgresql-devel package to Dockerfile for client libraries - Added php-pgsql extension to all PHP versions (7.4, 8.0, 8.1, 8.2, 8.3, 8.4) - Enables PHP applications to connect to PostgreSQL databases 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Dockerfile | 2 +- scripts/install-php74.sh | 2 +- scripts/install-php80.sh | 2 +- scripts/install-php81.sh | 2 +- scripts/install-php82.sh | 2 +- scripts/install-php83.sh | 2 +- scripts/install-php84.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index d68799e..f492774 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN dnf install -y \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ https://rpms.remirepo.net/enterprise/remi-release-9.rpm && \ dnf update -y && \ - dnf install -y httpd mod_ssl wget procps cronie iproute && \ + dnf install -y httpd mod_ssl wget procps cronie iproute postgresql-devel && \ dnf clean all && \ rm -rf /var/cache/dnf /usr/share/doc /usr/share/man /usr/share/locale/* diff --git a/scripts/install-php74.sh b/scripts/install-php74.sh index f3a2da9..b45210b 100644 --- a/scripts/install-php74.sh +++ b/scripts/install-php74.sh @@ -2,5 +2,5 @@ dnf module enable php:remi-7.4 -y dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-xmlrpc \ php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \ -php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd libzip php-cli +php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd php-pgsql libzip php-cli exit 0 \ No newline at end of file diff --git a/scripts/install-php80.sh b/scripts/install-php80.sh index 38a6271..2b65070 100644 --- a/scripts/install-php80.sh +++ b/scripts/install-php80.sh @@ -2,5 +2,5 @@ dnf module enable php:remi-8.0 -y dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \ php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \ -php-mysqlnd php-mbstring php-intl php-gd libzip php-cli +php-mysqlnd php-mbstring php-intl php-gd php-pgsql libzip php-cli exit 0 \ No newline at end of file diff --git a/scripts/install-php81.sh b/scripts/install-php81.sh index 69f3ef6..3fd3757 100644 --- a/scripts/install-php81.sh +++ b/scripts/install-php81.sh @@ -2,5 +2,5 @@ dnf module enable php:remi-8.1 -y dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \ php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \ -php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd libzip php-cli +php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd php-pgsql libzip php-cli exit 0 \ No newline at end of file diff --git a/scripts/install-php82.sh b/scripts/install-php82.sh index 9200760..73404b9 100644 --- a/scripts/install-php82.sh +++ b/scripts/install-php82.sh @@ -2,5 +2,5 @@ dnf module enable php:remi-8.2 -y dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \ php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \ -php-mysqlnd php-mbstring php-intl php-gd libzip php-cli +php-mysqlnd php-mbstring php-intl php-gd php-pgsql libzip php-cli exit 0 \ No newline at end of file diff --git a/scripts/install-php83.sh b/scripts/install-php83.sh index f63a756..ede2a37 100644 --- a/scripts/install-php83.sh +++ b/scripts/install-php83.sh @@ -2,5 +2,5 @@ dnf module enable php:remi-8.3 -y dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \ php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \ -php-mysqlnd php-mbstring php-intl php-gd libzip php-cli +php-mysqlnd php-mbstring php-intl php-gd php-pgsql libzip php-cli exit 0 \ No newline at end of file diff --git a/scripts/install-php84.sh b/scripts/install-php84.sh index afd5a5c..50e446c 100644 --- a/scripts/install-php84.sh +++ b/scripts/install-php84.sh @@ -2,5 +2,5 @@ dnf module enable php:remi-8.4 -y dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \ php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \ -php-mysqlnd php-mbstring php-intl php-gd libzip php-cli +php-mysqlnd php-mbstring php-intl php-gd php-pgsql libzip php-cli exit 0 \ No newline at end of file