Roundcube Community Forum

 

File Info Extension for PHP?

Started by CarlosinFL, July 15, 2009, 01:41:51 PM

Previous topic - Next topic

CarlosinFL

How do you guys resolve the 'file info' extension that is used for PHP? I can never find that package on Debian. It's the only package I am unable to satisfy on my server for RoundCube. Anyone use Debian and or know how I can resolve this?

"FileInfo:  NOT AVAILABLE"

subset

#1
We have 2 way to get php-fileinfo on debian.
1.
# apt-get install php5-dev
# pecl install fileinfo

2. make deb package, after that you can install it to another (same) system too
(I am never devel/make packages on the production system, I have same system for development)

# apt-get install dh-make-php php5-dev build-essential libmagic-dev

# export DEBFULLNAME="Your Name"
# export DEBEMAIL="[email protected]"

# pecl download fileinfo

# dh-make-pecl --only 5 Fileinfo-1.0.4.tgz

# cd php-fileinfo-1.0.4/

# ./debian/rules binary

# dpkg -I ../php5-fileinfo_1.0.4-1_i386.deb

That's all !  
You have php5-fileinfo_1.0.4-1_i386.deb package.
You can intall it to another, but same version system !
If php5 packages is updated, you must recreate this package.

Sorry for my english :)

CarlosinFL

Thank you very much for that info! Very helpful!