摘要:## Load config files from the config directory "/etc/httpd/conf.d".#Include conf.d/*.conf这代表包含所有conf.d目录下的配置文件。
阅读全文
随笔分类 - Apache
摘要:LogFormat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" ssl_request_format CustomLog "|/share/apachephp/bin/rotatelogs /share/httpd/logs/%Y_%m_%d_ssl_request_log 86400 480" ssl_request_format
阅读全文
摘要:关于PHP进程高负载的情况,我检查了Linux的message log文件,发现了以下的错误信息,1 ALERT --- script tried to increase memory_limit to 3170893824 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/aaa/bbb/ccc_ccc_ccc/api_ccc_ccc.php', line 7)原因是:suhosin的memory_limit限制了脚本内存的分配。解决方法是:使用ps -
阅读全文
摘要:1. 查看Apache错误日志2. 查看Linux系统日志 Messages文件3. 减少日志大小有两种方法,一种是修改日志记录级别,可以将默认的warn级别提升为error级别;LogLevel error另外一种方法就是将日志文件按照每天创建一个文件的方式产生,这样就不会将所有的信息写入到一个文件。在Linux下可以将 httpd.conf 中 CustomLog logs/access.log common 修改为:CustomLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/%Y_%m_%d.acces
阅读全文

浙公网安备 33010602011771号