From 8f49e4a99c2a35f71b763177b32c2cf1fef9a8c6 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 4 Jul 2013 23:56:26 +0200 Subject: Check filetype detection in installer and update script (#1489193) --- installer/test.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'installer/test.php') diff --git a/installer/test.php b/installer/test.php index fb3e7e937..75dac47aa 100644 --- a/installer/test.php +++ b/installer/test.php @@ -225,6 +225,42 @@ if ($db_working) { ?> +

Test filetype detection

+ +

+check_mime_detection()) { + $RCI->fail('Fileinfo/mime_content_type configuration'); + if (!empty($RCI->config['mime_magic'])) { + echo '

Try setting the mime_magic config option to null.

'; + } + else { + echo '

Check the Fileinfo functions of your PHP installation.
'; + echo 'The path to the magic.mime file can be set using the mime_magic config option in Roundcube.

'; + } +} +else { + $RCI->pass('Fileinfo/mime_content_type configuration'); +} + +?> +

+

+check_mime_extensions()) { + $RCI->fail('Mimetype to file extension mapping'); + echo '

Please set a valid path to your webserver\'s mime.types file to the mime_types config option.
'; + echo 'If you can\'t find such a file, download it from svn.apache.org.

'; +} +else { + $RCI->pass('Mimetype to file extension mapping'); +} + +?> + +

Test SMTP config

-- cgit v1.2.3