-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Hi. I am just starting with docker and i have some troubles.
I want to install PHP 5.6.30
this is my config for php
FROM php:5.6.30-fpm
RUN apt-get update && apt-get install -y libmcrypt-dev libxml2-dev locate nano \
&& docker-php-ext-install mcrypt mbstring pdo pdo_mysql mysqli
RUN apt-get install -q -y php5-memcached
RUN apt-get install -q -y php5-gd
RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \
&& pecl install memcached-2.2.0 \
&& docker-php-ext-enable memcached
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-install gd
RUN pecl install -o -f xdebug \
&& rm -rf /tmp/pear \
&& echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so" > /usr/local/etc/php/conf.d/xdebug.ini
but php-v returned
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
root@df452ae965ea:/var/www/html# php -v
PHP 5.5.9-1ubuntu4.21 (cli) (built: Feb 9 2017 20:54:58)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
What i am doing wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels