TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.37k stars 736 forks source link

How can we add PHP PDO? #107

Closed trd closed 1 year ago

trd commented 1 year ago

I've tried in multiple ways, but none of them worked. Does anybody have an idea about how to add the PDO extension for MySQL? Thank you.

TrafeX commented 1 year ago

Hi @trd ,

You need to add the php81-pdo_mysql package to the apk add command here: https://github.com/TrafeX/docker-php-nginx/blob/master/Dockerfile#L9

trd commented 1 year ago

Thank you.