email - 第 697 行上的 fatal error : Class 'PEAR' not found in/home/user1/public_html/go-pear. php

标签 email cpanel pear

尝试安装时 PEAR通过运行 go-pear.php (来自 cPanel GoDaddy 托管帐户的根目录),我收到以下错误:

Starting installation ... Loading zlib: ok

Bootstrapping Installer...................

Bootstrapping PEAR5.php............(remote) ok

Bootstrapping PEAR.php............(remote) ok

Bootstrapping Archive/Tar.php............(remote) ok

Bootstrapping Console/Getopt.php............(remote) ok

Fatal error: Class 'PEAR' not found in /home/alessio1/public_html/go-pear.php on line 697

line 697 is the following: PEAR::setErrorHandling(PEAR_ERROR_DIE, "\n%s\n");



文件 go-pear.php直接取自 http://pear.php.net/go-pear没有任何修改。

我究竟做错了什么?

最佳答案

我遇到了同样的错误,并设法解决了它,将 $bootstrap_files 中存储的链接替换为:

$bootstrap_files = array(
    'PEAR5.php'            => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR5.php',
    'PEAR.php'             => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR.php',
    'Archive/Tar.php'      => 'https://raw.githubusercontent.com/pear/Archive_Tar/master/Archive/Tar.php',
    'Console/Getopt.php'   => 'https://raw.githubusercontent.com/pear/Console_Getopt/master/Console/Getopt.php',
);

关于email - 第 697 行上的 fatal error : Class 'PEAR' not found in/home/user1/public_html/go-pear. php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23472216/

相关文章:

php - 如何使用 php Http_Request2() 发出 https 请求

php - 如何在 DDEV 的 Web 容器中安装像 mcrypt 这样的 pecl 扩展?

Android:如何获取 native 电子邮件客户端包名称

c# - 服务器响应为 : 5. 7.3 请求的操作已中止;用户未通过身份验证

mysql - 数据导入时数据库断开

php - 在 whm/cpanel 上禁用安全规则

php - pecl 为以前的 php 版本安装

php - 检查电子邮件验证和多封电子邮件的简单方法?

Jenkins for macOS 中的 javax.net.ssl.SSLException : Unrecognized SSL message, 明文连接

shell - cron 作业出错,但在 shell 上工作正常