Skip to content

Commit ea41858

Browse files
committed
PHP/8.1.5 - Apache/2.4.53 - Debian/11.3
1 parent 345b431 commit ea41858

File tree

3 files changed

+62
-7
lines changed

3 files changed

+62
-7
lines changed

Dockerfile

+16-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
6-
FROM debian:11.0
6+
FROM debian:11.3
77

88
# To enable latest Apache image on buster:
99
# RUN echo deb http://deb.debian.org/debian buster-backports main | tee /etc/apt/sources.list.d/buster-backports.list
@@ -123,9 +123,9 @@ ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
123123

124124
# PHP 8 (for GPG KEY watch out "using key ... " notice in error message) / changes with minor versions
125125
ENV GPG_KEYS "F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD"
126-
ENV PHP_VERSION 8.1.3
127-
ENV PHP_URL="https://www.php.net/distributions/php-8.1.3.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-8.1.3.tar.xz.asc"
128-
ENV PHP_SHA256="5d65a11071b47669c17452fb336c290b67c101efb745c1dbe7525b5caf546ec6" PHP_MD5=""
126+
ENV PHP_VERSION 8.1.5
127+
ENV PHP_URL="https://www.php.net/distributions/php-8.1.5.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-8.1.5.tar.xz.asc"
128+
ENV PHP_SHA256="7647734b4dcecd56b7e4bd0bc55e54322fa3518299abcdc68eb557a7464a2e8a" PHP_MD5=""
129129

130130
RUN set -xe; \
131131
\
@@ -218,8 +218,17 @@ RUN apt-get update && apt-get install -y libc-client-dev libkrb5-dev libonig-dev
218218
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
219219
RUN docker-php-ext-configure imap --with-imap-ssl --with-kerberos
220220
RUN docker-php-ext-install -j$(nproc) gd imap zip mysqli pdo_mysql iconv
221-
RUN pecl channel-update pecl.php.net
222-
RUN pecl download mcrypt-1.0.4.tgz && pecl install mcrypt-1.0.4.tgz && docker-php-ext-enable mcrypt
221+
# Fix mcrypt for 8.1 PHP before 1.0.5 comes out
222+
# RUN pecl channel-update pecl.php.net
223+
# RUN pecl download mcrypt-1.0.4.tgz && pecl install mcrypt-1.0.4.tgz && docker-php-ext-enable mcrypt
224+
COPY mcrypt-1.0.4.tgz /usr/src/php/ext/
225+
RUN cd /usr/src/php/ext \
226+
&& tar xzf mcrypt-1.0.4.tgz \
227+
&& mv mcrypt-1.0.4 mcrypt \
228+
&& docker-php-ext-configure mcrypt \
229+
&& docker-php-ext-install -j$(nproc) mcrypt \
230+
&& docker-php-ext-enable mcrypt
231+
# End of fix
223232
RUN pecl install imagick && docker-php-ext-enable imagick
224233
RUN pecl install xdebug
225234
RUN echo "expose_php=Off" >> /usr/local/etc/php/conf.d/noexposure.ini
@@ -246,6 +255,7 @@ COPY apache2-foreground /usr/local/bin/
246255

247256
RUN apache2ctl -v
248257
RUN php -v
258+
RUN php -m
249259
WORKDIR /var/www/html
250260

251261
EXPOSE 80

README.md

+46-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,59 @@ by default so most PHP applications can run without much tweaks. Check the [Dock
66
The Dockerhub image name is `technicalguru/rs-php`
77

88
# Releases / Tags
9-
* 8.0.11-apache-2.4.48.0-beta1 (Experimental)
9+
* 8.1.5-apache-2.4.53.0
10+
* 7.4.28-apache-2.4.53.1
11+
* 7.4.28-apache-2.4.52.0
1012
* 7.4.24-apache-2.4.48.1
1113
* 7.4.19-apache-2.4.38.2
1214

15+
# Enabled PHP Modules
16+
Core
17+
ctype
18+
curl
19+
date
20+
dom
21+
exif
22+
fileinfo
23+
filter
24+
ftp
25+
gd
26+
hash
27+
iconv
28+
imagick
29+
imap
30+
json
31+
libxml
32+
mbstring
33+
mcrypt
34+
mysqli
35+
mysqlnd
36+
openssl
37+
pcre
38+
PDO
39+
pdo_mysql
40+
pdo_sqlite
41+
Phar
42+
posix
43+
readline
44+
Reflection
45+
session
46+
SimpleXML
47+
SPL
48+
sqlite3
49+
standard
50+
tokenizer
51+
xml
52+
xmlreader
53+
xmlwriter
54+
zip
55+
zlib
56+
1357
# License
1458
All scripts are either taken from PHP original Docker image and adapted to work with the latest Apache or created on my own. However, the main
1559
credit goes to PHP and its prior work. The [PHP LICENSE](PHP_LICENSE.txt) is distributed here.
1660

1761
# Disclaimer
1862
The decision to publish my base image was taken in July 2021. That's why the documentation is currently missing or incomplete.
1963

64+

mcrypt-1.0.4.tgz

27.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)