下面只列举一些常用的配置
[[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
时间: 2024-11-03 22:19:39