The command line php-m did not find the pdo_mysql module. Do you know why?

< H1 > cli mode is not loaded < / H1 >

webphpinfopdo_mysql

clipboard.png

Php
Mar.23,2021

there are multiple versions of php on the machine. The command line and web are not running the same


now there are two ways for php services to provide services:
one is that php-fpm provides FastCGI services, and the other is php-cli command line mode.

* php-fpm is a service that provides forwarding request processing for nginx and apache.
* php-cli has its own independent service.
Menu