Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: meelis on November 14, 2012, 07:20:18 AM
-
I cannot add attachment in roundcube, i see error "upload failed" but webmail all working. Http and roundcube logs dont show eny errors but messages log i see this: httpd: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
-
meelis:
did you try to search with google (http://bit.ly/T0HuV1)?
-
and here in the forums, of course:
http://forums.contribs.org/index.php/topic,47750.msg236056.html#msg236056
http://forums.contribs.org/index.php/topic,46188.msg226081.html#msg226081
http://forums.contribs.org/index.php/topic,41655.msg194604.html#msg194604
-
my rouncube installed /opt/roundcube
db accounts setprop roundcube PHPBaseDir /opt/rouncube:/home/e-smith/files/ibays/Primary/html/
signal-event ibay-modify roundcube
Is this right?
-
no, since that command work for ibays
-
How i can change this?
-
how did you install roundcube?
-
http://wiki.contribs.org/RoundCube
-
http://wiki.contribs.org/RoundCube#Local_Settings
you have to edit the right fragment
I don't use RC, so can't tell you more
-
I templated this $rcmail_config['temp_dir'] = '/home/e-smith/files/ibays/Primary/html/tmp/'; but i still get error
open_basedir restriction in effect. File(/home/e-smith/files/ibays/Primary/html/tmp) is not within the allowed path(s): (/opt/roundcube) in /opt/roundcube/program/include/rcube_config.php on line 91
and
open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/opt/roundcube) in Unknown on line 0
and
File upload error - unable to create a temporary file in Unknown on line 0
-
meelis
roundcube is installed in /opt/roundcube, so it has NOTHING to do with /home and primary ibay..
-
ok, but if i change this i get error Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/opt/roundcube) in Unknown on line 0
-
you have to add /tmp to basedir for roundcube
-
Im very sorry because im so stupid but how?
This is fragment my httpd.conf if i change php_admin_value open_basedir /opt/roundcube to php_admin_value open_basedir /opt/roundcube/tmp, then roundcube not working at all
Alias /roundcube /opt/roundcube
<Directory /opt/roundcube>
order deny,allow
deny from all
allow from all
AddType application/x-httpd-php .php
php_admin_value open_basedir /opt/roundcube
php_admin_value eaccelerator.enable 1
</Directory>
-
Alias /roundcube /opt/roundcube
<Directory /opt/roundcube>
order deny,allow
deny from all
allow from all
AddType application/x-httpd-php .php
php_admin_value open_basedir /opt/roundcube
php_admin_value eaccelerator.enable 1
</Directory>
meelins
first of all, use google.. it knows (almost everything).. and I'm sure that searching for "open_basedir syntax" would help you
anyway, try
Alias /roundcube /opt/roundcube
<Directory /opt/roundcube>
order deny,allow
deny from all
allow from all
AddType application/x-httpd-php .php
php_admin_value open_basedir /opt/roundcube:/tmp
php_admin_value eaccelerator.enable 1
</Directory>
HTH
-
Finally, many many thanks
-
you are welcome, but let me repeat/suggest you:
- read what you have in front of you, on the screen
- use the "search" link above
- use Google
:-)