
8

LNMP环境下fileinfo扩展的安装 - idealclover
source link: https://idealclover.top/archives/353/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

LNMP 环境下 fileinfo 扩展的安装
2018.11.07 | Linux 使用 | 1483 浏览 | 1 赞 | 0 条评论
请注意,本文编写于 1112 天前,最后修改于 931 天前,其中某些信息可能已经过时。
- 进入 lnmp 源码文件夹
cd ~/lnmp1.5-full/src/php-5.5.38
- 解压相应的 php 版本的源码包
tar -xjvf php-5.5.38
- 跳转到 fileinfo 源代码目录
cd php-5.5.38/ext/fileinfo/
- 执行
/usr/local/php/bin/phpize
- 执行
./configure --with--config=/usr/local/php/bin/php-config
- 执行
make && make install
- 修改 php.ini 文件
vi /usr/local/php/etc/php.ini
在末尾增加extension = fileinfo.so
- 重启 php-fpm ,
systemctl restart php-fpm
本文链接:https://idealclover.top/archives/353/
本作品由 idealclover 采用 知识共享署名 - 非商业性使用 - 相同方式共享 4.0 国际许可协议 进行许可,转载请注明出处。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK