Koozali.org: home of the SME Server

Roundcube

Offline meelis

  • ****
  • 112
  • +0/-0
Roundcube
« 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

« Last Edit: November 14, 2012, 07:23:07 AM by meelis »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube
« Reply #1 on: November 14, 2012, 09:44:48 AM »
meelis:

did you try to search with google?



Offline meelis

  • ****
  • 112
  • +0/-0
Re: Roundcube
« Reply #3 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?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube
« Reply #4 on: November 14, 2012, 10:19:07 AM »
no, since that command work for ibays

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Roundcube
« Reply #5 on: November 14, 2012, 10:44:50 AM »
How i can change this?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube
« Reply #6 on: November 14, 2012, 10:47:28 AM »
how did you install roundcube?

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Roundcube
« Reply #7 on: November 14, 2012, 10:53:47 AM »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube
« Reply #8 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

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Roundcube
« Reply #9 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube
« Reply #10 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..

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Roundcube
« Reply #11 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube
« Reply #12 on: November 14, 2012, 12:06:25 PM »
you have to add /tmp to basedir for roundcube

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Roundcube
« Reply #13 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>

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube
« Reply #14 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

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Roundcube
« Reply #15 on: November 14, 2012, 12:27:51 PM »
Finally, many many thanks

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube
« Reply #16 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

:-)