Fedora 12 上的 phpredis [英] phpredis on fedora 12

查看:41
本文介绍了Fedora 12 上的 phpredis的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 phpredis 以使用我的 php.但问题是,每次我尝试让它工作时,我的 error_log 都会发送此错误:

[code]PHP 致命错误:在第 5 行的/var/www/html/testme.php 中找不到Redis"类[/code]

我已经从 http://github.com/owlient/phpredis 下载了源代码然后

phpize./配置制作&&进行安装

但仍然无法正常工作.

我现在能做什么?

解决方案

具体来说,创建了一个redis.ini:

<前>$ cat/etc/php5/apache2/conf.d/redis.ini;配置redis模块扩展=redis.so

我提交了一个 github 问题,希望他们能让它自动创建 ini,或者至少在安装说明中解释:https://github.com/owlient/phpredis/issues/94

I am trying to install phpredis to work with my php. But the thing is, every time I try to get it to work, my error_log sends this error:

[code]PHP Fatal error: Class 'Redis' not found in /var/www/html/testme.php on line 5[/code]

I have downloaded the source code from http://github.com/owlient/phpredis and then

phpize
./configure
make && make install

but still not working.

What can I do now?

解决方案

specifically, created a redis.ini:

$ cat /etc/php5/apache2/conf.d/redis.ini 
;configure the redis module
extension=redis.so

I filed a github issue, hopefully they'll make it create the ini automatically, or at least explain in the install instructions: https://github.com/owlient/phpredis/issues/94

这篇关于Fedora 12 上的 phpredis的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆