2. 安装 Roundcubemail
从 Roundcubemail 的官方主页下载最新版本:
http://roundcube.net/download ,目前最新版本是 roundcubemail-0.3-stable.tar.gz
下载 RoundCube 后解压缩上传到指定路径,并确保 /temp 和 /logs 两个目录有网访问权限:
tar zxvf roundcubemail-0.3-stable.tar.gz
mv roundcubemail-0.3-stable /var/www/html/webmail
至此,你可以通过浏览器打开 http://localhost/webmail ,这时系统会提示错误:
CONFIGURATION ERROR
main.inc.php was not found.
db.inc.php was not found.
Please read the INSTALL instructions!
3. 导入 Roundcubemail 的数据库
mysql -u root -p
Enter password:
mysql>
创建数据库:roundcubemail
mysql> CREATE DATABASE roundcubemail DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
将数据库的权限给 MySQL 的本地用户:bianjiesky , 'your_passwd' 改为需要的密码:
mysql> GRANT ALL PRIVILEGES ON roundcubemail.* T