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

Title: Roundcube
Post 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

Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 09:44:48 AM
meelis:

did you try to search with google (http://bit.ly/T0HuV1)?

Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 09:47:19 AM
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
Title: Re: Roundcube
Post by: meelis on November 14, 2012, 10:09:53 AM
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?
Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 10:19:07 AM
no, since that command work for ibays
Title: Re: Roundcube
Post by: meelis on November 14, 2012, 10:44:50 AM
How i can change this?
Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 10:47:28 AM
how did you install roundcube?
Title: Re: Roundcube
Post by: meelis on November 14, 2012, 10:53:47 AM
http://wiki.contribs.org/RoundCube
Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 11:04:25 AM
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
Title: Re: Roundcube
Post by: meelis on November 14, 2012, 11:42:49 AM
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
Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 11:51:13 AM
meelis

roundcube is installed in /opt/roundcube, so it has NOTHING to do with /home and primary ibay..
Title: Re: Roundcube
Post by: meelis on November 14, 2012, 11:59:55 AM
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
Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 12:06:25 PM
you have to add /tmp to basedir for roundcube
Title: Re: Roundcube
Post by: meelis on November 14, 2012, 12:12:32 PM
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>
Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 12:22:38 PM
Code: [Select]
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
Code: [Select]
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
Title: Re: Roundcube
Post by: meelis on November 14, 2012, 12:27:51 PM
Finally, many many thanks
Title: Re: Roundcube
Post by: Stefano on November 14, 2012, 12:30:49 PM
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

:-)