Skip to content

Commit 9280257

Browse files
committed
add php config
1 parent bf67cb2 commit 9280257

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ EXPOSE 80
5959
RUN a2enmod php8.2
6060
RUN a2enmod rewrite
6161

62+
# Configure PHP
63+
COPY config/90-local.ini /etc/php/8.2/apache2/conf.d/
6264

6365
# Install Composer
6466
# https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos

config/90-local.ini

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; configuration for local php customizations
2+
; priority=90
3+
4+
; This directive determines which super global arrays are registered when PHP
5+
; starts up. G,P,C,E & S are abbreviations for the following respective super
6+
; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
7+
; paid for the registration of these arrays and because ENV is not as commonly
8+
; used as the others, ENV is not recommended on productions servers. You
9+
; can still get access to the environment variables through getenv() should you
10+
; need to.
11+
; Default Value: "EGPCS"
12+
; Development Value: "GPCS"
13+
; Production Value: "GPCS";
14+
; https://php.net/variables-order
15+
variables_order = "EGPCS"

0 commit comments

Comments
 (0)