File tree Expand file tree Collapse file tree 6 files changed +21
-6
lines changed Expand file tree Collapse file tree 6 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ FROM alpine:3.19
33# Install dependencies and fix issue in apache
44RUN apk --no-cache upgrade
55RUN 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 \
Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ FROM alpine:3.19
33# Install dependencies and fix issue in apache
44RUN apk --no-cache upgrade
55RUN 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 \
Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ FROM alpine:edge
33# Install dependencies and fix issue in apache
44RUN apk --no-cache upgrade
55RUN 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 \
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments