emos 1.5 x86_64 将系统默认安装的 extmail1.1 升级到 1.2
将 extmail-1.2.tar.gz extman-1.1.tar.gz 下载放到 /var/www/extsuite
[root@mail extsuite]# cd /var/www/extsuite
将原有的 extmail extman 改名
[root@mail extsuite]# mv extmail extmail.bak
[root@mail extsuite]# mv extman extman.bak
解压压缩包
# tar zxvf extmail-1.2.tar.gz
# tar zxvf extman-1.1.tar.gz
将解压的文件夹改名
# mv extmail-1.2 extmail
# mv extman-1.1 extman
复制配置文件
# cd extmail
[root@mail extmail]# cp webmail.cf.default webmail.cf
修改 mysql 数据库配置
[root@mail extmail]# vim webmail.cf
[root@mail extmail]# if mysql, all relate parameters should prefix as SYS_MYSQL
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = 123456
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /var/lib/mysql/mysql.sock
# cd extman
[root@mail extman]# cp webman.cf.default webman.cf
[root@mail extman]# vim webman.cf
# if mysql, all relate paramters should prefix as SYS_MYSQL
SYS_MYSQL_USER = webman
SYS_MYSQL_PASS = 123456
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /var/lib/mysql/mysql.sock
出现错误:
500 错误
extmail
chmod -R 755 /var/www/extsuite/extmail/cgi/
chown -R vuser.vgroup /var/www/extsuite/extmail/cgi/
extman
chmod -R 755 /var/www/extsuite/extman/cgi/
chown -R vuser.vgroup /var/www/extsuite/extman/cgi/
出现错误:
Can't open /tmp/extman//sid_b2045a90ebc1b352de0a3c08e41cab9b, No such file or directory
更改 extman session 存放地址
#vim /var/www/extsuite/extman/webman.cf
# sys_sess_dir, the session dir
SYS_SESS_DIR = /var/www/extsuite/extman/tmp
mkdir -p /var/www/extsuite/extman/tmp
chown -R vuser.vgroup /var/www/extsuite/extman/tmp
出现错误:
Config fail or not exists;,
extmail 配置文件的
# vim /var/www/extsuite/extmail/webmail.cf
# sys_sess_dir, the session dir
SYS_SESS_DIR = /var/www/extsuite/extmail/tmp
# sys_upload_tmpdir, the temp directory for file uploading
SYS_UPLOAD_TMPDIR = /var/www/extsuite/extmail/tmp
修改权限
# chown -R vuser.vrgoup /var/www/extsuite/extmail/tmp
# chmod -R 755 /var/www/extsuite/extmail/tmp
出现错误:
You don't have permission to access /extmail/cgi/ on this server.
修改html模板
/var/www/extsuite/extmail/html/default/index.html
找到
<tr><td align=center><a href="./?__mode=welcome&sid=<%SID%>"><%enter%></a> </td><td align=center><a href="./?__mode=logout&sid=<%SID%>"><%logout%></a></tr>
改成
<tr><td align=center><a href="./index.cgi ?__mode=welcome&sid=<%SID%>"><%enter%></a> </td><td align=center><a href="./index.cgi ?__mode=logout&sid=<%SID%>"><%logout%></a></tr>
完成升级!