added mongodb driver for php5.5 5.6

This commit is contained in:
Amin Mkh 2016-05-30 23:26:40 +03:00
parent 9c7054abe2
commit 1090bb4db6
4 changed files with 8 additions and 2 deletions

View File

@ -19,6 +19,9 @@ RUN docker-php-ext-install \
RUN pecl install memcached \ RUN pecl install memcached \
&& docker-php-ext-enable memcached && docker-php-ext-enable memcached
# Install mongodb driver
RUN pecl install mongodb
RUN usermod -u 1000 www-data RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel WORKDIR /var/www/laravel

View File

@ -19,6 +19,9 @@ RUN docker-php-ext-install \
RUN pecl install memcached \ RUN pecl install memcached \
&& docker-php-ext-enable memcached && docker-php-ext-enable memcached
# Install mongodb driver
RUN pecl install mongodb
RUN usermod -u 1000 www-data RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel WORKDIR /var/www/laravel

View File

@ -25,7 +25,6 @@ RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-m
# Install mongodb driver # Install mongodb driver
RUN pecl install mongodb RUN pecl install mongodb
RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/mongo.ini
RUN usermod -u 1000 www-data RUN usermod -u 1000 www-data

View File

@ -1,3 +1,4 @@
date.timezone = UTC date.timezone = UTC
display_errors = Off display_errors = Off
log_errors = On log_errors = On
extension=mongodb.so