php扩展安装

php扩展安装

背景为:先安装了mysql,后安装的php
php安装后自带部分扩展文件(linux系统为.so,win系统为.dll),存放在usr/lib/php/20190902/中,部分扩展需在/etc/php/7.4/apache2/php.ini中开启插件
本次配置中,php不自带mysqli和mbstring扩展,需自行安装启用:
官方文档(https://www.php.net/manual/zh/mysqli.installation.php)中,只写明了win系统下如何安装,linux系统的安装方法在评论区

apt install php-mysqli
apt install php-mbstring

如果自己下安装包,需要用phpize,如何安装phpize?
或者用yum安装,如何安装yum?

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注