Skip to content

Commit

Permalink
Generalize php.ini default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Aug 4, 2018
1 parent c344166 commit b0eeb9b
Show file tree
Hide file tree
Showing 36 changed files with 1,130 additions and 144 deletions.
Empty file added cfg/php-ini-5.2/.keepme
Empty file.
26 changes: 26 additions & 0 deletions cfg/php-ini-5.2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# PHP ini directory

## General

* Add you custom php.ini files into this directory.
* Only files ending by `.ini` will be enabled
* Only files ending by `.ini` are ignored by git


## Example files

This directory also holds two example files:

| File | Description |
|----------------------------|-----------------------------------------|
| `devilbox-php.ini-default` | Represents current PHP default settings |
| `devilbox-php.ini-xdebug ` | Example settings for Xdebug |

* Do not edit these example files!
* Copy them to a new file (in case you want to use them)


## Overwriting

If multiple `.ini` files are present in this directory specifying different values for the
same settings, the last file (alphabetically by filename) will overwrite any previous values.
63 changes: 63 additions & 0 deletions cfg/php-ini-5.2/devilbox-php.ini-default
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
; ############################################################
; # Devilbox php.ini: Current default settings
; ############################################################
;
; Information
; -----------
; * Do not edit this file (it belongs to git)
; * This file shows example settings that are currently effective
; * If this file is enabled, nothing will change as it reflects the current default settings
;
; How to enable?
; --------------
; * Copy this file to another file with ".ini" extension
; * Only files with ".ini" extensions will be applied by PHP



;
; PHP.ini configuration
;
[PHP]

; Memory
; Note: "memory_limit" should be larger than "post_max_size"
memory_limit = 512M


; Timeouts
max_execution_time = 120
max_input_time = 120


; Uploads
; Note: "post_max_size" should be greater than "upload_max_filesize"
post_max_size = 72M
upload_max_filesize = 64M
max_file_uploads = 20


; Vars
variables_order = EGPCS
max_input_nesting_level = 64


; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On


; Xdebug settings
xdebug.default_enable = Off
xdebug.profiler_enable = Off
xdebug.remote_enable = Off
xdebug.remote_autostart = Off

; vim: set ft=dosini:
36 changes: 36 additions & 0 deletions cfg/php-ini-5.2/devilbox-php.ini-xdebug
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
; ############################################################
; # Devilbox php.ini: Xdebug example
; ############################################################
;
; Information
; -----------
; * Do not edit this file (it belongs to git)
; * This file show a possible Xdebug example configuration
; * If this file is enabled, it will overwrite the current Xdebug settings
;
; How to enable?
; --------------
; * Copy this file to another file with ".ini" extension
; * Only files with ".ini" extensions will be applied by PHP



;
; PHP.ini configuration
;
[PHP]

; Xdebug
; Use these settings to enable Xdebug for PHP
; Make sure to read up on Xdebug some settings might significantly slow down requests.
; The following is just an example configuration and should be adjusted
xdebug.default_enable = On
xdebug.profiler_enable = On
xdebug.remote_enable = On
xdebug.remote_autostart = On
xdebug.remote_handler = dbgp
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.remote_log = /var/log/php/xdebug.log

; vim: set ft=dosini:
26 changes: 26 additions & 0 deletions cfg/php-ini-5.3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# PHP ini directory

## General

* Add you custom php.ini files into this directory.
* Only files ending by `.ini` will be enabled
* Only files ending by `.ini` are ignored by git


## Example files

This directory also holds two example files:

| File | Description |
|----------------------------|-----------------------------------------|
| `devilbox-php.ini-default` | Represents current PHP default settings |
| `devilbox-php.ini-xdebug ` | Example settings for Xdebug |

* Do not edit these example files!
* Copy them to a new file (in case you want to use them)


## Overwriting

If multiple `.ini` files are present in this directory specifying different values for the
same settings, the last file (alphabetically by filename) will overwrite any previous values.
18 changes: 0 additions & 18 deletions cfg/php-ini-5.3/devilbox-custom.ini-example

This file was deleted.

63 changes: 63 additions & 0 deletions cfg/php-ini-5.3/devilbox-php.ini-default
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
; ############################################################
; # Devilbox php.ini: Current default settings
; ############################################################
;
; Information
; -----------
; * Do not edit this file (it belongs to git)
; * This file shows example settings that are currently effective
; * If this file is enabled, nothing will change as it reflects the current default settings
;
; How to enable?
; --------------
; * Copy this file to another file with ".ini" extension
; * Only files with ".ini" extensions will be applied by PHP



;
; PHP.ini configuration
;
[PHP]

; Memory
; Note: "memory_limit" should be larger than "post_max_size"
memory_limit = 512M


; Timeouts
max_execution_time = 120
max_input_time = 120


; Uploads
; Note: "post_max_size" should be greater than "upload_max_filesize"
post_max_size = 72M
upload_max_filesize = 64M
max_file_uploads = 20


; Vars
variables_order = EGPCS
max_input_nesting_level = 64


; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On


; Xdebug settings
xdebug.default_enable = Off
xdebug.profiler_enable = Off
xdebug.remote_enable = Off
xdebug.remote_autostart = Off

; vim: set ft=dosini:
36 changes: 36 additions & 0 deletions cfg/php-ini-5.3/devilbox-php.ini-xdebug
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
; ############################################################
; # Devilbox php.ini: Xdebug example
; ############################################################
;
; Information
; -----------
; * Do not edit this file (it belongs to git)
; * This file show a possible Xdebug example configuration
; * If this file is enabled, it will overwrite the current Xdebug settings
;
; How to enable?
; --------------
; * Copy this file to another file with ".ini" extension
; * Only files with ".ini" extensions will be applied by PHP



;
; PHP.ini configuration
;
[PHP]

; Xdebug
; Use these settings to enable Xdebug for PHP
; Make sure to read up on Xdebug some settings might significantly slow down requests.
; The following is just an example configuration and should be adjusted
xdebug.default_enable = On
xdebug.profiler_enable = On
xdebug.remote_enable = On
xdebug.remote_autostart = On
xdebug.remote_handler = dbgp
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.remote_log = /var/log/php/xdebug.log

; vim: set ft=dosini:
26 changes: 26 additions & 0 deletions cfg/php-ini-5.4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# PHP ini directory

## General

* Add you custom php.ini files into this directory.
* Only files ending by `.ini` will be enabled
* Only files ending by `.ini` are ignored by git


## Example files

This directory also holds two example files:

| File | Description |
|----------------------------|-----------------------------------------|
| `devilbox-php.ini-default` | Represents current PHP default settings |
| `devilbox-php.ini-xdebug ` | Example settings for Xdebug |

* Do not edit these example files!
* Copy them to a new file (in case you want to use them)


## Overwriting

If multiple `.ini` files are present in this directory specifying different values for the
same settings, the last file (alphabetically by filename) will overwrite any previous values.
18 changes: 0 additions & 18 deletions cfg/php-ini-5.4/devilbox-custom.ini-example

This file was deleted.

64 changes: 64 additions & 0 deletions cfg/php-ini-5.4/devilbox-php.ini-default
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
; ############################################################
; # Devilbox php.ini: Current default settings
; ############################################################
;
; Information
; -----------
; * Do not edit this file (it belongs to git)
; * This file shows example settings that are currently effective
; * If this file is enabled, nothing will change as it reflects the current default settings
;
; How to enable?
; --------------
; * Copy this file to another file with ".ini" extension
; * Only files with ".ini" extensions will be applied by PHP



;
; PHP.ini configuration
;
[PHP]

; Memory
; Note: "memory_limit" should be larger than "post_max_size"
memory_limit = 512M


; Timeouts
max_execution_time = 120
max_input_time = 120


; Uploads
; Note: "post_max_size" should be greater than "upload_max_filesize"
post_max_size = 72M
upload_max_filesize = 64M
max_file_uploads = 20


; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64


; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On


; Xdebug settings
xdebug.default_enable = Off
xdebug.profiler_enable = Off
xdebug.remote_enable = Off
xdebug.remote_autostart = Off

; vim: set ft=dosini:
Loading

0 comments on commit b0eeb9b

Please sign in to comment.