Roundcube Community Forum

 

Safe Mode - Attachments problem...

Started by Reload, July 01, 2006, 07:01:53 AM

Previous topic - Next topic

Reload

I'm unable to include a attachment when sending a e-mail...  :'(

Looking in my logs file i see the following error:
[01-Jul-2006 12:57:53] PHP Warning: move_uploaded_file(): SAFE MODE Restriction in effect.
The script whose uid is 32192 is not allowed to access temp/127861862244a655235a568/rcmAttmnt7HtTKt owned by uid 99
in /home/[domainname]/public_html/webmail/program/steps/mail/upload.inc on line 42

flosoft

did you change tmp to 777? maybe do chown?

Reload

Yup, temp was changed to 777 and the problem is there from the first mail...


Reload

And again a No go... with a 755 still the same problem...  :(

[01-Jul-2006 15:00:36] PHP Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 32192 is not allowed to access /tmp/rcmAttmntFJjbU5 owned by uid 99 in /home/[domainname]/public_html/webmail/program/steps/mail/upload.inc on line 42

flosoft

well did you try a chown to uid 32192?

Reload

Huh?

How do I do that.... I'm not the owner off the server....


flosoft

In your FTP programm you can maybe try to set it to 7777 .
This should set it normally.

Reload

The problem is that because off the safe mode option my isp has in place
the server sets a different id to the temp folder then the process is using
from within RC.... Both the folders are set to 777 and there is still the
problem... my isp is using cpanel.... :-(

Pride

Столкнулся с подобной проблемой, однако её решение заключается не в отключении безопасного режима, а в замене в config на полный путь к temp_dir:

$rcmail_config['temp_dir'] = 'temp/';
на
$rcmail_config['temp_dir'] = '/www/htdocs/webmail_domain/temp/';

потому что в .../program/steps/mail/upload.inc функция tempnam
не могла создать файл в 'temp/' и делала это в '/tmp' по умолчанию, что повлекло проблемы с безопасным режимом.