Giter Site home page Giter Site logo

PHP unable to load phpiredis.so about phpiredis HOT 11 CLOSED

nrk avatar nrk commented on June 5, 2024
PHP unable to load phpiredis.so

from phpiredis.

Comments (11)

Timberjaw avatar Timberjaw commented on June 5, 2024

I'm having the same issue. The files appear to be in their correct locations.

from phpiredis.

Timberjaw avatar Timberjaw commented on June 5, 2024

Solved it on my end. libhiredis installs itself to /usr/local/lib, but phpiredis expects it in /usr/lib.

Quick workaround:
ln -s /usr/local/lib/libhiredis.so.0.10 /usr/lib

from phpiredis.

davyjones avatar davyjones commented on June 5, 2024

The 'proper' way is to change the Makefile of hiredis to point to /usr instead of /usr/local

This will ensure things like hiredis' headers are in /usr/include, etc.

from phpiredis.

jmoz avatar jmoz commented on June 5, 2024

I'm having the same problem on Debian Squeeze. The symlink fix doesn't allow the phpiredis' make test to pass, but php -m reports the extension as loaded.

from phpiredis.

kam66be avatar kam66be commented on June 5, 2024

Same issue here, solve by symlink, however FAIL in command binary safe using image [tests/007.phpt]

from phpiredis.

terrycorley avatar terrycorley commented on June 5, 2024

I was having this issue on CentOS 6.3 -- solved by running ldconfig to update the shared library cache.

from phpiredis.

acasademont avatar acasademont commented on June 5, 2024

Same here, issue solved with @Timberjaw hack, thanks!

from phpiredis.

TuningGuide avatar TuningGuide commented on June 5, 2024

If you have php over macports installed then you have to make a symlink like sudo ln -s /usr/local/lib/libhiredis.0.11.dylib /opt/local/lib/libhiredis.0.11.dylib

from phpiredis.

1merlin1 avatar 1merlin1 commented on June 5, 2024

phpiredis doesnt work on ubuntu, calling phpiredis_connect gives the error:

Fatal error: Call to undefined function phpiredis_connect()

any idea how to correct it?

from phpiredis.

blacklizard avatar blacklizard commented on June 5, 2024

If anyone have this problem, this is how i fixed in my ubuntu installation. (php-fpm)

Just follow the step from readme

git clone https://github.com/nrk/phpiredis.git
cd phpiredis
phpize && ./configure --enable-phpiredis
make && make install

Then in /etc/php5/mods-available create a file called phpiredis.ini. Add the content below to that .ini

; configuration for phpiredis  module
extension=phpiredis.so

Then

sudo php5enmod phpiredis

Restart your php and websever, should be fine

from phpiredis.

tdn1234 avatar tdn1234 commented on June 5, 2024

Thanks in advanced @blacklizard , you saved my day.

from phpiredis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.