<bdo id='82SU6'></bdo><ul id='82SU6'></ul>
  • <i id='82SU6'><tr id='82SU6'><dt id='82SU6'><q id='82SU6'><span id='82SU6'><b id='82SU6'><form id='82SU6'><ins id='82SU6'></ins><ul id='82SU6'></ul><sub id='82SU6'></sub></form><legend id='82SU6'></legend><bdo id='82SU6'><pre id='82SU6'><center id='82SU6'></center></pre></bdo></b><th id='82SU6'></th></span></q></dt></tr></i><div id='82SU6'><tfoot id='82SU6'></tfoot><dl id='82SU6'><fieldset id='82SU6'></fieldset></dl></div>
    <tfoot id='82SU6'></tfoot>

    1. <legend id='82SU6'><style id='82SU6'><dir id='82SU6'><q id='82SU6'></q></dir></style></legend>

      <small id='82SU6'></small><noframes id='82SU6'>

      1. pecl_http 加载失败

        pecl_http failed to load(pecl_http 加载失败)
      2. <legend id='47B23'><style id='47B23'><dir id='47B23'><q id='47B23'></q></dir></style></legend>

          <i id='47B23'><tr id='47B23'><dt id='47B23'><q id='47B23'><span id='47B23'><b id='47B23'><form id='47B23'><ins id='47B23'></ins><ul id='47B23'></ul><sub id='47B23'></sub></form><legend id='47B23'></legend><bdo id='47B23'><pre id='47B23'><center id='47B23'></center></pre></bdo></b><th id='47B23'></th></span></q></dt></tr></i><div id='47B23'><tfoot id='47B23'></tfoot><dl id='47B23'><fieldset id='47B23'></fieldset></dl></div>

                  <tbody id='47B23'></tbody>
              • <tfoot id='47B23'></tfoot>

                • <bdo id='47B23'></bdo><ul id='47B23'></ul>

                  <small id='47B23'></small><noframes id='47B23'>

                  本文介绍了pecl_http 加载失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这是我的服务器配置:

                  • CentOS 6.5 版(最终版)
                  • PHP 5.5.7
                  • pecl_http 2.0.4 稳定版
                  • 服务器版本:Apache/2.2.15 (Unix)

                  除了我尝试加载 pecl_http 模块时,我已经启动并运行了所有东西,它给了我以下警告并且它不会加载:

                  I have everything up and running except when I tried to load the pecl_http module it gives me the following warning and it won't load:

                  PHP Warning:  PHP Startup: Unable to load dynamic library '/path/to/php/modules/http.so' - /path/to/php/modules/http.so: undefined symbol: php_persistent_handle_abandon in Unknown on line 0
                  

                  我试图到处寻找,但没有运气.安装似乎很好,但我不知道它有什么问题.

                  I tried to look everywhere but without a luck. The install seems fine but I don't know what's wrong with it.

                  推荐答案

                  我带着同样的问题来到这里 - 我无法让 2.0.4 工作 - 希望帮助你或其他在这里绊倒的人,我邀请你在 serverfault here 上查看我的答案.

                  I came here with the same problem - I couldn't get 2.0.4 to work - in hopes of helping you or others that stumble here, I invite you to check out my answer on serverfault here.

                  为方便起见,我也在下面复制了它:

                  For your convenience I've also copied it below:

                  我没有设置问题 - 至少据我所知没有.我正在运行 nginx + php5-fpm.我的 php.ini 文件配置正确,所有其他扩展都正常工作 - 使用 phpinfo() 或 php --ini 测试它.

                  I didn't have a setup problem - at least not to my knowledge. I am running nginx + php5-fpm. My php.ini file was correctly configured and all my other extensions were working properly - test it with phpinfo() or php --ini.

                  pecl_http (HttpRequest) 的问题是扩展的版本 (2.0.4).通过在命令行中运行来检查您的版本

                  My problem with pecl_http (HttpRequest) was the extension's version (2.0.4). Check your version by running in the command line

                  pecl list
                  

                  我无法让 pecl_http-2.0.4 工作,但我能够运行

                  I was unable to get pecl_http-2.0.4 to work, but I was able to run

                  pecl 卸载 pecl_http

                  然后

                  pecl 安装 pecl_http-1.7.6.确保您也安装了 libcurl,否则您可能会遇到安装失败.

                  pecl install pecl_http-1.7.6. Make sure you have libcurl installed as well or you might experience install failures.

                  重启 php5-fpm 和我的网络服务器 (nginx) 后一切正常!

                  After restarting php5-fpm and my webserver (nginx) everything was working prefectly!

                  额外帮助:

                  在安装之前 - 并且 pear 已安装 - 您可能想要运行这两个命令,假设您在 fpm 中使用 php.ini - 或者您可以根据您的配置编写路径:

                  Before you install - and pear is installed - you may want to run these two commands assuming you are using the php.ini in fpm - or you can write the path according to your configuration:

                  pear config-set php_ini /etc/php5/fpm/php.ini
                  pecl config-set php_ini /etc/php5/fpm/php.ini
                  

                  这样 pecl 就可以知道您在 Web 服务器上使用的是哪个 php.ini 文件,并且会在正确的位置添加 extension=http.so.这对我有帮助,所以也许它也会对你有所帮助!

                  This makes it so that pecl knows which php.ini file you are using with your web-server and will add the extension=http.so in the correct spot. This helped me so maybe it'll help you too!

                  这篇关于pecl_http 加载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                      <bdo id='SluFT'></bdo><ul id='SluFT'></ul>
                    • <i id='SluFT'><tr id='SluFT'><dt id='SluFT'><q id='SluFT'><span id='SluFT'><b id='SluFT'><form id='SluFT'><ins id='SluFT'></ins><ul id='SluFT'></ul><sub id='SluFT'></sub></form><legend id='SluFT'></legend><bdo id='SluFT'><pre id='SluFT'><center id='SluFT'></center></pre></bdo></b><th id='SluFT'></th></span></q></dt></tr></i><div id='SluFT'><tfoot id='SluFT'></tfoot><dl id='SluFT'><fieldset id='SluFT'></fieldset></dl></div>
                        <tbody id='SluFT'></tbody>
                          <legend id='SluFT'><style id='SluFT'><dir id='SluFT'><q id='SluFT'></q></dir></style></legend>

                            <tfoot id='SluFT'></tfoot>

                            <small id='SluFT'></small><noframes id='SluFT'>