Skip to content

Commit 8aed4b0

Browse files
authored
Implements PHP-FPM/FCGI for Apache for 7.0.3, Flex 3.19, and Flex Edge (#383)
Implements PHP-FPM/FCGI for Apache. More information about PHP-FPM/FCGI for Apache on Alpine can be found here (https://wiki.alpinelinux.org/wiki/Apache_with_php-fpm). Tested for 7.0.3.
1 parent 497a759 commit 8aed4b0

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

docker/openemr/7.0.3/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ FROM alpine:3.19
33
#Install dependencies and fix issue in apache
44
RUN apk --no-cache upgrade
55
RUN apk add --no-cache \
6-
apache2 apache2-ssl apache2-utils git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
6+
apache2 apache2-ssl apache2-utils apache2-proxy git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
77
php83-json php83-pdo php83-pdo_mysql php83-curl php83-ldap php83-openssl php83-iconv \
88
php83-xml php83-xsl php83-gd php83-zip php83-soap php83-mbstring php83-zlib \
99
php83-mysqli php83-sockets php83-xmlreader php83-redis php83-simplexml php83-xmlwriter php83-phar php83-fileinfo \
10-
php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu \
10+
php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu php83-fpm \
1111
perl mysql-client tar curl imagemagick nodejs npm \
1212
certbot openssl openssl-dev dcron \
1313
rsync shadow ncurses \

docker/openemr/7.0.3/openemr.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,8 @@ CustomLog "|/usr/sbin/rotatelogs -n 5 ${APACHE_LOG_DIR}/access.log 86400" combin
6565
SSLCertificateFile /etc/ssl/certs/webserver.cert.pem
6666
SSLCertificateKeyFile /etc/ssl/private/webserver.key.pem
6767
</VirtualHost>
68+
69+
#Add FPM FCGI configuration
70+
<FilesMatch \.php$>
71+
SetHandler "proxy:fcgi://127.0.0.1:9000"
72+
</FilesMatch>

docker/openemr/flex-3.19/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ FROM alpine:3.19
33
#Install dependencies and fix issue in apache
44
RUN apk --no-cache upgrade
55
RUN apk add --no-cache \
6-
apache2 apache2-ssl apache2-utils git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
6+
apache2 apache2-ssl apache2-utils apache2-proxy git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
77
php83-json php83-pdo php83-pdo_mysql php83-curl php83-ldap php83-openssl php83-iconv \
88
php83-xml php83-xsl php83-gd php83-zip php83-soap php83-mbstring php83-zlib \
99
php83-mysqli php83-sockets php83-xmlreader php83-redis perl php83-simplexml php83-xmlwriter php83-phar php83-fileinfo \
10-
php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu \
10+
php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu php83-fpm \
1111
mysql-client tar curl imagemagick nodejs npm \
1212
certbot openssl git openssl-dev dcron \
1313
rsync shadow jq ncurses \

docker/openemr/flex-3.19/openemr.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ CustomLog "|/usr/sbin/rotatelogs -n 5 ${APACHE_LOG_DIR}/access.log 86400" combin
7171
# Used for client based certificates
7272
#SSLCACertificateFile /etc/ssl/certs/CAcustomclientbasedwebserver.cert.pem
7373
</VirtualHost>
74+
75+
#Add FPM FCGI configuration
76+
<FilesMatch \.php$>
77+
SetHandler "proxy:fcgi://127.0.0.1:9000"
78+
</FilesMatch>

docker/openemr/flex-edge/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ FROM alpine:edge
33
#Install dependencies and fix issue in apache
44
RUN apk --no-cache upgrade
55
RUN apk add --no-cache \
6-
apache2 apache2-ssl apache2-utils git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
6+
apache2 apache2-ssl apache2-utils apache2-proxy git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
77
php83-json php83-pdo php83-pdo_mysql php83-curl php83-ldap php83-openssl php83-iconv \
88
php83-xml php83-xsl php83-gd php83-zip php83-soap php83-mbstring php83-zlib \
99
php83-mysqli php83-sockets php83-xmlreader php83-redis perl php83-simplexml php83-xmlwriter php83-phar php83-fileinfo \
10-
php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu \
10+
php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu php83-fpm \
1111
mysql-client tar curl imagemagick nodejs npm \
1212
certbot openssl git openssl-dev dcron \
1313
rsync shadow jq ncurses \

docker/openemr/flex-edge/openemr.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ CustomLog "|/usr/sbin/rotatelogs -n 5 ${APACHE_LOG_DIR}/access.log 86400" combin
7171
# Used for client based certificates
7272
#SSLCACertificateFile /etc/ssl/certs/CAcustomclientbasedwebserver.cert.pem
7373
</VirtualHost>
74+
75+
#Add FPM FCGI configuration
76+
<FilesMatch \.php$>
77+
SetHandler "proxy:fcgi://127.0.0.1:9000"
78+
</FilesMatch>

0 commit comments

Comments
 (0)