Advertisement
emcek

php.ini

Sep 4th, 2012
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.39 KB | None | 0 0
  1. root@joliet:~$ cat /etc/php.ini
  2. [PHP]
  3.  
  4. zend.ze1_compatibility_mode = Off
  5.  
  6. ; Language Options
  7.  
  8. engine = On
  9. ;short_open_tag = Off
  10. precision = 12
  11. y2k_compliance = On
  12. output_buffering = Off
  13. ;output_handler =
  14. zlib.output_compression = Off
  15. ;zlib.output_compression_level = -1
  16. ;zlib.output_handler =
  17. implicit_flush = Off
  18. unserialize_callback_func =
  19. serialize_precision = 100
  20. allow_call_time_pass_reference = On
  21.  
  22. safe_mode = Off
  23. safe_mode_gid = Off
  24. safe_mode_include_dir =
  25. safe_mode_exec_dir =
  26. safe_mode_allowed_env_vars = PHP_
  27. safe_mode_protected_env_vars = LD_LIBRARY_PATH
  28. ;open_basedir =
  29. disable_functions =
  30. disable_classes =
  31.  
  32. ; Colors for Syntax Highlighting mode. Anything that's acceptable in
  33. ; <span style="color: ???????"> would work.
  34. ;highlight.string = #DD0000
  35. ;highlight.comment = #FF9900
  36. ;highlight.keyword = #007700
  37. ;highlight.bg = #FFFFFF
  38. ;highlight.default = #0000BB
  39. ;highlight.html = #000000
  40.  
  41. ;ignore_user_abort = On
  42. ;realpath_cache_size = 16k
  43. ;realpath_cache_ttl = 120
  44.  
  45. ; Miscellaneous
  46.  
  47. expose_php = On
  48.  
  49. ; Resource Limits
  50.  
  51. max_execution_time = 30 ; Maximum execution time of each script, in seconds.
  52. max_input_time = 60 ; Maximum amount of time each script may spend parsing request data.
  53. ;max_input_nesting_level = 64
  54. memory_limit = 8M ; Maximum amount of memory a script may consume.
  55.  
  56. ; Error handling and logging
  57.  
  58. ; Error Level Constants:
  59. ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
  60. ; E_ERROR - fatal run-time errors
  61. ; E_RECOVERABLE_ERROR - almost fatal run-time errors
  62. ; E_WARNING - run-time warnings (non-fatal errors)
  63. ; E_PARSE - compile-time parse errors
  64. ; E_NOTICE - run-time notices (these are warnings which often result
  65. ; from a bug in your code, but it's possible that it was
  66. ; intentional (e.g., using an uninitialized variable and
  67. ; relying on the fact it's automatically initialized to an
  68. ; empty string)
  69. ; E_STRICT - run-time notices, enable to have PHP suggest changes
  70. ; to your code which will ensure the best interoperability
  71. ; and forward compatibility of your code
  72. ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
  73. ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
  74. ; initial startup
  75. ; E_COMPILE_ERROR - fatal compile-time errors
  76. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  77. ; E_USER_ERROR - user-generated error message
  78. ; E_USER_WARNING - user-generated warning message
  79. ; E_USER_NOTICE - user-generated notice message
  80. ; E_DEPRECATED - warn about code that will not work in future versions
  81. ; of PHP
  82. ; E_USER_DEPRECATED - user-generated deprecation warnings
  83. ;
  84. ; Common Values:
  85. ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
  86. ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
  87. ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
  88. ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
  89. ; Default Value: E_ALL & ~E_NOTICE
  90. error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
  91.  
  92. display_errors = On
  93. display_startup_errors = Off
  94. log_errors = Off
  95. log_errors_max_len = 1024
  96. ignore_repeated_errors = Off
  97. ignore_repeated_source = Off
  98. report_memleaks = On
  99. ;report_zend_debug = 0
  100. track_errors = Off
  101. ;html_errors = Off
  102. ;docref_root = "/phpmanual/"
  103. ;docref_ext = .html
  104. ;error_prepend_string = "<font color=#ff0000>"
  105. ;error_append_string = "</font>"
  106. ; Log errors to specified file.
  107. ;error_log = /var/log/php_errors.log
  108. ; Log errors to syslog.
  109. ;error_log = syslog
  110.  
  111. ; Data Handling
  112.  
  113. ;arg_separator.output = "&amp;"
  114. ;arg_separator.input = ";&"
  115. variables_order = "EGPCS"
  116. request_order = "GP"
  117. register_globals = Off
  118. register_long_arrays = Off
  119. register_argc_argv = On
  120. auto_globals_jit = On
  121. post_max_size = 8M
  122. ;magic_quotes_gpc = Off
  123. magic_quotes_runtime = Off
  124. magic_quotes_sybase = Off
  125. auto_prepend_file =
  126. auto_append_file =
  127. default_mimetype = "text/html"
  128. ;default_charset = "iso-8859-1"
  129. ;always_populate_raw_post_data = On
  130.  
  131. ; Paths and Directories
  132.  
  133. ; UNIX: "/path1:/path2"
  134. ;include_path = ".:/php/includes"
  135. doc_root = "/www"
  136. user_dir =
  137. extension_dir = "/usr/lib/php"
  138. enable_dl = On
  139. ;cgi.force_redirect = 1
  140. ;cgi.nph = 1
  141. ;cgi.redirect_status_env = ;
  142. cgi.fix_pathinfo=1
  143. ;fastcgi.impersonate = 1;
  144. ;fastcgi.logging = 0
  145. ;cgi.rfc2616_headers = 0
  146.  
  147. ; File Uploads
  148.  
  149. file_uploads = On
  150. upload_tmp_dir = "/tmp"
  151. upload_max_filesize = 2M
  152. max_file_uploads = 20
  153.  
  154. ; Fopen wrappers
  155.  
  156. allow_url_fopen = On
  157. allow_url_include = Off
  158. ;from="john@doe.com"
  159. ;user_agent="PHP"
  160. default_socket_timeout = 60
  161. ;auto_detect_line_endings = Off
  162.  
  163. ; Dynamic Extensions
  164.  
  165. ;extension=ctype.so
  166. ;extension=curl.so
  167. ;extension=dom.so
  168. ;extension=exif.so
  169. ;extension=ftp.so
  170. ;extension=gd.so
  171. ;extension=gmp.so
  172. ;extension=hash.so
  173. ;extension=iconv.so
  174. ;extension=json.so
  175. ;extension=ldap.so
  176. ;extension=mbstring.so
  177. ;extension=mcrypt.so
  178. ;extension=mysql.so
  179. ;extension=openssl.so
  180. ;extension=pcre.so
  181. ;extension=pdo.so
  182. ;extension=pdo-mysql.so
  183. ;extension=pdo-pgsql.so
  184. ;extension=pdo_sqlite.so
  185. ;extension=pgsql.so
  186. ;extension=session.so
  187. ;extension=soap.so
  188. ;extension=sockets.so
  189. ;extension=sqlite.so
  190. ;extension=sqlite3.so
  191. ;extension=tokenizer.so
  192. ;extension=xml.so
  193. ;extension=xmlreader.so
  194. ;extension=xmlwriter.so
  195.  
  196. ; Module Settings
  197.  
  198. [APC]
  199. apc.enabled = 1
  200. apc.shm_segments = 1 ;The number of shared memory segments to allocate for the compiler cache.
  201. apc.shm_size = 4M ;The size of each shared memory segment.
  202.  
  203. [Date]
  204. date.timezone = Europe/Warsaw
  205. ;date.default_latitude = 31.7667
  206. ;date.default_longitude = 35.2333
  207. ;date.sunrise_zenith = 90.583333
  208. ;date.sunset_zenith = 90.583333
  209.  
  210. [filter]
  211. ;filter.default = unsafe_raw
  212. ;filter.default_flags =
  213.  
  214. [iconv]
  215. ;iconv.input_encoding = ISO-8859-1
  216. ;iconv.internal_encoding = ISO-8859-1
  217. ;iconv.output_encoding = ISO-8859-1
  218.  
  219. [sqlite]
  220. ;sqlite.assoc_case = 0
  221.  
  222. [sqlite3]
  223. ;sqlite3.extension_dir =
  224.  
  225. [Pdo_mysql]
  226. pdo_mysql.cache_size = 2000
  227. pdo_mysql.default_socket=
  228.  
  229. [MySQL]
  230. mysql.allow_local_infile = On
  231. mysql.allow_persistent = On
  232. mysql.cache_size = 2000
  233. mysql.max_persistent = -1
  234. mysql.max_links = -1
  235. mysql.default_port =
  236. mysql.default_socket =
  237. mysql.default_host =
  238. mysql.default_user =
  239. mysql.default_password =
  240. mysql.connect_timeout = 60
  241. mysql.trace_mode = Off
  242.  
  243. [PostgresSQL]
  244. pgsql.allow_persistent = On
  245. pgsql.auto_reset_persistent = Off
  246. pgsql.max_persistent = -1
  247. pgsql.max_links = -1
  248. pgsql.ignore_notice = 0
  249. pgsql.log_notice = 0
  250.  
  251. [Session]
  252. session.save_handler = files
  253. session.save_path = "/tmp"
  254. session.use_cookies = 1
  255. ;session.cookie_secure =
  256. session.use_only_cookies = 1
  257. session.name = PHPSESSID
  258. session.auto_start = 0
  259. session.cookie_lifetime = 0
  260. session.cookie_path = /
  261. session.cookie_domain =
  262. session.cookie_httponly =
  263. session.serialize_handler = php
  264. session.gc_probability = 1
  265. session.gc_divisor = 100
  266. session.gc_maxlifetime = 1440
  267. session.bug_compat_42 = On
  268. session.bug_compat_warn = On
  269. session.referer_check =
  270. session.entropy_length = 0
  271. ;session.entropy_file = /dev/urandom
  272. session.entropy_file =
  273. ;session.entropy_length = 16
  274. session.cache_limiter = nocache
  275. session.cache_expire = 180
  276. session.use_trans_sid = 0
  277. session.hash_function = 0
  278. session.hash_bits_per_character = 4
  279. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
  280.  
  281. [mbstring]
  282. ;mbstring.language = Japanese
  283. ;mbstring.internal_encoding = EUC-JP
  284. ;mbstring.http_input = auto
  285. ;mbstring.http_output = SJIS
  286. ;mbstring.encoding_translation = Off
  287. ;mbstring.detect_order = auto
  288. ;mbstring.substitute_character = none;
  289. ;mbstring.func_overload = 0
  290. ;mbstring.strict_detection = Off
  291. ;mbstring.http_output_conv_mimetype=
  292. ;mbstring.script_encoding=
  293.  
  294. [gd]
  295. ;gd.jpeg_ignore_warning = 0
  296.  
  297. [exif]
  298. ;exif.encode_unicode = ISO-8859-15
  299. ;exif.decode_unicode_motorola = UCS-2BE
  300. ;exif.decode_unicode_intel = UCS-2LE
  301. ;exif.encode_jis =
  302. ;exif.decode_jis_motorola = JIS
  303. ;exif.decode_jis_intel = JIS
  304.  
  305. [soap]
  306. soap.wsdl_cache_enabled=1
  307. soap.wsdl_cache_dir="/tmp"
  308. soap.wsdl_cache_ttl=86400
  309. soap.wsdl_cache_limit = 5
  310.  
  311. [sysvshm]
  312. ;sysvshm.init_mem = 10000
  313.  
  314. [ldap]
  315. ldap.max_links = -1
  316.  
  317. [mcrypt]
  318. ;mcrypt.algorithms_dir=
  319. ;mcrypt.modes_dir=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement