PHP error Log/Security Configuration

Source: Internet
Author: User
Tags php error php error log

PHP Common Configuration
/php/bin/php-i |  =/php/etc/php.ini
View PHP configuration directory
vim/usr/local/php/etc/php.ini#  set Time zone for Asia/Chongqing 'asia/chongqing' 
The main profile defines the PHP time zone
/php/etc/php.ini#  for security reasons, add a disabled module name disable_functions = eval,assert, Popen, Passthru,escapeshellarg,escapeshellcmd,passthru,exec, system,chroot,scandir,chgrp,chown,escapeshellcmd , Escapeshellarg,shell_exec,proc_get_status,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink , Leak,popepassthru,stream_socket_server,popen,proc_open,proc_close
Close dangerous function in PHP config file

PHP error Log

1, the configuration file to open the page error function, restart Apache effective

vim/php/etc/#  default off no error   in/usr/local/apache/1.php on line 3
configuration file2, the configuration file to open the error log function, restart Apache effective
vim/php/etc/php.ini#  Open error log, default off does not enable log_errors=#  Write an absolute path, Storage directory as error log error_log =/usr/local/php/logs/php_errors.log#  define error level, define print all errors error_reporting = e_all & ~e_notice
configuration file
E_all-all errors and warnings (not including e_strict) E_error-Fatal Run-time error e_warning-Run-time warning (non-fatal error) E_parse-compile-time parsing error E_notice-Runtime Reminders (These are often caused by bugs in your code, or by intentional behavior.) ) E_strict-Coding Normalization Warning, which allows PHP to suggest how to modify the code to ensure optimal interoperability forward compatibility. E_core_error-fatal error during initialization of PHP startup E_core_warning-warnings during initialization of PHP startup (non-fatal error) E_compile_error-compile-time fatal error e_compile_warning-Compile-time warning (non-fatal error) E_user_error-user-defined error message e_user_warning-user-defined warning message e_user_notice-user-defined reminder message L Note (notice), which does not prevent the execution of the script, and may not necessarily be a problem; l warning (warning), which indicates a problem, but does not prevent the execution of the script; L error, which prevents the script from continuing (including common Parsing error, which essentially prevents the script from running). Note:& represents and, ~ denotes non, l, or
Common error Levels

PHP error Log/Security Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.