phpredis - windows下php, redis的外掛程式安裝不成功

來源:互聯網
上載者:User
用的xampp
win7 x64位
php的版本為5.4.4

System Windows NT 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Build DateJun 13 2012 21:17:57
CompilerMSVC9 (Visual C++ 2008)
Architecturex86

在https://github.com/nicolasff/phpredis... 下了新的phpredis_5.4_vc9_ts.7z版本, 安裝進去, 在phpinfo中沒有出現相應外掛程式
查看php error log, 報PHP Warning: PHP Startup: in Unknown on line 0, 應該是不相容

不知道大家類似環境如何配置redis的,謝謝
(換過5.4.7版本的php亦不能安裝成功=_=)

回複內容:

用的xampp
win7 x64位
php的版本為5.4.4

System Windows NT 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Build DateJun 13 2012 21:17:57
CompilerMSVC9 (Visual C++ 2008)
Architecturex86

在https://github.com/nicolasff/phpredis... 下了新的phpredis_5.4_vc9_ts.7z版本, 安裝進去, 在phpinfo中沒有出現相應外掛程式
查看php error log, 報PHP Warning: PHP Startup: in Unknown on line 0, 應該是不相容

不知道大家類似環境如何配置redis的,謝謝
(換過5.4.7版本的php亦不能安裝成功=_=)

PHP5.4.x 的 redis 擴充 php_redis.dll

擴充下載地址:
https://github.com/nicolasff/phpredis/downloads

包含 Non Thread Safe 和 Thread Safe 兩個版本

首先把 php_redis.dllphp_igbinary.dll 放入PHP的ext檔案夾,
然後在php.ini設定檔裡添加如下代碼:

extension=php_igbinary.dll  extension=php_redis.dll

重啟WebServer

注意:
extension=php_igbinary.dll 一定要放在 extension=php_redis.dll 的前面,否則此擴充不會生效。

這裡下載 對應版本,我配置沒問題的

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.