Roundcube Community Forum

Release Support => Release Discussion => Topic started by: pleonepola on February 26, 2014, 08:15:10 AM

Title: Installation problem - mime
Post by: pleonepola 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.
Title: Re: Installation problem - mime
Post by: brumc 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
Title: Re: Installation problem - mime
Post by: pleonepola on February 27, 2014, 09:01:47 AM
Until now I have no solution. I hope somebody can help with this issue.

Thanks, Pietro.
Title: Re: Installation problem - mime
Post by: ABerglund 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.
Title: Re: Installation problem - mime
Post by: pleonepola 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.