如何在Linux中启用核心PHP扩展? [英] How to enable core PHP extension in Linux?

查看:115
本文介绍了如何在Linux中启用核心PHP扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解在php中启用核心扩展(dom)的过程.当我运行phpinfo时,在configure命令中看到"--disable-dom".我应该重新安装PHP吗?

I'm trying to understand the process for enabling an a core extension (dom) in php. When I run phpinfo, I see '--disable-dom' in the configure command. Am I supposed to re-install PHP?

推荐答案

您也许可以从发行版本存储库中安装它.如果未下载您的php版本源,请从tarball中提取它. cd到目录php/ext并寻找一个dom文件夹,cd进入并键入phpize然后make&&进行安装,这将为您安装一个动态扩展,您可以通过php.ini中的extension = .so启用

You might be able to install it from your distributions repository. If not download your php versions source, extract it from the tarball. cd to the directory php/ext and look for a dom folder, cd into that and type phpize then make && make install that will install a dynamic extension for you which you can enable via extension=.so in your php.ini

这篇关于如何在Linux中启用核心PHP扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆