Hello,
I activated the safe_mode for php and I then applied the patch given in the bug track of roundcubemail (applied manually).
However I still have some problems uploading attachments. When the file is uploaded it can't access it as the script is not owned by the webserver user (www-data).
Here's the error:
move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 2152 is not allowed to access /tmp/rcmAttmnt8pfjc9 owned by uid 33 in [...]roundcubemail/program/steps/mail/upload.inc on line 42, referer: [...]/roundcubemail/?_auth=4107d2f552680f686d1298e287301ea5cd6572b4&_task=mail&_action=compose
Am I doing something wrong ?
RoundCubeMail version: Version 0.1-20060320 (from CVS)
Does anyone encounter the same problem ?
Horus Networks Sàrl http://www.horus.ch Responsable technique Alexis Domjan adomjan@horus.ch
Hi,
try to change the "upload_tmp"_dir in your php.ini to a place within your webroot. If this is undefined, php use the system default path. in your case /tmp.
; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir =
If you use virtaulhosts, use the "php_admin_value upload_tmp_dir" in your apache config.
I'm using safe_mode too. i works great!
greetings thomas
On Mon, 27 Mar 2006 18:01:34 +0200, Alexis Domjan adomjan@horus.ch wrote:
Hello,
I activated the safe_mode for php and I then applied the patch given in the bug track of roundcubemail (applied manually).
However I still have some problems uploading attachments. When the file is uploaded it can't access it as the script is not owned by the webserver user (www-data).
Here's the error:
move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 2152 is not allowed to access /tmp/rcmAttmnt8pfjc9 owned by uid 33 in [...]roundcubemail/program/steps/mail/upload.inc on line 42, referer: [...]/roundcubemail/?_auth=4107d2f552680f686d1298e287301ea5cd6572b4&_task=mail&_action=compose
Am I doing something wrong ?
RoundCubeMail version: Version 0.1-20060320 (from CVS)
Does anyone encounter the same problem ?
Best regards
On Tue, Mar 28, 2006 at 08:29:57AM +0200, Thomas Makowski wrote: Hi,
Thanks for your help,
; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir = If you use virtaulhosts, use the "php_admin_value upload_tmp_dir" in your apache config.
Now the file is uploaded (as it takes some time while file is transfering), however once it's uploaded it still doesn't appear in the list of attached files.
In the rc temp folders there tere is now a folder which has been created and it contains empty rcmAttmntxxxxxx files. So it seems that it's better but it still has some problems.
Additionnaly there is no error in the apache log files, that is, everything looks nice now, excepted file upload doesn't achieve completely.
See you,
On Mon, 27 Mar 2006 18:01:34 +0200, Alexis Domjan adomjan@horus.ch wrote:
Hello,
I activated the safe_mode for php and I then applied the patch given in the bug track of roundcubemail (applied manually).
However I still have some problems uploading attachments. When the file is uploaded it can't access it as the script is not owned by the webserver user (www-data).
Here's the error:
move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 2152 is not allowed to access /tmp/rcmAttmnt8pfjc9 owned by uid 33 in [...]roundcubemail/program/steps/mail/upload.inc on line 42, referer: [...]/roundcubemail/?_auth=4107d2f552680f686d1298e287301ea5cd6572b4&_task=mail&_action=compose
Am I doing something wrong ?
RoundCubeMail version: Version 0.1-20060320 (from CVS)
Does anyone encounter the same problem ?
Best regards
Hi,
Please check the RC logfiles under "path_to_rc/temp"
I think it's a permission conflict.....
greetings Thomas
On Tue, 4 Apr 2006 10:18:50 +0200, Alexis Domjan adomjan@horus.ch wrote:
On Tue, Mar 28, 2006 at 08:29:57AM +0200, Thomas Makowski wrote: Hi,
Thanks for your help,
; Temporary directory for HTTP uploaded files (will use system default
if not
; specified). ;upload_tmp_dir = If you use virtaulhosts, use the "php_admin_value upload_tmp_dir" in
your apache config.
Now the file is uploaded (as it takes some time while file is transfering), however once it's uploaded it still doesn't appear in the list of attached files.
In the rc temp folders there tere is now a folder which has been created and it contains empty rcmAttmntxxxxxx files. So it seems that it's better but it still has some problems.
Additionnaly there is no error in the apache log files, that is, everything looks nice now, excepted file upload doesn't achieve completely.
See you,
On Mon, 27 Mar 2006 18:01:34 +0200, Alexis Domjan adomjan@horus.ch
wrote:
Hello,
I activated the safe_mode for php and I then applied the patch given
in
the bug track of roundcubemail (applied manually).
However I still have some problems uploading attachments. When the
file
is uploaded it can't access it as the script is not owned by the webserver user (www-data).
Here's the error:
move_uploaded_file(): SAFE MODE Restriction in effect. The script
whose
uid is 2152 is not allowed to access /tmp/rcmAttmnt8pfjc9 owned by uid
33
in [...]roundcubemail/program/steps/mail/upload.inc on line 42,
referer:
[...]/roundcubemail/?_auth=4107d2f552680f686d1298e287301ea5cd6572b4&_task=mail&_action=compose
Am I doing something wrong ?
RoundCubeMail version: Version 0.1-20060320 (from CVS)
Does anyone encounter the same problem ?
Best regards
it's me again :-)
change the owner of RC to www-data. it's not the best way but it works. RC create the folders only with owner read+write permissions.
cu Thomas
On Tue, 4 Apr 2006 10:18:50 +0200, Alexis Domjan adomjan@horus.ch wrote:
On Tue, Mar 28, 2006 at 08:29:57AM +0200, Thomas Makowski wrote: Hi,
Thanks for your help,
; Temporary directory for HTTP uploaded files (will use system default
if not
; specified). ;upload_tmp_dir = If you use virtaulhosts, use the "php_admin_value upload_tmp_dir" in
your apache config.
Now the file is uploaded (as it takes some time while file is transfering), however once it's uploaded it still doesn't appear in the list of attached files.
In the rc temp folders there tere is now a folder which has been created and it contains empty rcmAttmntxxxxxx files. So it seems that it's better but it still has some problems.
Additionnaly there is no error in the apache log files, that is, everything looks nice now, excepted file upload doesn't achieve completely.
See you,
On Mon, 27 Mar 2006 18:01:34 +0200, Alexis Domjan adomjan@horus.ch
wrote:
Hello,
I activated the safe_mode for php and I then applied the patch given
in
the bug track of roundcubemail (applied manually).
However I still have some problems uploading attachments. When the
file
is uploaded it can't access it as the script is not owned by the webserver user (www-data).
Here's the error:
move_uploaded_file(): SAFE MODE Restriction in effect. The script
whose
uid is 2152 is not allowed to access /tmp/rcmAttmnt8pfjc9 owned by uid
33
in [...]roundcubemail/program/steps/mail/upload.inc on line 42,
referer:
[...]/roundcubemail/?_auth=4107d2f552680f686d1298e287301ea5cd6572b4&_task=mail&_action=compose
Am I doing something wrong ?
RoundCubeMail version: Version 0.1-20060320 (from CVS)
Does anyone encounter the same problem ?
Best regards