标签:status socket php.ini pop get soc adl server code
下面只列举一些常用的配置
[root@localhost ~]# 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 # 定义错误日志级别
[root@localhost ~]# /usr/local/apache2/bin/apachectl graceful # 重新加载 Apache
标签:status socket php.ini pop get soc adl server code
原文地址:http://www.cnblogs.com/pzk7788/p/7040982.html