• 欢迎光临~

一键安装PHP扩展,完美解决

开发技术 开发技术 2022-11-01 次浏览

最近在尝试安装在线学习系统Moodle时,需要安装几个扩展,自己编译总是问题不断,后来发现php网站其实已经提供了分类的扩展模块安装,网上看到遇到这个问题的朋友不少,现在以Ubuntu为例分享给大家:

如果你的PHP是7.4版本的,需要zip扩展,直接执行命令: apt install php7.4-zip 即可安装,其它的一样的方法。但是记住,需要重启后才能生效。希望开源帮助到你。

 

php_extension iconv
must be installed and enabled
  OK
php_extension mbstring
must be installed and enabled
  OK
php_extension curl
must be installed and enabled
  OK
php_extension openssl
must be installed and enabled
  OK
php_extension tokenizer
should be installed and enabled for best results
  OK
php_extension xmlrpc
should be installed and enabled for best results
  OK
php_extension soap
should be installed and enabled for best results
  OK
php_extension ctype
must be installed and enabled
  OK
php_extension zip
must be installed and enabled
  OK
php_extension zlib
must be installed and enabled
  OK
php_extension gd
must be installed and enabled
  OK
php_extension simplexml
must be installed and enabled
  OK
php_extension spl
must be installed and enabled
  OK
php_extension pcre
must be installed and enabled
  OK
php_extension dom
must be installed and enabled
  OK
php_extension xml
must be installed and enabled
  OK
php_extension xmlreader
must be installed and enabled
  OK
php_extension intl
must be installed and enabled
  OK
php_extension json
must be installed and enabled
  OK
php_extension hash
must be installed and enabled
  OK
php_extension fileinfo
must be installed and enabled
  OK
php_extension sodium
should be installed and enabled for best results
  OK
php_extension exif
should be installed and enabled for best results
  OK
程序员灯塔
转载请注明原文链接:一键安装PHP扩展,完美解决
喜欢 (0)