★如php-gd,curl,imagick,mbstring,zip,intl……
~$ sudo apt-cache search php-gd
php-gd – GD module for PHP [default]
php8.1-gd – GD module for PHP
~$ sudo apt-get install php8.1-gd
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
……
~$ sudo systemctl restart apache2
★其它模块安装类似,搜索>安装,如法炮制,最后重启apache
~$ sudo apt-cache search curl | grep php
~$ sudo apt-get install php8.1-curl
~$ sudo apt-cache search imagick | grep php
~$ sudo apt-get install php8.1-imagick
~$ sudo apt-cache search mbstring | grep php
~$ sudo apt-get install php8.1-mbstring
~$ sudo apt-cache search zip | grep php
~$ sudo apt-get install php8.1-zip
~$ sudo apt-cache search intl | grep php
~$ sudo apt-get install php8.1-intl
“wp提示php各种模块未被安装”的一个回复