本文根据宝塔面板php安装第三方扩展教程实现宝塔面板PHP7.2版本安装启用第三方PECL扩展dbase。
[root@lncu ~]# wget https://pecl.php.net/get/dbase-7.0.1.tgz
[root@lncu ~]# tar xvf dbase-7.0.1.tgz
[root@lncu ~]# cd dbase-7.0.1
[root@lncu dbase-7.0.1]# /www/server/php/72/bin/phpize
[root@lncu dbase-7.0.1]# ./configure --with-php-config=/www/server/php/72/bin/php-config
[root@lncu dbase-7.0.1]# make && make install
[root@lncu dbase-7.0.1]# echo "extension = dbase.so" >> /www/server/php/72/etc/php.ini
[root@lncu dbase-7.0.1]# /etc/init.d/php-fpm-72 reload
[root@lncu dbase-7.0.1]# /www/server/php/72/bin/php -m|grep -i xxx
[root@lncu dbase-7.0.1]# cd .. && rm -rf dbase-7.0.1*
(adsbygoogle = window.adsbygoogle || []).push({});
来源:https://www.02405.com/archives/1905