Skip to content
Permalink
Browse files

Don't set upload_max_filesize, post_max_size, max_input_vars by default.

Inherit the setting from globals.
  • Loading branch information...
kohler committed Jun 24, 2016
1 parent cfe10a7 commit fbc7bd03d576ab36b0acc56877c35057aae91c4b
Showing with 30 additions and 16 deletions.
  1. +5 −5 .htaccess
  2. +5 −5 .user.ini
  3. +20 −6 README.md
@@ -2,15 +2,15 @@

# These directives limit how large a paper can be uploaded.
# post_max_size should be >= upload_max_filesize.
php_value upload_max_filesize 15M
php_value post_max_size 15M
#php_value upload_max_filesize 15M
#php_value post_max_size 20M

# Some pages involve a lot of post variables.
#php_value max_input_vars 4096

# A large memory_limit helps when sending very large zipped files.
php_value memory_limit 128M

# Some pages involve a lot of post variables.
php_value max_input_vars 4096

# Turn off the hateful magic_quotes_gpc.
php_flag magic_quotes_gpc off

@@ -2,11 +2,11 @@

; These directives limit how large a paper can be uploaded.
; post_max_size should be >= upload_max_filesize.
upload_max_filesize = 15M
post_max_size = 15M
;upload_max_filesize = 15M
;post_max_size = 20M

; Some pages involve a lot of post variables.
;max_input_vars = 4096

; A large memory_limit helps when sending very large zipped files.
memory_limit = 128M

; Some pages involve a lot of post variables.
max_input_vars = 4096
@@ -115,12 +115,26 @@ served by HotCRP. This normally happens automatically. However, if
the URL path is `/`, you may need to turn off your server’s default
handlers for subdirectories such as `/doc`.

4. Update the systemwide setting for PHP’s `session.gc_maxlifetime`
configuration variable. This provides an upper bound on HotCRP session
lifetimes (the amount of idle time before a user is logged out
automatically). On Unix machines, systemwide PHP settings are often
stored in `/etc/php.ini`. The suggested value for this setting is
86400, e.g., 24 hours:
4. Update PHP settings.

The first three settings, `upload_max_filesize`, `post_max_size`, and
`max_input_vars`, may be changed system-wide or in HotCRP’s `.htaccess` and
`.user.ini` files.

* `upload_max_filesize`: Set to the largest file upload HotCRP should accept.
`15M` is a good default.

* `post_max_size`: Set to the largest total upload HotCRP should accept. Must
be at least as big as `upload_max_filesize`. `20M` is a good default.

* `max_input_vars`: Set to the largest number of distinct input variables
HotCRP should accept. `4096` is a good default.

The last setting, `session.gc_maxlifetime`, must be changed globally. This
provides an upper bound on HotCRP session lifetimes (the amount of idle time
before a user is logged out automatically). On Unix machines, systemwide PHP
settings are often stored in `/etc/php.ini`. The suggested value for this
setting is 86400, e.g., 24 hours:

session.gc_maxlifetime = 86400

0 comments on commit fbc7bd0

Please sign in to comment.
You can’t perform that action at this time.