主题: webmail 無法上傳附件

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MYSQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 6.7
- 与您的问题相关的日志信息:
====

roundcube 寄信加入附件挡案 发生错误

错误讯习 message
-----------------------------
May  4 17:49:30 mail roundcube: PHP Warning:  fopen(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp owned by uid 48 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:49:30 mail roundcube: PHP Warning:  fopen(/var/www/roundcubemail-1.1.4/temp/46533f2ab94a434b0d85850948165e85.tmp): failed to open stream: 沒有此一檔案或目錄 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:50:09 mail roundcube: PHP Warning:  fopen(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp owned by uid 48 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:50:09 mail roundcube: PHP Warning:  fopen(/var/www/roundcubemail-1.1.4/temp/8c290fe92c2404a45fb6233946c45d9e.tmp): failed to open stream: 沒有此一檔案或目錄 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:50:09 mail roundcube: PHP Warning:  fopen(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp owned by uid 48 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:50:09 mail roundcube: PHP Warning:  fopen(/var/www/roundcubemail-1.1.4/temp/41f08fb6550584dc4cf5af3f928991b0.tmp): failed to open stream: 沒有此一檔案或目錄 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:50:38 mail roundcube: PHP Warning:  fopen(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp owned by uid 48 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:50:38 mail roundcube: PHP Warning:  fopen(/var/www/roundcubemail-1.1.4/temp/54a81e9b57ed3f6f6bcf5ea4752d5064.tmp): failed to open stream: 沒有此一檔案或目錄 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:50:38 mail roundcube: PHP Warning:  fopen(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp owned by uid 48 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  4 17:50:38 mail roundcube: PHP Warning:  fopen(/var/www/roundcubemail-1.1.4/temp/9dbf0bdfa324eac5b121b6e614082cdf.tmp): failed to open stream: 沒有此一檔案或目錄 in /var/www/roundcubemail-1.1.4/program/steps/mail/get.inc on line 88
May  7 01:25:11 mail roundcube: <ds3mdgjr> User robin.lin@clhh.com.tw [1.164.249.107]; Message for robin12385@gmail.com; 250: 2.0.0 Ok: queued as 587482BC006C
May  7 01:26:57 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntr9gldr owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 01:27:04 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmnt3p7DJR owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 01:27:10 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntwoJCxf owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 01:27:49 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntc7LyuA owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 01:28:44 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmnts4f8kb owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 01:29:19 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntkgaABp owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 01:31:43 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntgD1nwk owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 01:32:38 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntlvJrI2 owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 01:36:44 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmnttDz4CT owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 02:03:56 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntUZYIyL owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 02:11:16 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmnt8CPe5a owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 02:12:12 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntLDsGWx owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 02:12:19 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntUpSZ9k owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
May  7 10:12:31 mail roundcube: PHP Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/roundcubemail-1.1.4/temp/rcmAttmntJhHooJ owned by uid 48 in /var/www/roundcubemail-1.1.4/plugins/filesystem_attachments/filesystem_attachments.php on line 59
-----------------------------

回复: webmail 無法上傳附件

我用 iRedMail-0.9.5 测试了一下,没有问题。

另外:

*) iRedMail-0.9.5 带的是 Roundcube 1.1.5,为何你的是 1.1.4?是从旧版本 iRedMail 升级上来的么?
*) 为何 Roundcube 的 temp/ 目录下的文件 owner 为不同的 uid?应该都是 Apache 用户才对。

回复: webmail 無法上傳附件

ZhangHuangbin 写道:

我用 iRedMail-0.9.5 测试了一下,没有问题。

另外:

*) iRedMail-0.9.5 带的是 Roundcube 1.1.5,为何你的是 1.1.4?是从旧版本 iRedMail 升级上来的么?
*) 为何 Roundcube 的 temp/ 目录下的文件 owner 为不同的 uid?应该都是 Apache 用户才对。

回复张老师
** 张老师 的确是从0.9.4 升级上来的

**我的问题 已经解决了 将php.ini 中 safe_mode=on 关闭重启服务后正常
iredmail原厂预设 是off的 抱歉 因为服务器上另有放置web server 故开启

打扰了