Require setting:
include_path = "." (Example on Windows: include_path=".;c:\php\includes")
extension_dir = "E:/php5/ext"
upload_tmp_dir =E:/Tmp/Apache/Php5Upload
cgi.force_redirect = 1 (Default if undefined, the only case to set is with IIS, in this case use cgi.force_redirect = 0)
fastcgi.impersonate = 0 (Default if undefined, the only case to set is with IIS, in this case use fastcgi.impersonate = 1)
SMTP = smtp.something.ext
smtp_port = 25
sendmail_from = someone@something
browscap = E:/Tmp/browscap.ini
This feature is not required by will give your PHP application knowledge of
browser capabilities.
PHP.NET recommends http://www.garykeith.com/browsers/downloads.asp as a
source of browscap.ini.
session.save_path = E:/Tmp/Apache/Php5Session
Commonly adjusted:
short_open_tag = Off (Recommended settings, but commonly On)
Tells whether the short form (<? ?>) of PHP's open
tag should be allowed.)
output_buffering = 4096 (Recommended settings, but we also find Off or On)
You can enable output buffering for all files by setting this directive to 'On'.
If you wish to limit the size of the buffer to a certain size - you can use a maximum number of bytes instead of 'On'.
Running XAMPP 1.5.1(Apache2.2.0/PHP5.1.1),Drupal compains if output_buffering = Off
Might be good to test different settings.Maybe some old style apps could
be impacted by this ?
output_handler = (not defined is the recommended setting, but
also find ob_gzhandler ...)
You cannot use both "ob_gzhandler" and "zlib.output_compression". Setting any
output handler automatically turns on output buffering.
allow_call_time_pass_reference = Off (Recommended settings, but we also find On)
Whether to warn when arguments are passed by reference at function call time.
This method is deprecated and is likely to be unsupported in future versions of
PHP/Zend. The encouraged method of specifying which arguments should be passed
by reference is in the function declaration. You're encouraged to try and turn
this option Off and make sure your scripts work properly with it in order to
ensure they will work with future versions of the language (you will receive a
warning each time you use this feature).
Might be good to test different settings. Maybe some old style apps could
need this ?
memory_limit = 8M (Recommended settings, but we also find 16M)
This sets the maximum amount of memory in bytes that a script is allowed to
allocate. Feature rich newer apps require 16M+.
error_reporting = E_ALL (Recommended settings, once you are in cruising mode: E_ALL & ~E_NOTICE)
display_errors & display_startup_errors = Off (Recommended settings, when troubleshooting On)
error_log = syslog (For windows users to have errors logged into the Event Viewer)
variables_order = "GPCS" (Recommended settings, also found the common
value EGPCS)
Might be good to test different settings. Maybe some old style apps could need this?
register_long_arrays = Off (Recommended settings Perf Gain, also
found the common value On)
Might be good to test different settings. Maybe some old style apps could
need this ?
register_argc_argv = Off (Recommended settings Perf Gain, also
found the common value On)
Might be good to test different settings. Maybe some old style apps could
need this?
post_max_size = 8M (Recommended settings, also found the common value 16M)
magic_quotes_gpc = Off (Recommended settings, also found the common
value On)
Might be good to test different settings. Maybe some old style apps could
need this ?
session.gc_divisor = 1000 (Recommended settings, also found the common
value 100)
Not sure if this is a know way to avoid memory leak, if not I would think a high
value is better for performance (I had 10000).
session.bug_compat_42 = 0 (Recommended settings, also found the common value 1)
session.hash_bits_per_character = 5 (Recommended settings, also found the common value 1)
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
(Recommended settings)
have seen: url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
soap.wsdl_cache_dir = "E:/Tmp/Apache/tmp"
If using
[mime_magic]
mime_magic.magicfile = "C:\path_to\magic.mime"