How to manually install extensions in php

install extension

Notice

Different from the operating mode of Apache +PHP or Nginx+PHP, WorkerMan runs based on the PHP command line  PHP CLI  , uses different PHP executable programs, and uses different php.ini files. Therefore, if you print on the webpage and phpinfo()see that an extension is installed, it does not mean that the corresponding extension is also installed on the PHP CLI of the command line .

How to determine which extensions are installed by PHP CLI

Running  php -m will list the installed extensions of the command line PHP CLI, the result is similar to the following:

おすすめ

転載: blog.csdn.net/m0_75007620/article/details/127737286