Author Topic: Installation problem - mime  (Read 27444 times)

Offline pleonepola

  • Newbie
  • *
  • Posts: 3
Installation problem - mime
« on: February 26, 2014, 08:15:10 AM »
Hallo, I'm installing RC 1.0 with NGINX and MySQL on a CentOS 6.5. All seems OK, but I cannot solve thi issue:

Test filetype detection
Fileinfo/mime_content_type configuration:  OK
Mimetype to file extension mapping:  NOT OK


I tried the standard path:

$config['mime_types'] = '/etc/nginx/mime.types';

and then I copied mime.types in the directory of roundcube:

$config['mime_types'] = '/usr/share/nginx/html/roundcubemail/mime.types';

But the test return always "not ok".

I found this thread:

http://www.roundcubeforum.net/index.php/topic,16841.msg52077.html#msg52077

but as you see the solution for me does not work.

Permissions are:

-rw-r--r--  1 root root   3463 26 feb 14:18 mime.types

Any suggestions?

Thanks, Pietro.

Offline brumc

  • Newbie
  • *
  • Posts: 7
Re: Installation problem - mime
« Reply #1 on: February 27, 2014, 08:46:05 AM »
Hi,

Jus tot let you know i am having since awhile the same issue tried many different settings bunt nothing worked it remained NOT OK,

Am sure am missing something so would be nice to see the solution.

ty

Offline pleonepola

  • Newbie
  • *
  • Posts: 3
Re: Installation problem - mime
« Reply #2 on: February 27, 2014, 09:01:47 AM »
Until now I have no solution. I hope somebody can help with this issue.

Thanks, Pietro.

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: Installation problem - mime
« Reply #3 on: February 27, 2014, 11:12:39 AM »
In Apache what you have done works perfectly. I have the exact same, but to (obviously) a different path. I'm not sure how NGINX reads the path within PHP, perhaps a relative path rather than absolute might work.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline pleonepola

  • Newbie
  • *
  • Posts: 3
Re: Installation problem - mime
« Reply #4 on: February 28, 2014, 06:03:44 AM »
OK, solved, in /etc/nginx thereis a file mime.types, but the format is not recognized by roundcube, so I could not use it. I downloaded the mime.types file from:

http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types

As installer said and copied it in rouncube directory, then in:

config/defaults.inc.php

I change the default:

$config['mime_types'] = null;

to:

$config['mime_types'] = '/usr/share/nginx/html/roundcubemail/mime.types';

I restarted nginx and php-fpm (but I'm not sure if it is mandatory) and all worked!

Thanks, Pietro.