Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2758967
  • 博文数量: 587
  • 博客积分: 6356
  • 博客等级: 准将
  • 技术积分: 6410
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 10:54
个人简介

器量大者,福泽必厚

文章分类

全部博文(587)

文章存档

2019年(3)

2018年(1)

2017年(29)

2016年(39)

2015年(66)

2014年(117)

2013年(136)

2012年(58)

2011年(34)

2010年(50)

2009年(38)

2008年(16)

分类: LINUX

2012-08-04 18:49:29

1:Invalid command 'Order', perhaps misspelled or defined by a module not included
in the server configuration



是因为
LoadModule authz_host_module modules/mod_authz_host.so
这个模块没有加载

2:Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
原因:配置文件里面没有LoadModule php5_module   modules/libphp5.so,而vhost.conf中加载php_admin_value open_basedir /usr/vhome/x/y/z/xyz.com/:/usr/vhome/tmp

3:Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

[root@tuiguangvm httpd-2.2.15]# find . -name *header*
./os/os2/core_header.def
./docs/manual/mod/mod_headers.html
./docs/manual/mod/mod_headers.html.en
./docs/manual/mod/mod_headers.html.ko.euc-kr
./docs/manual/mod/mod_headers.html.ja.utf8
./docs/manual/images/apache_header.gif
./support/win32/apache_header.bmp
./modules/proxy/ajp_header.h
./modules/proxy/ajp_header.c
./modules/metadata/mod_headers.c
./modules/metadata/mod_headers.dsp
./modules/metadata/NWGNUheaders
./modules/metadata/mod_headers.exp
./modules/arch/netware/mod_headers.def
[root@tuiguangvm httpd-2.2.15]# cd modules/metadata/
[root@tuiguangvm metadata]# ls
config.m4           Makefile.in        mod_env.dsp    mod_expires.dsp  mod_ident.c         mod_mime_magic.exp  mod_setenvif.o     mod_usertrack.c    mod_version.exp  NWGNUheaders     NWGNUuniqueid
libmod_env.la       mod_cern_meta.c    mod_env.exp    mod_expires.exp  mod_ident.dsp       mod_setenvif.c      modules.mk         mod_usertrack.dsp  mod_version.lo   NWGNUmakefile    NWGNUusertrk
libmod_setenvif.la  mod_cern_meta.dsp  mod_env.lo     mod_headers.c    mod_ident.exp       mod_setenvif.dsp    mod_unique_id.c    mod_usertrack.exp  mod_version.o    NWGNUmimemagi
libmod_version.la   mod_cern_meta.exp  mod_env.o      mod_headers.dsp  mod_mime_magic.c    mod_setenvif.exp    mod_unique_id.dsp  mod_version.c      NWGNUcernmeta    NWGNUmodident
Makefile            mod_env.c          mod_expires.c  mod_headers.exp  mod_mime_magic.dsp  mod_setenvif.lo     mod_unique_id.exp  mod_version.dsp    NWGNUexpires     NWGNUmodversion
[root@tuiguangvm metadata]# which apxs
/usr/local/apache2/bin/apxs
[root@tuiguangvm metadata]# apxs  -i -a –c mod_headers.c 
apxs:Error: Sorry, cannot determine bootstrap symbol name.
apxs:Error: Please specify one with option `-n'.
[root@tuiguangvm metadata]# /usr/local/apache2/bin/apxs  -i -a -c mod_headers.c 
即可成功安装!

4:过滤某个时间段的日志:例如我想过滤01:57---02:18的日志
cat access.log   | grep -P '(01:5[7-9]|02:0[0-9]|02:1[0-8])' 
5:重启apache失败
出错如下:[Fri Nov 30 08:49:09 2012] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "="
Configuration Failed
如图:
故障原因:机器的主机名有问题,出问题时机器的主机名为=

利用hostname修改下主机名就可以了!


6:configure: error: pcre-config for libpcre not found. PCRE is required and available from 

故障原因:没有安装pcre-devel包所致

解决方法:



阅读(9137) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~