这是我安装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服务器,实在不行直接重启服务器
|