set default charset for php
This commit is contained in:
parent
eed80de273
commit
66b2ad6696
@ -391,7 +391,7 @@ pm.max_spare_servers = 3
|
|||||||
; the current environment.
|
; the current environment.
|
||||||
; Default Value: clean env
|
; Default Value: clean env
|
||||||
;env[HOSTNAME] = $HOSTNAME
|
;env[HOSTNAME] = $HOSTNAME
|
||||||
;env[PATH] = /usr/local/bin:/usr/bin:/bin
|
env[PATH] = /usr/local/bin:/usr/bin:/bin
|
||||||
;env[TMP] = /tmp
|
;env[TMP] = /tmp
|
||||||
;env[TMPDIR] = /tmp
|
;env[TMPDIR] = /tmp
|
||||||
;env[TEMP] = /tmp
|
;env[TEMP] = /tmp
|
||||||
@ -421,6 +421,13 @@ pm.max_spare_servers = 3
|
|||||||
;php_admin_flag[log_errors] = on
|
;php_admin_flag[log_errors] = on
|
||||||
;php_admin_value[memory_limit] = 32M
|
;php_admin_value[memory_limit] = 32M
|
||||||
|
|
||||||
|
php_admin_value[default_charset] = UTF-8
|
||||||
|
|
||||||
|
{{if (getenv "MAXUPLOADSIZE")}}
|
||||||
|
php_admin_value[upload_max_filesize] = {{getenv "MAXUPLOADSIZE"}}
|
||||||
|
php_admin_value[post_max_size] = {{getenv "MAXUPLOADSIZE"}}
|
||||||
|
{{end}}
|
||||||
|
|
||||||
{{if (getenv "PHP_ADMIN_VALUES")}}
|
{{if (getenv "PHP_ADMIN_VALUES")}}
|
||||||
{{range $admin_value := split (getenv "PHP_ADMIN_VALUES") ";"}}
|
{{range $admin_value := split (getenv "PHP_ADMIN_VALUES") ";"}}
|
||||||
{{$values := split ($admin_value) "="}}
|
{{$values := split ($admin_value) "="}}
|
||||||
@ -433,4 +440,4 @@ php_admin_value[{{index $values 0}}] = {{index $values 1}}
|
|||||||
{{$values := split ($admin_flag) "="}}
|
{{$values := split ($admin_flag) "="}}
|
||||||
php_admin_flag[{{index $values 0}}] = {{index $values 1}}
|
php_admin_flag[{{index $values 0}}] = {{index $values 1}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user