changed php settings
This commit is contained in:
@@ -78,6 +78,7 @@ maybe chmod 0644 'ImageMagick-6/log.xml'
|
||||
maybe chmod 0644 'ImageMagick-6/magic.xml'
|
||||
maybe chmod 0644 'ImageMagick-6/mime.xml'
|
||||
maybe chmod 0644 'ImageMagick-6/policy.xml'
|
||||
maybe chmod 0644 'ImageMagick-6/policy.xml.bak'
|
||||
maybe chmod 0644 'ImageMagick-6/quantization-table.xml'
|
||||
maybe chmod 0644 'ImageMagick-6/thresholds.xml'
|
||||
maybe chmod 0644 'ImageMagick-6/type-apple.xml'
|
||||
@@ -4375,6 +4376,7 @@ maybe chmod 0644 'php/8.0/cgi/php.ini'
|
||||
maybe chmod 0755 'php/8.0/cli'
|
||||
maybe chmod 0755 'php/8.0/cli/conf.d'
|
||||
maybe chmod 0644 'php/8.0/cli/php.ini'
|
||||
maybe chmod 0644 'php/8.0/cli/php.ini.bak'
|
||||
maybe chmod 0755 'php/8.0/fpm'
|
||||
maybe chmod 0755 'php/8.0/fpm/conf.d'
|
||||
maybe chmod 0644 'php/8.0/fpm/php-fpm.conf'
|
||||
@@ -4383,6 +4385,7 @@ maybe chmod 0755 'php/8.0/fpm/pool.d'
|
||||
maybe chmod 0644 'php/8.0/fpm/pool.d/www.conf'
|
||||
maybe chmod 0755 'php/8.0/mods-available'
|
||||
maybe chmod 0644 'php/8.0/mods-available/apcu.ini'
|
||||
maybe chmod 0644 'php/8.0/mods-available/apcu.ini.bak'
|
||||
maybe chmod 0644 'php/8.0/mods-available/bcmath.ini'
|
||||
maybe chmod 0644 'php/8.0/mods-available/calendar.ini'
|
||||
maybe chmod 0644 'php/8.0/mods-available/ctype.ini'
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policymap [
|
||||
<!ELEMENT policymap (policy)+>
|
||||
<!ELEMENT policy (#PCDATA)>
|
||||
<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED>
|
||||
<!ATTLIST policy name CDATA #IMPLIED>
|
||||
<!ATTLIST policy rights CDATA #IMPLIED>
|
||||
<!ATTLIST policy pattern CDATA #IMPLIED>
|
||||
<!ATTLIST policy value CDATA #IMPLIED>
|
||||
]>
|
||||
<!--
|
||||
Configure ImageMagick policies.
|
||||
|
||||
Domains include system, delegate, coder, filter, path, or resource.
|
||||
|
||||
Rights include none, read, write, and execute. Use | to combine them,
|
||||
for example: "read | write" to permit read from, or write to, a path.
|
||||
|
||||
Use a glob expression as a pattern.
|
||||
|
||||
Suppose we do not want users to process MPEG video images:
|
||||
|
||||
<policy domain="delegate" rights="none" pattern="mpeg:decode" />
|
||||
|
||||
Here we do not want users reading images from HTTP:
|
||||
|
||||
<policy domain="coder" rights="none" pattern="HTTP" />
|
||||
|
||||
Lets prevent users from executing any image filters:
|
||||
|
||||
<policy domain="filter" rights="none" pattern="*" />
|
||||
|
||||
The /repository file system is restricted to read only. We use a glob
|
||||
expression to match all paths that start with /repository:
|
||||
|
||||
<policy domain="path" rights="read" pattern="/repository/*" />
|
||||
|
||||
Let's prevent possible exploits by removing the right to use indirect reads.
|
||||
|
||||
<policy domain="path" rights="none" pattern="@*" />
|
||||
|
||||
Any large image is cached to disk rather than memory:
|
||||
|
||||
<policy domain="resource" name="area" value="1GB"/>
|
||||
|
||||
Define arguments for the memory, map, area, width, height, and disk resources
|
||||
with SI prefixes (.e.g 100MB). In addition, resource policies are maximums
|
||||
for each instance of ImageMagick (e.g. policy memory limit 1GB, -limit 2GB
|
||||
exceeds policy maximum so memory limit is 1GB).
|
||||
-->
|
||||
<policymap>
|
||||
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
|
||||
<policy domain="resource" name="memory" value="256MiB"/>
|
||||
<policy domain="resource" name="map" value="512MiB"/>
|
||||
<policy domain="resource" name="width" value="16KP"/>
|
||||
<policy domain="resource" name="height" value="16KP"/>
|
||||
<policy domain="resource" name="area" value="128MB"/>
|
||||
<policy domain="resource" name="disk" value="1GiB"/>
|
||||
<!-- <policy domain="resource" name="file" value="768"/> -->
|
||||
<!-- <policy domain="resource" name="thread" value="4"/> -->
|
||||
<!-- <policy domain="resource" name="throttle" value="0"/> -->
|
||||
<!-- <policy domain="resource" name="time" value="3600"/> -->
|
||||
<!-- <policy domain="system" name="precision" value="6"/> -->
|
||||
<!-- not needed due to the need to use explicitly by mvg: -->
|
||||
<!-- <policy domain="delegate" rights="none" pattern="MVG" /> -->
|
||||
<!-- use curl -->
|
||||
<policy domain="delegate" rights="none" pattern="URL" />
|
||||
<policy domain="delegate" rights="none" pattern="HTTPS" />
|
||||
<policy domain="delegate" rights="none" pattern="HTTP" />
|
||||
<!-- in order to avoid to get image with password text -->
|
||||
<policy domain="path" rights="none" pattern="@*"/>
|
||||
<policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/>
|
||||
</policymap>
|
||||
+6
-6
@@ -223,7 +223,7 @@ precision = 14
|
||||
; Development Value: 4096
|
||||
; Production Value: 4096
|
||||
; http://php.net/output-buffering
|
||||
output_buffering = 4096
|
||||
output_buffering = 'Off'
|
||||
|
||||
; You can redirect all of the output of your scripts to a function. For
|
||||
; example, if you set output_handler to "mb_output_handler", character
|
||||
@@ -406,7 +406,7 @@ expose_php = On
|
||||
; Maximum execution time of each script, in seconds
|
||||
; http://php.net/max-execution-time
|
||||
; Note: This directive is hardcoded to 0 for the CLI SAPI
|
||||
max_execution_time = 30
|
||||
max_execution_time = 3600
|
||||
|
||||
; Maximum amount of time each script may spend parsing request data. It's a good
|
||||
; idea to limit this time on productions servers in order to eliminate unexpectedly
|
||||
@@ -416,7 +416,7 @@ max_execution_time = 30
|
||||
; Development Value: 60 (60 seconds)
|
||||
; Production Value: 60 (60 seconds)
|
||||
; http://php.net/max-input-time
|
||||
max_input_time = 60
|
||||
max_input_time = 3600
|
||||
|
||||
; Maximum input variable nesting level
|
||||
; http://php.net/max-input-nesting-level
|
||||
@@ -700,7 +700,7 @@ auto_globals_jit = On
|
||||
; Its value may be 0 to disable the limit. It is ignored if POST data reading
|
||||
; is disabled through enable_post_data_reading.
|
||||
; http://php.net/post-max-size
|
||||
post_max_size = 8M
|
||||
post_max_size = 10240M
|
||||
|
||||
; Automatically add files before PHP document.
|
||||
; http://php.net/auto-prepend-file
|
||||
@@ -852,7 +852,7 @@ file_uploads = On
|
||||
|
||||
; Maximum allowed size for uploaded files.
|
||||
; http://php.net/upload-max-filesize
|
||||
upload_max_filesize = 2M
|
||||
upload_max_filesize = 10240M
|
||||
|
||||
; Maximum number of files that can be uploaded via a single request
|
||||
max_file_uploads = 20
|
||||
@@ -970,7 +970,7 @@ cli_server.color = On
|
||||
[Date]
|
||||
; Defines the default timezone used by the date functions
|
||||
; http://php.net/date.timezone
|
||||
;date.timezone =
|
||||
date.timezone = Europe/Berlin
|
||||
|
||||
; http://php.net/date.default-latitude
|
||||
;date.default_latitude = 31.7667
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +1,2 @@
|
||||
extension=apcu.so
|
||||
apc.enable_cli=1
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
extension=apcu.so
|
||||
Reference in New Issue
Block a user