PHP8.3.9安装记录,Phpmyadmin访问提示缺少mysqli
ubuntu 22.0.4 腾讯云主机
下载好依赖
sudo apt update
sudo apt install -y build-essential libxml2-dev libssl-dev libcurl4-openssl-dev pkg-config libbz2-dev libreadline-dev libicu-dev libsqlite3-dev libwebp-dev
下载php8.3.9安装包
nullhttps://www.php.net/downloads编译
./configure --enable-fpm --with-mysqli
进行配置
PHP: Unix 系统下的 Nginx 1.4.x - Manual
phpmyadmin安装后,访问提示 缺少mysqli
根据网上各种教程都无法解决
这里 执行/usr/local/bin/php-config --help
--prefix [/usr/local]
--includes [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
--ldflags []
--libs [ -lrt -lrt -lm -lxml2 -lsqlite3 -lxml2 -lsqlite3 -lxml2 -lxml2 -lxml2 -lxml2 -lz ]
--extension-dir [/usr/local/lib/php/extensions/no-debug-non-zts-20230831]
--include-dir [/usr/local/include/php]
--man-dir [/usr/local/php/man]
--php-binary [/usr/local/bin/php]
--php-sapis [ cli fpm phpdbg cgi]
--ini-path [/usr/local/lib]
--ini-dir []
--configure-options [--enable-fpm --with-mysqli]
--version [8.3.9]
--vernum [80309]
发现配置extension dir的命令
执行/usr/local/bin/php-config --extension-dir /usr/local/lib/php/extensions/no-debug-non-zts-20230831
再就是php.ini里配置
extension=mysqli
重启php
好了
原文地址:https://blog.csdn.net/qq_35573061/article/details/140722229
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!