一键安装PHP扩展,完美解决
最近在尝试安装在线学习系统Moodle时,需要安装几个扩展,自己编译总是问题不断,后来发现php网站其实已经提供了分类的扩展模块安装,网上看到遇到这个问题的朋友不少,现在以Ubuntu为例分享给大家:
如果你的PHP是7.4版本的,需要zip扩展,直接执行命令: apt install php7.4-zip 即可安装,其它的一样的方法。但是记住,需要重启后才能生效。希望开源帮助到你。
php_extension | iconv | OK | ||
php_extension | mbstring | OK | ||
php_extension | curl | OK | ||
php_extension | openssl | OK | ||
php_extension | tokenizer | OK | ||
php_extension | xmlrpc | OK | ||
php_extension | soap | OK | ||
php_extension | ctype | OK | ||
php_extension | zip | OK | ||
php_extension | zlib | OK | ||
php_extension | gd | OK | ||
php_extension | simplexml | OK | ||
php_extension | spl | OK | ||
php_extension | pcre | OK | ||
php_extension | dom | OK | ||
php_extension | xml | OK | ||
php_extension | xmlreader | OK | ||
php_extension | intl | OK | ||
php_extension | json | OK | ||
php_extension | hash | OK | ||
php_extension | fileinfo | OK | ||
php_extension | sodium | OK | ||
php_extension | exif | OK |