httpd.conf中user条目中设置用户是apache,awstats.pl的权限是
-rwxr-xr-x1rootapache527395Feb262005awstats.pl
我只找到繁体中文的,好象没有简体
看了看自己的配置文件,httpd.conf配置的user是nobody;
awstats安装后主目录的属性是下面的样子
引用:
bash-2.05#ls-l
total22
-rw-r--r--1rootother6721Aug1916:27README.TXT
drwxr-xr-x2nobodyother1024Nov1511:33data
drwxr-xr-x3rootother1024Aug1916:27docs
drwxr-xr-x4rootother512Aug1916:27tools
drwxr-xr-x12nobodyother512Aug2217:55root
bash-2.05#pwd
/usr/local/awstats
引用:
必须保证awstats下面的data和root属主和httpd.conf配置文件的中的user条目中的用户相同,相对你的问题就是apache用户不是该目录及目录下的属主,解决方法su-root;chown-Rapachedataroot
修补放到了blog里面,有兴趣的可以看一看
?articleId=55192&blogId=8983
奇怪,这是我的httpd.conf
#
#Ifyouwishhttpdtorunasadifferentuserorgroup,youmustrun
#httpdasrootinitiallyanditwillswitch.
#
#User/Group:Thename(or#number)oftheuser/grouptorunhttpdas.
#.OnSCO(ODT3)use"Usernouser"and"Groupnogroup".
#.OnHPUXyoumaynotbeabletousesharedmemoryasnobody,andthe
#suggestedworkaroundistocreateauserandusethatuser.
#NOTEthatsomekernelsrefusetosetgid(Group)orsemctl(IPC_SET)
#whenthevalueof(unsigned)Groupisabove60000;
#don'tuseGroup#-1onthesesystems!
#
Userapache
Groupapache
[root@awstats]#ll
total44
drwxr-xr-x2apacheroot4096Nov3010:35data
drwxr-xr-x3rootroot4096Nov1414:29docs
-r--r--r--1rootroot6721Feb262005README.TXT
drwxr-xr-x4rootroot4096Nov1414:29tools
drwxr-xr-x7apacheapache4096Nov1414:29root
但还是不行
俺现在使用的是webalizer分析软件,看看啥时候试试awstats这个玩艺。
;)
那麻烦你把完整的错误信息,尽量多的提供上来再帮你看看。
引用:原帖由lingy于2005-12-209:22发表
奇怪,这是我的httpd.conf
#
#Ifyouwishhttpdtorunasadifferentuserorgroup,youmustrun
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-22767-5.html
不懂就不要乱喷
加油
台湾的民进党是汉奸党