Here is basic steps how to install the Fileinfo PECL module:
cd /usr/src
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
You can get some errors
checking for magic files in default path… not found
configure: error: Please reinstall the libmagic distribution
Solution : Please make sure file and file-devel are installed. (Please use the latest rpmforge-release package)
yum install file
yum install file-devel
Then just rerun the "./configure" command and complete the install
To confirm Fileinfo extension is installed properly, please use following command.
php -m |grep fileinfo
php -i |grep fileinfo
Similar Posts:
- None Found