Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 加蒜梨_Php_Linux_Pear_Plesk - Fatal编程技术网

Php 加蒜梨

Php 加蒜梨,php,linux,pear,plesk,Php,Linux,Pear,Plesk,我目前有一台安装了Plesk的linux服务器。我需要pear功能,但是我很难理解文档 查看phpinfo(),configure命令包含--而不包含pear 我已经“编辑”了我的httpd.include文件,将openbase_dir值扩展为/usr/share/pear,并在include路径中使用了它 pear手册中规定: When using PHP, the PEAR Package Manager is already installed unless one has used t

我目前有一台安装了Plesk的linux服务器。我需要pear功能,但是我很难理解文档

查看phpinfo(),configure命令包含--而不包含pear

我已经“编辑”了我的httpd.include文件,将openbase_dir值扩展为/usr/share/pear,并在include路径中使用了它

pear手册中规定:

When using PHP, the PEAR Package Manager is already installed unless one has used the ./configure option --without-pear.
这是否意味着我需要再次安装pear包管理器?我需要用pear重新配置PHP吗?如果是这样,我该怎么做

在这一步之后,我还需要做什么来启用pear

非常感谢


Phil

就我个人而言,我刚刚用一个apt get install php PEAR手动安装了PEAR,然后在我的plesk面板上的每个域和子域中将它包含在php参数中。因此,我在include_pathopen_basedir部分中添加了/usr/share/php(这是PEAR目录,您可以通过PEAR config get php_dir获得它)(您可以看到如何在plesk上管理php设置),我刚刚用apt-get-install-php-PEAR手动安装了PEAR,然后在我的plesk面板的每个域和子域中的php参数中包含了它。因此,我在include\u pathopen\u basedir部分中添加了/usr/share/php(这是PEAR目录,您可以通过PEAR config get php\u dir获得它)(您可以看到如何在plesk上管理php设置)。

plesk的意义很小,它只是一个管理系统。底层发行版是什么?Ubuntu?红帽?森托斯?他们的存储库中会有一个php pear类型的包。我相信pear已经安装好了,因为我可以看到psa pear目录。但是,php没有配置它。模块化pear不会改变php编译选项。感谢您的帮助,欢迎回复。我已经设法让Pear工作了:)@PhilCross你能把你的答案贴出来让别人看到吗?:)Plesk的意义很小——它只是一个管理系统。底层发行版是什么?Ubuntu?红帽?森托斯?他们的存储库中会有一个php pear类型的包。我相信pear已经安装好了,因为我可以看到psa pear目录。但是,php没有配置它。模块化pear不会改变php编译选项。感谢您的帮助,欢迎回复。我已经设法让Pear工作了:)@PhilCross你能把你的答案贴出来让别人看到吗?:)