今天在我的免费云服务器,阿贝云上安装dbase扩展。系统是centos,安装好了宝塔面板。
 第一步,
 yum install php-pear
 pecl install dbase
 (显示Installing ‘/usr/lib64/php/modules/dbase.so’
 install ok: channel://pecl.php.net/dbase-7.1.1
 configuration option “php_ini” is not set to php.ini location
 You should add “extension=dbase.so” to php.ini)
 第二步,将so文件修改权限为-rwxr-xr-x
 cd /usr/lib64/php/modules/
 chmod 755 dbase.so
ls -l dbase.so
第三步,我的php版本是php=7.1.33
 宝塔面板是软件商店,php7.1管理,配置文件(php.ini实际位置是/www/server/php/71/etc/)
在Dynamic Extensions项后追加以下内容,我加在了878行
extension=/usr/lib64/php/modules/dbase.so
 第四步,重启PHP,分析日志
 : cannot open shared object file: No such file or directory in Unknown on line 0
 于是我用以下命令复制
 cp /usr/lib64/php/modules/dbase.so /www/server/php/71/lib/php/extensions/no-debug-non-zts-20170718/dbase.so
 第五步,
 PHP Startup: dbase: Unable to initialize module
 Module compiled with module API=20170718
 PHP compiled with module API=20160303
 These options need to match
 第六步,切换php到php7.2.33
 第七步,重复第三步
 第八步,重复第四步
 cp /usr/lib64/php/modules/dbase.so /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/dbase.so
 终于dbase安装大功告成。
 第九步,https://www.php.cn/manual/view/2201.html 学习用法