STEP 2: mime_content_type() support: OFF

Install and configure FormaLMS and DoceboCE
Post Reply
milcito
Newbie
Posts: 2
Joined: Thu Oct 04, 2012 1:59 am

STEP 2: mime_content_type() support: OFF

Post by milcito »

I have a trouble instaling DOCEBO. I can´t go to the step 3 cause appear: "mime_content_type() support: OFF". Maybe, some of you have already fix this. Please, could you help me?
User avatar
alberto
FormaLms Guru
Posts: 1136
Joined: Fri Mar 02, 2012 9:18 am
Contact:

Re: STEP 2: mime_content_type() support: OFF

Post by alberto »

Hi milcito, welcome onboard! :)
For docebo to work properly the "mime_content_type" support on your server should be enabled, just ask you IT or your provider to do this (they will need to do a simple edit in php.ini).
This is the best solution, but just in case you are on a shared hosting and for some reason you provider doesn't allow this configuration you can add this code at the end of the file /lib/lib.docebo.php

Code: Select all

if (!function_exists('mime_content_type')) {
function mime_content_type($filename) {
return 'application/octet-stream';
}
} 
Let us know if everithing works fine! :)
milcito
Newbie
Posts: 2
Joined: Thu Oct 04, 2012 1:59 am

Re: STEP 2: mime_content_type() support: OFF

Post by milcito »

Thanks Alberto.
Actually, I am installing DOCEBO in my laptop. First, I have installed AppServ. so I think I can enable my phpMyAdmin for support mime_content_type if you help me. Otherwise, I have try adding your code to the file c:/AppServ/www/lib/lib.docebo.php but it´s the same. Maybe I did something wrong.
User avatar
alberto
FormaLms Guru
Posts: 1136
Joined: Fri Mar 02, 2012 9:18 am
Contact:

Re: STEP 2: mime_content_type() support: OFF

Post by alberto »

Hi, you don't need to modify the phpMyAdmin but the php.ini file in the apache install folder with a text editor

Code: Select all

     ;extension=php_fileinfo.dll 
removing the initial ";"

Code: Select all

     
extension=php_fileinfo.dll 
then restart apache service (or restart easyphp / xampp or your application)
Post Reply