install php pdo mysql PHP5.6 alpine-apache
FROM php:5.6-apache
RUN docker-php-ext-install pdo pdo_mysql
COPY my-php-files/ /var/www/html/
install php pdo mysql PHP5.6 alpine-apache
FROM php:5.6-apache
RUN docker-php-ext-install pdo pdo_mysql
COPY my-php-files/ /var/www/html/
install php pdo mysql PHP5.6 alpine-apache
docker exec -it <container ID> docker-php-ext-install pdo pdo_mysql
install pdo mysql in alpine-apache php 5.6
FROM php:5-fpm-alpine
RUN apk add --no-cache git bash tini memcached php5-pcntl php5-common php5-openssl php5-json php5-phar php5-zlib php5-xml php5-curl php5-dom php5-pdo php5-memcache php5-mysql php5-pdo_mysql \
&& docker-php-ext-install pcntl pdo_mysql mysql json \
&& docker-php-ext-enable pcntl pdo_mysql mysql json
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us