+ Reply to Thread
Results 1 to 3 of 3

Thread: File Info Extension for PHP?

  1. #1
    CarlosinFL is offline Registered User
    Join Date
    May 2009
    Location
    Orlando, FL
    Posts
    77
    Downloads
    0
    Uploads
    0

    Question File Info Extension for PHP?

    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"
    Attached Images

  2. #2
    subset is offline Registered User
    Join Date
    Jul 2009
    Posts
    5
    Downloads
    1
    Uploads
    0

    Default

    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 edited by subset; 07-16-2009 at 12:24 PM.

  3. #3
    CarlosinFL is offline Registered User
    Join Date
    May 2009
    Location
    Orlando, FL
    Posts
    77
    Downloads
    0
    Uploads
    0

    Default

    Thank you very much for that info! Very helpful!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts