Author Topic: File Info Extension for PHP?  (Read 13866 times)

Offline CarlosinFL

  • Full Member
  • ***
  • Posts: 78
File Info Extension for PHP?
« on: July 15, 2009, 01:41:51 PM »
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"

Offline subset

  • Newbie
  • *
  • Posts: 5
File Info Extension for PHP?
« Reply #1 on: July 16, 2009, 07:21:16 AM »
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="mail@add.loc"

# 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 :)
« Last Edit: July 16, 2009, 07:24:50 AM by subset »

Offline CarlosinFL

  • Full Member
  • ***
  • Posts: 78
File Info Extension for PHP?
« Reply #2 on: July 16, 2009, 09:06:18 AM »
Thank you very much for that info! Very helpful!