Forums | Mahara Community

Support /
How to enable mime_magic for php 5.2.12?


anonymous profile picture
Account deleted
Posts: 1

09 July 2010, 11:42

I just installed mahara 1.2.5 but I'm getting the following warning message:

[X]
[ENV] d6 Your server does not have the mime_magic extension enabled. Mahara may have trouble detecting file types.
I use php 5.2.12 on Linux.  How do I enable mime_magic extension in order for the warning message to go away?
Iñaki Arenaza's profile picture
Posts: 253

10 July 2010, 16:56

If mime_magic extension doesn't came enabled by default in your PHP version, you probably need to install the newer PHP Fileinfo extension (which supersedes the old Mime Magic extension).

Saludos.
Iñaki.

Paul Taylor's profile picture
Posts: 39

13 July 2010, 6:21

Hi:

I am having the same problem.  There seems to be no way to enable mime_magic and enabling fileinfo makes no difference.

CentOS box running PHP 5.2.13.

Paul

Paul Taylor's profile picture
Posts: 39

14 July 2010, 2:24

It looks as if this has been addressed in a few other forums and requires a change in the config.php file:

http://mahara.org/interaction/forum/topic.php?id=2008

I had to add the line that Richard recommends, but the error messages are at least no longer displayed on the screen, though no doubt the error log if filling fast.

4 results