- 论坛徽章:
- 0
|
各位dx好:
我当前的操作系统是opensuse 10.3,使用extman-0.2.2.tar.
使用web方式发送邮件时,提示如下错误:
gettimeofday: Invalid argument at /var/www/extsuite/extmail/libs/Ext/Storage/Maildir.pm line 670
我使用了FastCGI方式运行Extmail,可以使用web发邮件了.但是,一旦有多个人并发,或高频率的发送几次后,又会出现:
gettimeofday: Invalid argument at /var/www/extsuite/extmail/libs/Ext/Storage/Maildir.pm line 670
的提示.必须重启apache,才能继续使用.
请问这是什么原因呢?各位都遇到过这种情况吗?
我的fastcgi配置如下:
首先安装FastCGI FastCGI-devel perl-FastCGI包
安装fastcgi
# tar –zxvf mod_fastcgi-2.4.6.tar.gz –C /usr/src
# cd /usr/src/mod_fastcgi-2.4.6
# cp Makefile.AP2 Makefile
# make
# make install
修改dispatch.fcgi
# vi /var/www/extsuite/extmail/dispatch.fcgi
将
#!/bin/sh
# vim: set cindent expandtab ts=4 sw=4:
exec ${PERL-perl} -Swx $0 ${1+"$@"}
改为:
#!/usr/bin/suidperl
# vim: set cindent expandtab ts=4 sw=4:
删除原来的第三行
给dispatch.fcgi加 ‘S’ 权限
# chmod u+s dispatch.fcgi
#chmod vmail:vmail 4755 dispatch.fcgi
# mkdir /usr/local/apache2/logs/fastcgi
# chown vmail:vmail /usr/local/apache2/logs/fastcgi
# chmod 700 /usr/local/apache2/logs/fastcgi
修改httpd.conf
添加:
LoadModule fastcgi_module modules/mod_fastcgi.so
修改虚拟主机:
NameVirtualHost xxxx:80
<VirtualHost xxxx:80>
ServerName mail.test.com.cn
SuexecUserGroup vmail vmail
ScriptAlias /extmail/cgi/ /var/www/extsuite/extmail/dispatch.fcgi/
Alias /extmail /var/www/extsuite/extmail/html/
<Location "/extmail/cgi">
SetHandler fastcgi-script
Options +ExecCGI
</Location>
</VirtualHost>
<VirtualHost xxxx:80>
Options Indexes FollowSymLinks
ServerName www.test.com.cn
DocumentRoot /var/www/extsuite/extman/html/
Alias /extman/cgi/ /var/www/extsuite/extman/cgi/
Alias /extman/ /var/www/extsuite/extman/html/
<Location "/extman/cgi">
SetHandler cgi-script
Options +ExecCGI
AllowOverride All
</Location>
</VirtualHost>
有什么问题吗?请各位帮忙看看~~谢谢~~
[ 本帖最后由 seeking_su 于 2008-2-18 17:16 编辑 ] |
|