Advertisement
ciusss89

php openwrt

Oct 17th, 2011
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.20 KB | None | 0 0
  1. [PHP]
  2.  
  3. zend.ze1_compatibility_mode = Off
  4.  
  5. ; Language Options
  6.  
  7. engine = On
  8. ;short_open_tag = Off
  9. precision    =  12
  10. y2k_compliance = On
  11. output_buffering = Off
  12. ;output_handler =
  13. zlib.output_compression = Off
  14. ;zlib.output_compression_level = -1
  15. ;zlib.output_handler =
  16. implicit_flush = Off
  17. unserialize_callback_func =
  18. serialize_precision = 100
  19. allow_call_time_pass_reference = On
  20.  
  21. safe_mode = Off
  22. safe_mode_gid = Off
  23. safe_mode_include_dir =
  24. safe_mode_exec_dir =
  25. safe_mode_allowed_env_vars = PHP_
  26. safe_mode_protected_env_vars = LD_LIBRARY_PATH
  27. ;open_basedir =
  28. disable_functions =
  29. disable_classes =
  30.  
  31. ; Colors for Syntax Highlighting mode.  Anything that's acceptable in
  32. ; <span style="color: ???????"> would work.
  33. ;highlight.string  = #DD0000
  34. ;highlight.comment = #FF9900
  35. ;highlight.keyword = #007700
  36. ;highlight.bg      = #FFFFFF
  37. ;highlight.default = #0000BB
  38. ;highlight.html    = #000000
  39.  
  40. ;ignore_user_abort = On
  41. ;realpath_cache_size = 16k
  42. ;realpath_cache_ttl = 120
  43.  
  44. ; Miscellaneous
  45.  
  46. expose_php = On
  47.  
  48. ; Resource Limits
  49.  
  50. max_execution_time = 30 ; Maximum execution time of each script, in seconds.
  51. max_input_time = 60     ; Maximum amount of time each script may spend parsing request data.
  52. ;max_input_nesting_level = 64
  53. memory_limit = 12M      ; Maximum amount of memory a script may consume.
  54.  
  55. ; Error handling and logging
  56.  
  57. ; Error Level Constants:
  58. ; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
  59. ; E_ERROR           - fatal run-time errors
  60. ; E_RECOVERABLE_ERROR  - almost fatal run-time errors
  61. ; E_WARNING         - run-time warnings (non-fatal errors)
  62. ; E_PARSE           - compile-time parse errors
  63. ; E_NOTICE          - run-time notices (these are warnings which often result
  64. ;                     from a bug in your code, but it's possible that it was
  65. ;                     intentional (e.g., using an uninitialized variable and
  66. ;                     relying on the fact it's automatically initialized to an
  67. ;                     empty string)
  68. ; E_STRICT                      - run-time notices, enable to have PHP suggest changes
  69. ;                     to your code which will ensure the best interoperability
  70. ;                     and forward compatibility of your code
  71. ; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
  72. ; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
  73. ;                     initial startup
  74. ; E_COMPILE_ERROR   - fatal compile-time errors
  75. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  76. ; E_USER_ERROR      - user-generated error message
  77. ; E_USER_WARNING    - user-generated warning message
  78. ; E_USER_NOTICE     - user-generated notice message
  79. ; E_DEPRECATED      - warn about code that will not work in future versions
  80. ;                     of PHP
  81. ; E_USER_DEPRECATED - user-generated deprecation warnings
  82. ;
  83. ; Common Values:
  84. ;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
  85. ;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
  86. ;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
  87. ;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
  88. ; Default Value: E_ALL & ~E_NOTICE
  89. error_reporting  =  E_ALL & ~E_NOTICE & ~E_STRICT
  90.  
  91. display_errors = On
  92. display_startup_errors = Off
  93. log_errors = Off
  94. log_errors_max_len = 1024
  95. ignore_repeated_errors = Off
  96. ignore_repeated_source = Off
  97. report_memleaks = On
  98. ;report_zend_debug = 0
  99. track_errors = Off
  100. ;html_errors = Off
  101. ;docref_root = "/phpmanual/"
  102. ;docref_ext = .html
  103. ;error_prepend_string = "<font color=#ff0000>"
  104. ;error_append_string = "</font>"
  105. ; Log errors to specified file.
  106. ;error_log = /var/log/php_errors.log
  107. ; Log errors to syslog.
  108. error_log = syslog
  109.  
  110. ; Data Handling
  111.  
  112. ;arg_separator.output = "&amp;"
  113. ;arg_separator.input = ";&"
  114. variables_order = "EGPCS"
  115. request_order = "GP"
  116. register_globals = Off
  117. register_long_arrays = Off
  118. register_argc_argv = On
  119. auto_globals_jit = On
  120. post_max_size = 8M
  121. ;magic_quotes_gpc = Off
  122. magic_quotes_runtime = Off
  123. magic_quotes_sybase = Off
  124. auto_prepend_file =
  125. auto_append_file =
  126. default_mimetype = "text/html"
  127. ;default_charset = "iso-8859-1"
  128. ;always_populate_raw_post_data = On
  129.  
  130. ; Paths and Directories
  131.  
  132. ; UNIX: "/path1:/path2"
  133. ;include_path = ".:/php/includes"
  134. doc_root = "/home/04_WWW/"
  135. user_dir =
  136. extension_dir = "/usr/lib/php"
  137. enable_dl = On
  138. ;cgi.force_redirect = 1
  139. ;cgi.nph = 1
  140. ;cgi.redirect_status_env = ;
  141. cgi.fix_pathinfo=1
  142. ;fastcgi.impersonate = 1;
  143. ;fastcgi.logging = 0
  144. ;cgi.rfc2616_headers = 0
  145.  
  146. ; File Uploads
  147.  
  148. file_uploads = On
  149. upload_tmp_dir = "/home/05_UPLOAD"
  150. upload_max_filesize = 12M
  151. max_file_uploads = 20
  152.  
  153. ; Fopen wrappers
  154.  
  155. allow_url_fopen = On
  156. allow_url_include = Off
  157. ;from="john@doe.com"
  158. ;user_agent="PHP"
  159. default_socket_timeout = 60
  160. ;auto_detect_line_endings = Off
  161.  
  162. ; Dynamic Extensions
  163.  
  164. ;extension=ctype.so
  165. ;extension=curl.so
  166. ;extension=dom.so
  167. ;extension=exif.so
  168. ;extension=ftp.so
  169. extension=gd.so
  170. ;extension=gmp.so
  171. ;extension=hash.so
  172. ;extension=iconv.so
  173. ;extension=json.so
  174. ;extension=ldap.so
  175. ;extension=mbstring.so
  176. ;extension=mcrypt.so
  177. ;extension=mysql.so
  178. ;extension=openssl.so
  179. ;extension=pcre.so
  180. ;extension=pdo.so
  181. ;extension=pdo-mysql.so
  182. ;extension=pdo-pgsql.so
  183. ;extension=pdo_sqlite.so
  184. ;extension=pgsql.so
  185. extension=session.so
  186. ;extension=soap.so
  187. ;extension=sockets.so
  188. ;extension=sqlite.so
  189. ;extension=sqlite3.so
  190. ;extension=tokenizer.so
  191. extension=xml.so
  192. extension=xmlreader.so
  193. extension=xmlwriter.so
  194.  
  195. ; Module Settings
  196.  
  197. [APC]
  198. apc.enabled = 1
  199. apc.shm_segments = 1    ;The number of shared memory segments to allocate for the compiler cache.
  200. apc.shm_size = 4M   ;The size of each shared memory segment.
  201.  
  202. [Date]
  203. date.timezone = 'Europe/Rome'
  204. ;date.default_latitude = 31.7667
  205. ;date.default_longitude = 35.2333
  206. ;date.sunrise_zenith = 90.583333
  207. ;date.sunset_zenith = 90.583333
  208.  
  209. [filter]
  210. ;filter.default = unsafe_raw
  211. ;filter.default_flags =
  212.  
  213. [iconv]
  214. ;iconv.input_encoding = ISO-8859-1
  215. ;iconv.internal_encoding = ISO-8859-1
  216. ;iconv.output_encoding = ISO-8859-1
  217.  
  218. [sqlite]
  219. ;sqlite.assoc_case = 0
  220.  
  221. [sqlite3]
  222. ;sqlite3.extension_dir =
  223.  
  224. [Pdo_mysql]
  225. pdo_mysql.cache_size = 2000
  226. pdo_mysql.default_socket=
  227.  
  228. [MySQL]
  229. mysql.allow_local_infile = On
  230. mysql.allow_persistent = On
  231. mysql.cache_size = 2000
  232. mysql.max_persistent = -1
  233. mysql.max_links = -1
  234. mysql.default_port =
  235. mysql.default_socket =
  236. mysql.default_host =
  237. mysql.default_user =
  238. mysql.default_password =
  239. mysql.connect_timeout = 60
  240. mysql.trace_mode = Off
  241.  
  242. [PostgresSQL]
  243. pgsql.allow_persistent = On
  244. pgsql.auto_reset_persistent = Off
  245. pgsql.max_persistent = -1
  246. pgsql.max_links = -1
  247. pgsql.ignore_notice = 0
  248. pgsql.log_notice = 0
  249.  
  250. [Session]
  251. session.save_handler = files
  252. session.save_path = "/tmp"
  253. session.use_cookies = 1
  254. ;session.cookie_secure =
  255. session.use_only_cookies = 1
  256. session.name = PHPSESSID
  257. session.auto_start = 0
  258. session.cookie_lifetime = 0
  259. session.cookie_path = /
  260. session.cookie_domain =
  261. session.cookie_httponly =
  262. session.serialize_handler = php
  263. session.gc_probability = 1
  264. session.gc_divisor     = 100
  265. session.gc_maxlifetime = 1440
  266. session.bug_compat_42 = On
  267. session.bug_compat_warn = On
  268. session.referer_check =
  269. session.entropy_length = 0
  270. ;session.entropy_file = /dev/urandom
  271. session.entropy_file =
  272. ;session.entropy_length = 16
  273. session.cache_limiter = nocache
  274. session.cache_expire = 180
  275. session.use_trans_sid = 0
  276. session.hash_function = 0
  277. session.hash_bits_per_character = 4
  278. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
  279.  
  280. [mbstring]
  281. ;mbstring.language = Japanese
  282. ;mbstring.internal_encoding = EUC-JP
  283. ;mbstring.http_input = auto
  284. ;mbstring.http_output = SJIS
  285. ;mbstring.encoding_translation = Off
  286. ;mbstring.detect_order = auto
  287. ;mbstring.substitute_character = none;
  288. ;mbstring.func_overload = 0
  289. ;mbstring.strict_detection = Off
  290. root@VodafoneStation:~# cat /etc/php.ini
  291. [PHP]
  292.  
  293. zend.ze1_compatibility_mode = Off
  294.  
  295. ; Language Options
  296.  
  297. engine = On
  298. ;short_open_tag = Off
  299. precision    =  12
  300. y2k_compliance = On
  301. output_buffering = Off
  302. ;output_handler =
  303. zlib.output_compression = Off
  304. ;zlib.output_compression_level = -1
  305. ;zlib.output_handler =
  306. implicit_flush = Off
  307. unserialize_callback_func =
  308. serialize_precision = 100
  309. allow_call_time_pass_reference = On
  310.  
  311. safe_mode = Off
  312. safe_mode_gid = Off
  313. safe_mode_include_dir =
  314. safe_mode_exec_dir =
  315. safe_mode_allowed_env_vars = PHP_
  316. safe_mode_protected_env_vars = LD_LIBRARY_PATH
  317. ;open_basedir =
  318. disable_functions =
  319. disable_classes =
  320.  
  321. ; Colors for Syntax Highlighting mode.  Anything that's acceptable in
  322. ; <span style="color: ???????"> would work.
  323. ;highlight.string  = #DD0000
  324. ;highlight.comment = #FF9900
  325. ;highlight.keyword = #007700
  326. ;highlight.bg      = #FFFFFF
  327. ;highlight.default = #0000BB
  328. ;highlight.html    = #000000
  329.  
  330. ;ignore_user_abort = On
  331. ;realpath_cache_size = 16k
  332. ;realpath_cache_ttl = 120
  333.  
  334. ; Miscellaneous
  335.  
  336. expose_php = On
  337.  
  338. ; Resource Limits
  339.  
  340. max_execution_time = 30 ; Maximum execution time of each script, in seconds.
  341. max_input_time = 60 ; Maximum amount of time each script may spend parsing request data.
  342. ;max_input_nesting_level = 64
  343. memory_limit = 12M  ; Maximum amount of memory a script may consume.
  344.  
  345. ; Error handling and logging
  346.  
  347. ; Error Level Constants:
  348. ; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
  349. ; E_ERROR           - fatal run-time errors
  350. ; E_RECOVERABLE_ERROR  - almost fatal run-time errors
  351. ; E_WARNING         - run-time warnings (non-fatal errors)
  352. ; E_PARSE           - compile-time parse errors
  353. ; E_NOTICE          - run-time notices (these are warnings which often result
  354. ;                     from a bug in your code, but it's possible that it was
  355. ;                     intentional (e.g., using an uninitialized variable and
  356. ;                     relying on the fact it's automatically initialized to an
  357. ;                     empty string)
  358. ; E_STRICT          - run-time notices, enable to have PHP suggest changes
  359. ;                     to your code which will ensure the best interoperability
  360. ;                     and forward compatibility of your code
  361. ; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
  362. ; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
  363. ;                     initial startup
  364. ; E_COMPILE_ERROR   - fatal compile-time errors
  365. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  366. ; E_USER_ERROR      - user-generated error message
  367. ; E_USER_WARNING    - user-generated warning message
  368. ; E_USER_NOTICE     - user-generated notice message
  369. ; E_DEPRECATED      - warn about code that will not work in future versions
  370. ;                     of PHP
  371. ; E_USER_DEPRECATED - user-generated deprecation warnings
  372. ;
  373. ; Common Values:
  374. ;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
  375. ;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
  376. ;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
  377. ;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
  378. ; Default Value: E_ALL & ~E_NOTICE
  379. error_reporting  =  E_ALL & ~E_NOTICE & ~E_STRICT
  380.  
  381. display_errors = On
  382. display_startup_errors = Off
  383. log_errors = Off
  384. log_errors_max_len = 1024
  385. ignore_repeated_errors = Off
  386. ignore_repeated_source = Off
  387. report_memleaks = On
  388. ;report_zend_debug = 0
  389. track_errors = Off
  390. ;html_errors = Off
  391. ;docref_root = "/phpmanual/"
  392. ;docref_ext = .html
  393. ;error_prepend_string = "<font color=#ff0000>"
  394. ;error_append_string = "</font>"
  395. ; Log errors to specified file.
  396. ;error_log = /var/log/php_errors.log
  397. ; Log errors to syslog.
  398. error_log = syslog
  399.  
  400. ; Data Handling
  401.  
  402. ;arg_separator.output = "&amp;"
  403. ;arg_separator.input = ";&"
  404. variables_order = "EGPCS"
  405. request_order = "GP"
  406. register_globals = Off
  407. register_long_arrays = Off
  408. register_argc_argv = On
  409. auto_globals_jit = On
  410. post_max_size = 8M
  411. ;magic_quotes_gpc = Off
  412. magic_quotes_runtime = Off
  413. magic_quotes_sybase = Off
  414. auto_prepend_file =
  415. auto_append_file =
  416. default_mimetype = "text/html"
  417. ;default_charset = "iso-8859-1"
  418. ;always_populate_raw_post_data = On
  419.  
  420. ; Paths and Directories
  421.  
  422. ; UNIX: "/path1:/path2"
  423. ;include_path = ".:/php/includes"
  424. doc_root = "/home/04_WWW/"
  425. user_dir =
  426. extension_dir = "/usr/lib/php"
  427. enable_dl = On
  428. ;cgi.force_redirect = 1
  429. ;cgi.nph = 1
  430. ;cgi.redirect_status_env = ;
  431. cgi.fix_pathinfo=1
  432. ;fastcgi.impersonate = 1;
  433. ;fastcgi.logging = 0
  434. ;cgi.rfc2616_headers = 0
  435.  
  436. ; File Uploads
  437.  
  438. file_uploads = On
  439. upload_tmp_dir = "/home/05_UPLOAD"
  440. upload_max_filesize = 12M
  441. max_file_uploads = 20
  442.  
  443. ; Fopen wrappers
  444.  
  445. allow_url_fopen = On
  446. allow_url_include = Off
  447. ;from="john@doe.com"
  448. ;user_agent="PHP"
  449. default_socket_timeout = 60
  450. ;auto_detect_line_endings = Off
  451.  
  452. ; Dynamic Extensions
  453.  
  454. ;extension=ctype.so
  455. ;extension=curl.so
  456. ;extension=dom.so
  457. ;extension=exif.so
  458. ;extension=ftp.so
  459. extension=gd.so
  460. ;extension=gmp.so
  461. ;extension=hash.so
  462. ;extension=iconv.so
  463. ;extension=json.so
  464. ;extension=ldap.so
  465. ;extension=mbstring.so
  466. ;extension=mcrypt.so
  467. ;extension=mysql.so
  468. ;extension=openssl.so
  469. ;extension=pcre.so
  470. ;extension=pdo.so
  471. ;extension=pdo-mysql.so
  472. ;extension=pdo-pgsql.so
  473. ;extension=pdo_sqlite.so
  474. ;extension=pgsql.so
  475. extension=session.so
  476. ;extension=soap.so
  477. ;extension=sockets.so
  478. ;extension=sqlite.so
  479. ;extension=sqlite3.so
  480. ;extension=tokenizer.so
  481. extension=xml.so
  482. extension=xmlreader.so
  483. extension=xmlwriter.so
  484.  
  485. ; Module Settings
  486.  
  487. [APC]
  488. apc.enabled = 1
  489. apc.shm_segments = 1    ;The number of shared memory segments to allocate for the compiler cache.
  490. apc.shm_size = 4M   ;The size of each shared memory segment.
  491.  
  492. [Date]
  493. date.timezone = 'Europe/Rome'
  494. ;date.default_latitude = 31.7667
  495. ;date.default_longitude = 35.2333
  496. ;date.sunrise_zenith = 90.583333
  497. ;date.sunset_zenith = 90.583333
  498.  
  499. [filter]
  500. ;filter.default = unsafe_raw
  501. ;filter.default_flags =
  502.  
  503. [iconv]
  504. ;iconv.input_encoding = ISO-8859-1
  505. ;iconv.internal_encoding = ISO-8859-1
  506. ;iconv.output_encoding = ISO-8859-1
  507.  
  508. [sqlite]
  509. ;sqlite.assoc_case = 0
  510.  
  511. [sqlite3]
  512. ;sqlite3.extension_dir =
  513.  
  514. [Pdo_mysql]
  515. pdo_mysql.cache_size = 2000
  516. pdo_mysql.default_socket=
  517.  
  518. [MySQL]
  519. mysql.allow_local_infile = On
  520. mysql.allow_persistent = On
  521. mysql.cache_size = 2000
  522. mysql.max_persistent = -1
  523. mysql.max_links = -1
  524. mysql.default_port =
  525. mysql.default_socket =
  526. mysql.default_host =
  527. mysql.default_user =
  528. mysql.default_password =
  529. mysql.connect_timeout = 60
  530. mysql.trace_mode = Off
  531.  
  532. [PostgresSQL]
  533. pgsql.allow_persistent = On
  534. pgsql.auto_reset_persistent = Off
  535. pgsql.max_persistent = -1
  536. pgsql.max_links = -1
  537. pgsql.ignore_notice = 0
  538. pgsql.log_notice = 0
  539.  
  540. [Session]
  541. session.save_handler = files
  542. session.save_path = "/tmp"
  543. session.use_cookies = 1
  544. ;session.cookie_secure =
  545. session.use_only_cookies = 1
  546. session.name = PHPSESSID
  547. session.auto_start = 0
  548. session.cookie_lifetime = 0
  549. session.cookie_path = /
  550. session.cookie_domain =
  551. session.cookie_httponly =
  552. session.serialize_handler = php
  553. session.gc_probability = 1
  554. session.gc_divisor     = 100
  555. session.gc_maxlifetime = 1440
  556. session.bug_compat_42 = On
  557. session.bug_compat_warn = On
  558. session.referer_check =
  559. session.entropy_length = 0
  560. ;session.entropy_file = /dev/urandom
  561. session.entropy_file =
  562. ;session.entropy_length = 16
  563. session.cache_limiter = nocache
  564. session.cache_expire = 180
  565. session.use_trans_sid = 0
  566. session.hash_function = 0
  567. session.hash_bits_per_character = 4
  568. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
  569.  
  570. [mbstring]
  571. ;mbstring.language = Japanese
  572. ;mbstring.internal_encoding = EUC-JP
  573. ;mbstring.http_input = auto
  574. ;mbstring.http_output = SJIS
  575. ;mbstring.encoding_translation = Off
  576. ;mbstring.detect_order = auto
  577. ;mbstring.substitute_character = none;
  578. ;mbstring.func_overload = 0
  579. ;mbstring.strict_detection = Off
  580. ;mbstring.http_output_conv_mimetype=
  581. ;mbstring.script_encoding=
  582.  
  583. [gd]
  584. ;gd.jpeg_ignore_warning = 0
  585.  
  586. [exif]
  587. ;exif.encode_unicode = ISO-8859-15
  588. ;exif.decode_unicode_motorola = UCS-2BE
  589. ;exif.decode_unicode_intel    = UCS-2LE
  590. ;exif.encode_jis =
  591. ;exif.decode_jis_motorola = JIS
  592. ;exif.decode_jis_intel    = JIS
  593.  
  594. [soap]
  595. soap.wsdl_cache_enabled=1
  596. soap.wsdl_cache_dir="/tmp"
  597. soap.wsdl_cache_ttl=86400
  598. soap.wsdl_cache_limit = 5
  599.  
  600. [sysvshm]
  601. ;sysvshm.init_mem = 10000
  602.  
  603. [ldap]
  604. ldap.max_links = -1
  605.  
  606. [mcrypt]
  607. ;mcrypt.algorithms_dir=
  608. ;mcrypt.modes_dir=
  609.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement