apt-get install -y libmagic-dev libmagic1
cd /usr/src
pecl download fileinfo
tar -xf Fileinfo-1.0.4.tgz
cd Fileinfo-1.0.4
phpize
./configure
make
make install
echo 'extension="fileinfo.so"' > /etc/php5/conf.d/fileinfo.ini
Все, после этого проверяем, подключилось ли расширение:
php -m | grep file
No comments:
Post a Comment
Note: only a member of this blog may post a comment.