在Debian上解决ThinkPHP兼容性问题,可按以下步骤操作:
sudo apt install php-mbstring php-xml php-curl php-mysql。composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/切换国内镜像。composer why-not查看原因,调整composer.json版本约束或移除冲突包。composer require指定版本。try_files uri uri/ /index.php?query_string;以支持PATHINFO。php think clear清除缓存,php think unit测试核心功能。参考来源: