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