dayeah

宝塔面板5.9手动编译php7.3 fileinfo模块

时间:2021-04-03   阅读:764

宝塔中先软件 linux工具箱中增加swap

手动编译fileinfo

wget https://www.php.net/distributions/php-7.3.5.tar.gztar xzvf php-7.3.5.tar.gz
cd php-7.3.5/ext/fileinfo//www/server/php/73/bin/phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make && make install

查看自己的php版本如果是7.3.27就把上面代码中的7.3.5都换成自己的版本号

error: C preprocessor "/lib/cpp" fails sanity check ruby 解决方法

所以试了下 

yum install  kernel-headers

问题解决。

在php的面板中修改配置文件,加入扩展

[fileinfo]
extension = fileinfo.so

保存重启php~完美

参考

https://bugxia.com/1150.html


https://blog.csdn.net/qq_17518433/article/details/103810413


上一篇:苹果CMSmaccms绕过安装检测

下一篇:nginx反代方法

网友评论