install:php
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:php [2014-10-26 22:00] – old revision restored (2014-05-17 11:44) ach | install:php [2024-02-22 12:45] (current) – old revision restored (2024-02-21 13:04) oiv | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP Configuration for DokuWiki ====== | + | ====== PHP Configuration for DokuWiki |
DokuWiki will run out of the box on nearly every PHP installation and the [[: | DokuWiki will run out of the box on nearly every PHP installation and the [[: | ||
Line 6: | Line 6: | ||
Please consult the online [[http:// | Please consult the online [[http:// | ||
+ | |||
+ | |||
+ | ===== PHP extensions ===== | ||
+ | |||
+ | Below you can find which extensions should be enabled for your PHP setup. On some systems these extension might need to be installed separately, other systems might bundle them in a single install package and only need them to be enabled in '' | ||
+ | |||
+ | ==== required ==== | ||
+ | |||
+ | These extensions are usually enabled by default anyway. | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | | ||
+ | |||
+ | ==== recommended ==== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ==== special use cases ==== | ||
+ | |||
+ | The following extensions are often used by plugins and thus might come in handy. | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
===== php.ini ===== | ===== php.ini ===== | ||
Line 18: | Line 49: | ||
On the other hand, always be warned that what may be a good or even suggested value for DokuWiki might in some cases break other PHP applications you also host. This is especially true when enabling directives that enhance PHP security while having other PHP applications that rely on insecure features of PHP like register_globals etc. | On the other hand, always be warned that what may be a good or even suggested value for DokuWiki might in some cases break other PHP applications you also host. This is especially true when enabling directives that enhance PHP security while having other PHP applications that rely on insecure features of PHP like register_globals etc. | ||
- | |||
- | ==== register_globals ==== | ||
- | |||
- | Controls if any passed CGI parameters will be registered as global variable automatically instead of being available through $_GET, $_POST or $_REQUEST only. Enabling this often leads to [[phpfn> | ||
- | |||
- | DokuWiki will run with '' | ||
- | |||
- | * Suggested: register_globals = Off | ||
- | |||
==== short_open_tag ==== | ==== short_open_tag ==== | ||
Line 38: | Line 60: | ||
However, note that some [[: | However, note that some [[: | ||
- | ==== safe_mode | + | ==== open_basedir |
- | + | ||
- | [[phpfn> | + | |
- | + | ||
- | DokuWiki will run even with '' | + | |
- | However, depending on your hosters configuration you may need to use the [[:config: | + | This limits access of your PHP process |
- | If in doubt, or when troubleshooting, | + | * Suggested: open_basedir |
Line 106: | Line 124: | ||
Maximum amount of memory a script may consume. | Maximum amount of memory a script may consume. | ||
- | * Suggested: memory_limit = 32M | + | * Suggested: memory_limit = 128M |
==== error_reporting ==== | ==== error_reporting ==== | ||
Line 147: | Line 165: | ||
* Suggested: register_argc_argv = Off | * Suggested: register_argc_argv = Off | ||
- | ==== Magic Quotes ==== | ||
- | |||
- | [[phpfn> | ||
- | |||
- | DokuWiki will detect the used settings and will handle the given values as needed. However disabling these options is recommended. | ||
- | |||
- | === magic_quotes_gpc === | ||
- | |||
- | Affects HTTP Request data (GET, POST, and Cookie). | ||
- | |||
- | * Suggested: magic_quotes_gpc = Off | ||
- | |||
- | === magic_quotes_runtime === | ||
- | |||
- | If enabled, most functions that return data from an external source, including databases and text files (SQL, from '' | ||
- | |||
- | * Suggested: magic_quotes_runtime = Off | ||
- | |||
- | === magic_quotes_sybase === | ||
- | |||
- | Use Sybase-style magic quotes (a single-quote is escaped with a single-quote instead of a backslash). | ||
- | |||
- | * Suggested: magic_quotes_sybase = On | ||
==== file_uploads ==== | ==== file_uploads ==== | ||
Line 196: | Line 191: | ||
==== extension ==== | ==== extension ==== | ||
- | Dynamic Extensions. | + | Dynamic Extensions. |
- | + | ||
- | === GD === | + | |
- | PHP's [[phpfn> | ||
install/php.1414357221.txt.gz · Last modified: 2014-10-26 22:00 by ach