Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions root-files/opt/flownative/php/etc/php-fpm.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ request_slowlog_timeout = ${PHP_FPM_REQUEST_SLOWLOG_TIMEOUT}

pm.status_path = /php-fpm-status

; Only run files ending in .php. The default also allows .phar, which is not on
; the upload blacklist of Flow. The status path above is answered before this
; check and is not affected.
security.limit_extensions = .php

clear_env = no
10 changes: 10 additions & 0 deletions root-files/opt/flownative/php/etc/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ upload_max_filesize = 500M
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; Run exactly the script the web server names in SCRIPT_FILENAME. With the
; default of 1, PHP-FPM walks back a path like /upload.phar/x.php until it finds
; an existing file and runs that one, uploaded files included.
; https://php.net/cgi.fix-pathinfo
cgi.fix_pathinfo = 0

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
Expand Down
Loading