Roundcube destroy doc (Word) files / File(/etc/mime.types) is not within the allowed

  • Gelöst, lösung steht unten.
    Solved, solution down under


    i-MSCP 1.1.0-rc2.1
    --> PHP-FPM
    OS: Debian Wheezy
    CPU: Intel Xeon
    RAM: 64GB RAM
    HDD: RAID 1 TB


    Fehler:
    Wenn über Roundcube eine DOC/PDF Datei gedownloadet wird.
    Erscheint folgende Fehler auf den ersten Word Seiten:


    Code
    1. Warning: is_readable(): open_basedir restriction in effect. File(/etc/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798Warning: is_readable(): open_basedir restriction in effect. File(/etc/httpd/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798Warning: is_readable(): open_basedir restriction in effect. File(/etc/httpd2/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798Warning: is_readable(): open_basedir restriction in effect. File(/etc/apache/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798Warning: is_readable(): open_basedir restriction in effect. File(/etc/apache2/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798Warning: is_readable(): open_basedir restriction in effect. File(/usr/local/etc/httpd/conf/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798Warning: is_readable(): open_basedir restriction in effect. File(/usr/local/etc/apache/conf/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798–œ ‡°± · > ˛ˇ 1 3 ˛ˇˇˇ 0 ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇÏ•¡ Ä  ø W




    When i download a doc (Word) File from Roundcube. The Doc and PDF File is destroyed.
    On the first Word Page came this hint/error

    Code
    1. Warning: is_readable(): open_basedir restriction in effect. File(/etc/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798
    2. Warning: is_readable(): open_basedir restriction in effect. File(/etc/httpd/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798
    3. Warning: is_readable(): open_basedir restriction in effect. File(/etc/httpd2/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798
    4. Warning: is_readable(): open_basedir restriction in effect. File(/etc/apache/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798
    5. Warning: is_readable(): open_basedir restriction in effect. File(/etc/apache2/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798
    6. Warning: is_readable(): open_basedir restriction in effect. File(/usr/local/etc/httpd/conf/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798
    7. Warning: is_readable(): open_basedir restriction in effect. File(/usr/local/etc/apache/conf/mime.types) is not within the allowed path(s): (/var/www/imscp/gui/:/etc/imscp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php:/usr/share/pear/) in /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php on line 798
    8. –œ ‡°± · > ˛ˇ 1 3 ˛ˇˇˇ 0 ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇÏ•¡ Ä  ø W








    [hr][hr][hr]
    Durch das ändern des debug level auf 1, hat sich der Fehler erledigt. doc und pdf werden wieder wie gewohnt angezeigt
    Dhange the debug level to 1, solve the error. doc and pdf is now show correctly


    // system error reporting, sum of: 1 = log; 4 = show, 8 = trace
    $rcmail_config['debug_level'] = 1;

    Edited once, last by BudSpencer ().

  • Die Warnungen zu verstecken ist ned grad eine elegante Lösung :D
    Verwendest eaccelerator?


  • Die Warnungen zu verstecken ist ned grad eine elegante Lösung :D
    Verwendest eaccelerator?


    Nein, kein eaccelerator o. xcache.
    Standard wheezy apache mit php-fpm.
    Ohne modifikations bis jetzt.



    Die Warnungen sind mir egal, so lange mich die Kunden nicht ständig anrufen und behaupten Ihre Dateien seinen kaputt. Und wieso Roundcube die Datei kaputt schreibst verstehe ich nicht. Forward ich die Datei an Googlemail oder an meine adresse wo ich sie mit Apple Mail downloade, sind die Anhänge okay.



    und ein mime.type problem sollte ich nicht haben, da sich mime.type in /etc/ befindet.
    Sehr merkwürdig das ganze.

    Edited once, last by BudSpencer ().


  • Du kannst ja den Pfad zum globalen open_base_dir in admin/settings hinzufügen....Nur würde ich aufpassen, das Du nicht das komplette /etc freigibst :)


    Hello;


    Roundcube need access to the /etc/mime.types file :huh: If yes, it's a bug and a ticket should be opened. ;) The problem occurs only when some doc type are attached? Someone can try to translate that thread for me (a little summary should be sufficient).


    Thank you for using i-MSCP.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().


  • Someone can try to translate that thread for me (a little summary should be sufficient).


    Which text, because the described problem is in german and english.. :)

  • Which text, because the described problem is in german and english.. :)


    Hello ;


    In English ? Where ?


    Thanks

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello;


    Roundcube need access to the /etc/mime.types file :huh: If yes, it's a bug and a ticket should be opened. ;) The problem occurs only when some doc type are attached? Someone can try to translate that thread for me (a little summary should be sufficient).


    Thank you for using i-MSCP.


    first, after i found the solution, is think this issent an i-mscp error, its a roundcube error.


    I just try with some different *.doc and *.pdf Files.
    Both filetypes are destroyed (See the Attached Screenshot).
    If the debug is disable, the files are normal and readable again. (very strange)


    Ich habe es nur mit verschiedenen *doc und *pdf Dateien getestet.
    wenn das debug ausgeschaltet ist, werden die Dateien normal angezeigt.


    Yes it look like roundcube need accesses to /etc/mime.types
    /var/www/imscp/gui/public/tools/webmail/program/lib/Roundcube/rcube_mime.php


  • Re


    Thanks for your report. I'll check and fix. ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206