Howto install a PHP FileInfo

hr-ethadmin
Site Admin
Posts: 67
Joined: Fri May 31, 2013 1:04 pm

Howto install a PHP FileInfo

Postby hr-ethadmin » Thu Nov 28, 2013 10:00 am

The functions in this module try to guess the content type and encoding of a file by looking for certain magic byte sequences at specific positions within the file. While this is not a bullet proof approach the heuristics used do a very good job.

# wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz
# tar -zxf Fileinfo-1.0.4.tgz
# cd Fileinfo-1.0.4
# phpize
# ./configure
# make
# make install

Add: extension=fileinfo.so in php.ini

Restart Apache service.

Thanks.

Return to “Hostripples dedicated Servers (Linux/Windows)”

Who is online

Users browsing this forum: No registered users and 2 guests