免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2884 | 回复: 6
打印 上一主题 下一主题

[Mail] mailman后报Mailman CGI error!!!,请各位大虾帮忙指点下! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-02 11:38 |只看该作者 |倒序浏览
我的mailman环境是按照yiyou的extmail搭建的,地址为“http://www.yiyou.org/docs/centos_extmail_01/
现在需要使用mailman,使用yum安装后报访问http://localhost/mailman/admin后报以下错误
Mailman CGI error!!!
The Mailman CGI wrapper encountered a fatal error. This entry is being stored in your syslog:
Group mismatch error. Mailman expected the CGI wrapper script to be
executed as one of the following groups:
[apache],
but the system's web server executed the CGI script as group: "vgroup".
Try tweaking the web server to run the script as one of these groups:
[apache],
or re-run configure providing the command line option:
'--with-cgi-gid=vgroup'.
我把http.conf的group改为apache就可以正常打开了,有那为大虾知道不修改group使其能够正常访问吗?

之后我试着编译安装了一下,下的是mailman-2.1.9.tgzbash# groupadd mailman
bash# useradd -g mailman -M -s /sbin/nologin mailman
bash# mkdir -p /usr/local/mailman
bash# chown -R mailman.mailman /usr/local/mailman
bash# chmod -R 2775 /usr/local/mailman
./configure --with-cgi-gid=vgroup --prefix=/usr/local/mailman
make
在make install时报如下错误(只截取了错误的一部分)
src/_koco_uhc.h:3006: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3007: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3007: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3007: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3007: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3007: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3007: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3008: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3008: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3008: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3008: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3008: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3008: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3009: warning: pointer targets in initialization differ in signedness
src/_koco_uhc.h:3009: warning: pointer targets in initialization differ in signedness
src/_koco.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/_koco.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/_koco.c: In function ‘error_type’:
src/_koco.c:82: error: ‘NULL’ undeclared (first use in this function)
src/_koco.c:82: error: (Each undeclared identifier is reported only once
src/_koco.c:82: error: for each function it appears in.)
src/_koco.c:82: warning: implicit declaration of function ‘strcmp’
src/_koco.c:92: warning: implicit declaration of function ‘PyErr_Format’
src/_koco.c:92: error: ‘PyExc_ValueError’ undeclared (first use in this function)
src/_koco.c: At top level:
src/_koco.c:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from src/_koco.c:121:
src/euckr_codec.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/euckr_codec.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from src/_koco.c:122:
src/cp949_codec.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/cp949_codec.h:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from src/_koco.c:123:
src/koco_stream.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/koco_stream.h:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/koco_stream.h:262: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/koco_stream.h: In function ‘streaminfo_destroy’:
src/koco_stream.h:295: warning: implicit declaration of function ‘PyMem_Del’
src/koco_stream.h: At top level:
src/koco_stream.h:300: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/koco_stream.h:352: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/koco_stream.h:418: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/koco_stream.h:484: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/koco_stream.h:549: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/koco_stream.h:569: error: array type has incomplete element type
src/koco_stream.h:570: error: ‘PyCFunction’ undeclared here (not in a function)
src/koco_stream.h:570: error: expected ‘}’ before ‘StreamReader___init__’
src/koco_stream.h:573: error: expected ‘}’ before ‘StreamReader_read’
src/koco_stream.h:576: error: expected ‘}’ before ‘StreamReader_readline’
src/koco_stream.h:579: error: expected ‘}’ before ‘StreamReader_readlines’
src/koco_stream.h:582: error: expected ‘}’ before ‘StreamReader_reset’
src/koco_stream.h:585: error: ‘NULL’ undeclared here (not in a function)
src/_koco.c:129: error: array type has incomplete element type
src/_koco.c:130: error: expected ‘}’ before ‘euc_kr_decode’
src/_koco.c:131: error: expected ‘}’ before ‘euc_kr_encode’
src/_koco.c:132: error: expected ‘}’ before ‘cp949_decode’
src/_koco.c:133: error: expected ‘}’ before ‘cp949_encode’
src/_koco.c: In function ‘init_koco’:
src/_koco.c:142: error: ‘PyObject’ undeclared (first use in this function)
src/_koco.c:142: error: ‘m’ undeclared (first use in this function)
src/_koco.c:142: error: ‘d’ undeclared (first use in this function)
src/_koco.c:142: warning: left-hand operand of comma expression has no effect
src/_koco.c:142: error: ‘t’ undeclared (first use in this function)
src/_koco.c:142: warning: left-hand operand of comma expression has no effect
src/_koco.c:145: warning: implicit declaration of function ‘Py_InitModule’
src/_koco.c:148: warning: implicit declaration of function ‘PyModule_GetDict’
src/_koco.c:150: warning: implicit declaration of function ‘PyClass_New_WithMethods’
src/_koco.c:151: warning: implicit declaration of function ‘PyDict_SetItemString’
src/_koco.c:152: warning: implicit declaration of function ‘Py_DECREF’
src/_koco.c:154: warning: implicit declaration of function ‘PyString_FromString’
src/_koco.c:158: error: ‘ErrorObject’ undeclared (first use in this function)
src/_koco.c:158: warning: implicit declaration of function ‘PyErr_NewException’
src/_koco.c:163: warning: implicit declaration of function ‘PyErr_Occurred’
src/_koco.c:164: warning: implicit declaration of function ‘Py_FatalError’
error: command 'gcc' failed with exit status 1
make[1]: *** [install-packages] Error 1
make[1]: Leaving directory `/root/mailman-2.1.9/misc'
make[1]: Entering directory `/root/mailman-2.1.9/Mailman'



Traceback (most recent call last):
  File "bin/update", line 46, in ?
    import paths
  File "/usr/local/mailman/bin/paths.py", line 60, in ?
    import korean
ImportError: No module named korean
make: *** [update] Error 1

之后能访问但也是报Mailman CGI error!!!

[ 本帖最后由 shipyss 于 2009-7-2 12:00 编辑 ]

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
2 [报告]
发表于 2009-07-02 16:29 |只看该作者
我把http.conf的group改为apache就可以正常打开了,有那为大虾知道不修改group使其能够正常访问吗?

------看你目录的一些权限和组

论坛徽章:
0
3 [报告]
发表于 2009-07-02 17:57 |只看该作者
yum安装完默认权限为,drwxrwsr-x  13 root   mailman    4096 Jul  2 16:50 mailman
我尝试用chown -R root:vgroup mailman
chown -R vuser:vgroup mailman
chown -R root:vgroup mailman
chown -R root:vgroup mailman/cgi-bin
修改目录权限
但故障依旧不知道这么改对不对,请指教谢谢

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
4 [报告]
发表于 2009-07-03 08:47 |只看该作者
我把http.conf的group改为apache就可以正常打开了

这样有什么其他的问题么?

论坛徽章:
0
5 [报告]
发表于 2009-07-03 23:36 |只看该作者
不用apache跑mailman
用lighttpd跑的

论坛徽章:
0
6 [报告]
发表于 2009-07-03 23:39 |只看该作者
不用apache跑mailman
用lighttpd跑的

论坛徽章:
0
7 [报告]
发表于 2009-07-06 10:50 |只看该作者
回4楼:有几个目录是需要用到这个组的。
回楼上:谢谢指教,我有空装个lighttpd看下怎么样。有问题的话再来请教
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP