1. 程式人生 > >PHP 配置

PHP 配置

lar soc stream scan esc ble function read 路徑

下面只列舉一些常用的配置

[[email protected] ~]# vim /usr/local/php/etc/php.ini
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                             # 禁用一些函數
log_errors
= On # 打開 PHP 錯誤日誌 error_log = /usr/local/php/logs/php_errors.log # 定義錯誤日誌路徑(註意如果不存在要自己創建並把權限改為777) error_reporting = E_ALL & ~E_NOTICE # 定義錯誤日誌級別
[[email protected] ~]# /usr/local/apache2/bin/apachectl graceful    # 重新加載 Apache

PHP 配置