The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP PEcl module installation fails

Discussion in 'General Discussion' started by thobarn, Mar 17, 2011.

  1. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    WHM 11.28.52 CENTOS 5.5 i686

    Using Main >> Software >> Module Installers, installation is failed, not because the installation goes wrong but the *.so is copied to wrong place.

    /usr/lib/php/extensions/no-debug-non-zts-20090626
    instead of
    /usr/local/lib/php/extensions/no-debug-non-zts-20090626

    downloading memcache-2.2.6.tgz ...
    Starting to download memcache-2.2.6.tgz (35,957 bytes)
    ..........done: 35,957 bytes
    ...

    running: make INSTALL_ROOT="/root/tmp/pear-build-root/install-memcache-2.2.6" install
    Installing shared extensions: /root/tmp/pear-build-root/install-memcache-2.2.6/usr/lib/php/extensions/no-debug-non-zts-20090626/
    running: find "/root/tmp/pear-build-root/install-memcache-2.2.6" | xargs ls -dils
    66489557 4 drwxr-xr-x 3 root root 4096 Mar 18 01:34 /root/tmp/pear-build-root/install-memcache-2.2.6
    66489605 4 drwxr-xr-x 3 root root 4096 Mar 18 01:34 /root/tmp/pear-build-root/install-memcache-2.2.6/usr
    66489606 4 drwxr-xr-x 3 root root 4096 Mar 18 01:34 /root/tmp/pear-build-root/install-memcache-2.2.6/usr/lib
    66489607 4 drwxr-xr-x 3 root root 4096 Mar 18 01:34 /root/tmp/pear-build-root/install-memcache-2.2.6/usr/lib/php
    66489608 4 drwxr-xr-x 3 root root 4096 Mar 18 01:34 /root/tmp/pear-build-root/install-memcache-2.2.6/usr/lib/php/extensions
    66489609 4 drwxr-xr-x 2 root root 4096 Mar 18 01:34 /root/tmp/pear-build-root/install-memcache-2.2.6/usr/lib/php/extensions/no-debug-non-zts-20090626
    66489604 192 -rwxr-xr-x 1 root root 192341 Mar 18 01:34 /root/tmp/pear-build-root/install-memcache-2.2.6/usr/lib/php/extensions/no-debug-non-zts-20090626/memcache.so

    Build process completed successfully
    Installing '/usr/lib/php/extensions/no-debug-non-zts-20090626/memcache.so'
    install ok: channel://pecl.php.net/memcache-2.2.6
    Extension memcache enabled in php.ini
    The memcache.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
     
    #1 thobarn, Mar 17, 2011
    Last edited: Mar 17, 2011
  2. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    Go to the directory:

    /usr/local/lib/php/extensions/no-debug-non-zts-20090626

    then type:

    ln -s /usr/lib/php/extensions/no-debug-non-zts-20090626/memcache.so

    You now have a symlink pointing to the file and it should work fine. Found that out when installing the pecl imagemagick, does the same thing.
     
  3. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    thanks, I did copy the extension to the the right folder when I realized what was going on. posted here in case someone else has a similar problem.

    out of curiosity, can what you suggested be done for the entire directory, ie. symlink /usr/local/lib/php/extensions/no-debug-non-zts-20090626 to /usr/lib/php/extensions/no-debug-non-zts-20090626?
     
  4. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    Yes, you can symlink, I have a symlink for the mysql directory to another drive so that all the databases are run off of its own drive.
     
  5. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    thanks. I will do that, though ideally this would be fixed and extensions would be copied to correct directory.
     
Loading...

Share This Page