-
-
Save ben-albon/3c33628662dcd4120bf4 to your computer and use it in GitHub Desktop.
FROM php:5.6-apache | |
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql | |
COPY src/ /var/www/html |
Thanks for the snipped. You are great!!!
Brilliant, this has changed everything about the way we work.
I've spent the last nine years searching for this solution. It's the best three lines of config I have ever seen. Thank you.
Thanks mate.
PHP 4.4 :(
Thanks a lot !!
FROM php:7.4.2-apache-buster
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql``
My Dockerfile uses "FROM bitnami/php-fpm:7.2" rather than the Apache container. So I will use
FROM bitnami/php-fpm:7.2
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
Is this doomed to failure?
My Dockerfile uses "FROM bitnami/php-fpm:7.2" rather than the Apache container. So I will use
FROM bitnami/php-fpm:7.2
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsqlIs this doomed to failure?
This could work but you'd have to ensure that your apache handles requests to php though PHP-FPM
thank brow! 👍
Thanks 🚀
so good!
Thanks 👍
Dude, thanks very much!
Works also on PHP 8.0 👍
Works also on PHP 8.1, thanks
very much!!
php:8-apache
3.563 E: Unable to locate package docker-php-ext-install
3.563 E: Unable to locate package pgsql
3.563 E: Unable to locate package pdo
3.563 E: Unable to locate package pdo_pgsql
Thanks a lot!