Skip to content

Commit d585262

Browse files
committed
fix: PHP5 libraries cannot be handled via apt docker-library/php#542
1 parent b2e6843 commit d585262

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

DockerfileWeb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
FROM php:5.6-apache
22

33
# install memcache depdencies
4-
RUN apt update
4+
RUN apt-get update
55
RUN apt-get install -y \
6-
php5-xmlrpc \
7-
php5-memcache \
86
libxml2-dev \
97
memcached \
10-
php-pear \
118
zlib1g-dev \
129
build-essential \
1310
git
1411

12+
RUN pear install XML_RPC2
13+
1514
# install PHP extensions
1615
RUN docker-php-ext-install pdo
1716
RUN docker-php-ext-install pdo_mysql
@@ -30,7 +29,7 @@ RUN echo "extension=memcache.so" >> /usr/local/etc/php/php.ini
3029
RUN echo "date.timezone = Europe/Prague" >> /usr/local/etc/php/php.ini
3130

3231
# install xdebug
33-
RUN pecl install xdebug
32+
RUN pecl install xdebug-2.5.5 # lates xdebug that supports php5
3433
RUN echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so" >> /usr/local/etc/php/php.ini
3534
RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/php.ini
3635
RUN echo "xdebug.idekey=PHPSTORM" >> /usr/local/etc/php/php.ini
@@ -39,4 +38,4 @@ RUN echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/php.ini
3938
# install composer
4039
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/bin
4140

42-
EXPOSE 9000
41+
EXPOSE 9000

0 commit comments

Comments
 (0)