当前位置:论坛首页 > Linux面板 > 求助

【已回应】php PEAR support 如何安装

发表在 Linux面板2019-12-9 15:03 [复制链接] 3 5491

本帖最后由 谢花郎 于 2019-12-9 16:06 编辑

               因安装phpipam 然后提示确少    php PEAR support    找了一通也没有解决办法
使用道具 举报 只看该作者 回复
发表于 2019-12-9 16:06:32 | 显示全部楼层
您好,看看pear官网是否有该安装文档

https://pear.php.net/index.php
使用道具 举报 回复 支持 反对
发表于 2021-12-18 07:56:41 | 显示全部楼层
谢花郎 发表于 2019-12-9 16:06
您好,看看pear官网是否有该安装文档

https://pear.php.net/index.php

pear官网也没有安装文档。。。。。。。。。。。。。。

我也遇到这种问题了,pear也安装了,也加到php.ini里了,.USER.INI里也加上opendir了,就是安装的时候提示没有pear。
pear在命令行下面也能正常使用,也能正常安包
使用道具 举报 回复 支持 反对
发表于 2023-10-6 11:45:33 | 显示全部楼层
这是我安装pear的路径(php7.4)
Below is a suggested file layout for your new PEAR installation.  To

change individual locations, type the number in front of the

directory.  Type 'all' to change all of them or simply press Enter to

accept these locations.

1. Installation base ($prefix)                   : /www/server/php/74

2. Temporary directory for processing            : /tmp/pear/install

3. Temporary directory for downloads             : /tmp/pear/install

4. Binaries directory                            : /www/server/php/74/bin

5. PHP code directory ($php_dir)                 : /www/server/php/74/share/pear

6. Documentation directory                       : /www/server/php/74/docs

7. Data directory                                : /www/server/php/74/data

8. User-modifiable configuration files directory : /www/server/php/74/cfg

9. Public Web Files directory                    : /www/server/php/74/www

10. System manual pages directory                 : /www/server/php/74/man

11. Tests directory                               : /www/server/php/74/tests

12. Name of configuration file                    : /www/server/php/74/etc/pear.conf

1-12, 'all' or Enter to continue:

接下来就是把“/www/server/php/74/share/pear”中的PEAR.php文件复制到“/www/wwwroot/phpipam”(phpipam工作路径)文件中即可解决问题,记得重启下php服务器,实在不行直接重启服务器

使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表