Enabling PHP extensions for a domain

4 posts / 0 new
Last post
#1 Thu, 10/20/2011 - 09:13
Deez

Enabling PHP extensions for a domain

Hi,

I have a domain on virtualmin and i edited the php.ini file to add the fileinfo extension by adding extension=fileinfo.so to the file, however that seems not to be working. How exactly do i add a new php module to my domain?

Thanks

Thu, 10/20/2011 - 09:40
andreychek

Howdy,

First, you'd want to be certain that the fileinfo.so module is installed on your server.

If it is -- you could try pointing to the full path, rather than just the file name. For example, use "extension=/path/to/fileinfo.so".

-Eric

Fri, 10/21/2011 - 09:25
Deez

Thanks for the reply, just checked the server and it's not installed. How do i properly install it?

Fri, 10/21/2011 - 09:47
andreychek

Well, the first step would be to determine if there is a package that includes the fileinfo module available for your distribution.

If not, you may need to manually install fileinfo using PECL.

Note that according to the PECL page, fileinfo is enabled by default in PHP 5.3.x:

http://pecl.php.net/package/Fileinfo

Topic locked