[pmwiki-users] How to optimize php.ini
Patrick R. Michaud
pmichaud at pobox.com
Tue Sep 5 10:18:33 CDT 2006
On Tue, Sep 05, 2006 at 03:16:40PM +0200, Tom Lederer wrote:
> Due to the recent affairs, i wondered if someone of greater knowledge
> could tip me how to set the options (those i can) in php.ini to use
> pmwiki at its best.
>
> Here are the options i can influence in php.ini:
Here's my suggestions:
session.auto_start Off
session.use_cookies On
session.use_trans_sid Off
magic_quotes_runtime Off [1]
magic_quotes_gpc Off [2]
register_globals Off [3]
display_errors On for debugging, Off for production [4]
session.cookie_lifetime 0
Notes:
1. The setting for magic_quotes_runtime generally doesn't matter;
PmWiki forces magic_quotes_runtime to 'off' when it runs.
2. Similarly, the actual setting of magic_quotes_gpc isn't important,
as PmWiki knows how to accommodate either setting.
3. Register globals should always be off, if at all possible.
4. Generally I leave the php.ini setting for this alone, and manually
set the value of display_errors in local/config.php if I'm
interested in troubleshooting a problem.
ini_set('display_errors', 0); # disable error display
ini_set('display_errors', 1); # enable error display
Hope this helps,
Pm
More information about the pmwiki-users
mailing list