Advertisement
RedFoxy

php.ini

Mar 24th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.24 KB | None | 0 0
  1. [PHP]
  2. engine = On
  3. ;memory_limit = 128M
  4. memory_limit = 256M
  5.  
  6. error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
  7. ;error_reporting = E_ALL ^E_NOTICE ^E_WARNING ^E_DEPRECATED ^E_STRICT
  8. display_errors = On
  9. display_startup_errors = On
  10. track_errors = On
  11. html_errors = On
  12. log_errors = On
  13. log_errors_max_len = 1024
  14.  
  15. ;max_input_vars = 1500
  16. max_input_vars = 3000
  17.  
  18. post_max_size = 10M
  19. upload_max_filesize = 10M
  20. file_uploads = On
  21. max_file_uploads = 20
  22.  
  23. include_path = ".:/usr/local/share/pear:/usr/local/share/ZendFramework/library"
  24.  
  25. cgi.fix_pathinfo = 0
  26. short_open_tag = Off
  27. asp_tags = Off
  28. precision = 14
  29. y2k_compliance = On
  30. output_buffering = 4096
  31. zlib.output_compression = Off
  32. implicit_flush = Off
  33. unserialize_callback_func =
  34. serialize_precision = 17
  35. allow_call_time_pass_reference = Off
  36.  
  37. safe_mode = Off
  38. safe_mode_gid = Off
  39. safe_mode_include_dir =
  40. safe_mode_exec_dir =
  41. safe_mode_allowed_env_vars = PHP_
  42. safe_mode_protected_env_vars = LD_LIBRARY_PATH
  43.  
  44. disable_functions =
  45. disable_classes =
  46. zend.enable_gc = On
  47. expose_php = On
  48. max_execution_time = 300
  49. max_input_time = 60
  50. ignore_repeated_errors = Off
  51. ignore_repeated_source = Off
  52. report_memleaks = On
  53. variables_order = "GPCS"
  54. request_order = "GP"
  55. register_globals = Off
  56. register_long_arrays = Off
  57. register_argc_argv = Off
  58. auto_globals_jit = On
  59. magic_quotes_gpc = Off
  60. magic_quotes_runtime = Off
  61. magic_quotes_sybase = Off
  62. auto_prepend_file =
  63. auto_append_file =
  64. default_mimetype = "text/html"
  65. doc_root =
  66. user_dir =
  67. enable_dl = Off
  68. allow_url_fopen = On
  69. allow_url_include = Off
  70. default_socket_timeout = 60
  71.  
  72. [Date]
  73. date.timezone = Europe/Rome
  74.  
  75. [browscap]
  76. browscap = /home/serverweb/etc/php/browscap.ini
  77.  
  78. [mail function]
  79. SMTP = localhost
  80. smtp_port = 25
  81. mail.add_x_header = On
  82.  
  83. [MySQL]
  84. mysql.allow_local_infile= On
  85. mysql.allow_persistent = On
  86. mysql.cache_size = 2000
  87. mysql.max_persistent = -1
  88. mysql.max_links = -1
  89. mysql.default_port =
  90. mysql.default_socket =
  91. mysql.default_host =
  92. mysql.default_user =
  93. mysql.default_password =
  94. mysql.connect_timeout = 60
  95. mysql.trace_mode = Off
  96.  
  97. [MySQLi]
  98. mysqli.max_persistent = -1
  99. mysqli.allow_persistent = On
  100. mysqli.max_links = -1
  101. mysqli.cache_size = 2000
  102. mysqli.default_port = 3306
  103. mysqli.default_socket =
  104. mysqli.default_host =
  105. mysqli.default_user =
  106. mysqli.default_pw =
  107. mysqli.reconnect = Off
  108.  
  109. [mysqlnd]
  110. mysqlnd.collect_statistics = On
  111. mysqlnd.collect_memory_statistics = Off
  112.  
  113. [Session]
  114. session.save_handler = files
  115. session.save_path = "/tmp"
  116. session.use_cookies = 1
  117. session.use_only_cookies= 1
  118. session.name = PHPSESSID
  119. session.auto_start = 0
  120. session.cookie_lifetime = 0
  121. session.cookie_path = /
  122. session.cookie_domain =
  123. session.cookie_httponly =
  124. session.serialize_handler = php
  125. session.gc_probability = 1
  126. session.gc_divisor = 1000
  127. session.gc_maxlifetime = 1440
  128. session.bug_compat_42 = Off
  129. session.bug_compat_warn = Off
  130. session.referer_check =
  131. session.entropy_length = 0
  132. session.cache_limiter = nocache
  133. session.cache_expire = 180
  134. session.use_trans_sid = 0
  135. session.hash_function = 0
  136. session.hash_bits_per_character = 5
  137. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
  138.  
  139. [Tidy]
  140. tidy.clean_output = Off
  141.  
  142. [ldap]
  143. ldap.max_links = -1
  144.  
  145. [soap]
  146. soap.wsdl_cache_enabled = 1
  147. soap.wsdl_cache_dir = "/tmp"
  148. soap.wsdl_cache_ttl = 86400
  149. soap.wsdl_cache_limit = 5
  150.  
  151. [Pdo_mysql]
  152. pdo_mysql.cache_size = 2000
  153. pdo_mysql.default_socket=
  154.  
  155. [Syslog]
  156. define_syslog_variables = Off
  157.  
  158. [SQL]
  159. sql.safe_mode = Off
  160.  
  161. [ODBC]
  162. odbc.allow_persistent = On
  163. odbc.check_persistent = On
  164. odbc.max_persistent = -1
  165. odbc.max_links = -1
  166. odbc.defaultlrl = 4096
  167. odbc.defaultbinmode = 1
  168.  
  169. [Interbase]
  170. ibase.allow_persistent = 1
  171. ibase.max_persistent = -1
  172. ibase.max_links = -1
  173. ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
  174. ibase.dateformat = "%Y-%m-%d"
  175. ibase.timeformat = "%H:%M:%S"
  176.  
  177. [PostgreSQL]
  178. pgsql.allow_persistent = On
  179. pgsql.auto_reset_persistent = Off
  180. pgsql.max_persistent = -1
  181. pgsql.max_links = -1
  182. pgsql.ignore_notice = 0
  183. pgsql.log_notice = 0
  184.  
  185. [Sybase-CT]
  186. sybct.allow_persistent = On
  187. sybct.max_persistent = -1
  188. sybct.max_links = -1
  189. sybct.min_server_severity = 10
  190. sybct.min_client_severity = 10
  191.  
  192. [bcmath]
  193. bcmath.scale = 0
  194.  
  195. [MSSQL]
  196. mssql.allow_persistent = On
  197. mssql.max_persistent = -1
  198. mssql.max_links = -1
  199. mssql.min_error_severity= 10
  200. mssql.min_message_severity = 10
  201. mssql.compatability_mode= Off
  202. mssql.secure_connection = Off
  203.  
  204. [Date]
  205.  
  206. [filter]
  207.  
  208. [iconv]
  209.  
  210. [intl]
  211.  
  212. [sqlite]
  213.  
  214. [sqlite3]
  215.  
  216. [Pcre]
  217.  
  218. [Pdo]
  219.  
  220. [Phar]
  221.  
  222. [OCI8]
  223.  
  224. [Assertion]
  225.  
  226. [COM]
  227.  
  228. [mbstring]
  229.  
  230. [gd]
  231.  
  232. [exif]
  233.  
  234. [sysvshm]
  235.  
  236. [mcrypt]
  237.  
  238. [dba]
  239.  
  240. [xsl]
  241.  
  242. [mysqlnd]
  243.  
  244. [Session]
  245.  
  246. [opcache]
  247. ; Determines if Zend OPCache is enabled
  248. opcache.enable=1
  249.  
  250. ; Determines if Zend OPCache is enabled for the CLI version of PHP
  251. opcache.enable_cli=1
  252.  
  253. ; The OPcache shared memory storage size.
  254. opcache.memory_consumption=64
  255.  
  256. ; The amount of memory for interned strings in Mbytes.
  257. opcache.interned_strings_buffer=4
  258.  
  259. ; The maximum number of keys (scripts) in the OPcache hash table.
  260. ; Only numbers between 200 and 100000 are allowed.
  261. opcache.max_accelerated_files=7963
  262.  
  263. ; The maximum percentage of "wasted" memory until a restart is scheduled.
  264. ;opcache.max_wasted_percentage=5
  265.  
  266. ; When this directive is enabled, the OPcache appends the current working
  267. ; directory to the script key, thus eliminating possible collisions between
  268. ; files with the same name (basename). Disabling the directive improves
  269. ; performance, but may break existing applications.
  270. ;opcache.use_cwd=1
  271.  
  272. ; When disabled, you must reset the OPcache manually or restart the
  273. ; webserver for changes to the filesystem to take effect.
  274. ;opcache.validate_timestamps=1
  275.  
  276. ; How often (in seconds) to check file timestamps for changes to the shared
  277. ; memory storage allocation. ("1" means validate once per second, but only
  278. ; once per request. "0" means always validate)
  279. opcache.revalidate_freq=120
  280.  
  281. ; Enables or disables file search in include_path optimization
  282. ;opcache.revalidate_path=0
  283.  
  284. ; If disabled, all PHPDoc comments are dropped from the code to reduce the
  285. ; size of the optimized code.
  286. ;opcache.save_comments=1
  287.  
  288. ; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
  289. ; may be always stored (save_comments=1), but not loaded by applications
  290. ; that don't need them anyway.
  291. ;opcache.load_comments=1
  292.  
  293. ; If enabled, a fast shutdown sequence is used for the accelerated code
  294. opcache.fast_shutdown=1
  295.  
  296. ; Allow file existence override (file_exists, etc.) performance feature.
  297. ;opcache.enable_file_override=0
  298.  
  299. ; A bitmask, where each bit enables or disables the appropriate OPcache
  300. ; passes
  301. ;opcache.optimization_level=0xffffffff
  302.  
  303. ;opcache.inherited_hack=1
  304. ;opcache.dups_fix=0
  305.  
  306. ; The location of the OPcache blacklist file (wildcards allowed).
  307. ; Each OPcache blacklist file is a text file that holds the names of files
  308. ; that should not be accelerated. The file format is to add each filename
  309. ; to a new line. The filename may be a full path or just a file prefix
  310. ; (i.e., /var/www/x blacklists all the files and directories in /var/www
  311. ; that start with 'x'). Line starting with a ; are ignored (comments).
  312. ;opcache.blacklist_filename=
  313.  
  314. ; Allows exclusion of large files from being cached. By default all files
  315. ; are cached.
  316. ;opcache.max_file_size=0
  317.  
  318. ; Check the cache checksum each N requests.
  319. ; The default value of "0" means that the checks are disabled.
  320. ;opcache.consistency_checks=0
  321.  
  322. ; How long to wait (in seconds) for a scheduled restart to begin if the cache
  323. ; is not being accessed.
  324. ;opcache.force_restart_timeout=180
  325.  
  326. ; OPcache error_log file name. Empty string assumes "stderr".
  327. ;opcache.error_log=
  328.  
  329. ; All OPcache errors go to the Web server log.
  330. ; By default, only fatal errors (level 0) or errors (level 1) are logged.
  331. ; You can also enable warnings (level 2), info messages (level 3) or
  332. ; debug messages (level 4).
  333. ;opcache.log_verbosity_level=1
  334.  
  335. ; Preferred Shared Memory back-end. Leave empty and let the system decide.
  336. ;opcache.preferred_memory_model=
  337.  
  338. ; Protect the shared memory from unexpected writing during script execution.
  339. ; Useful for internal debugging only.
  340. ;opcache.protect_memory=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement