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.

Installing PHP Pecl "APC"

Discussion in 'General Discussion' started by iceyu, Aug 10, 2011.

  1. iceyu

    iceyu Registered

    Joined:
    Aug 10, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    In WHM:
    1. went to Main >> Software >> Module Installers
    2. Installing PHP Pecl "APC"
    3.
    Code:
    Build process completed successfully
    Installing '/usr/include/php/ext/apc/apc_serializer.h'
    Installing '/usr/lib/php/extensions/no-debug-non-zts-20090626/apc.so'
    install ok: channel://pecl.php.net/APC-3.1.9
    Extension apc enabled in php.ini
    The APC.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
    and, as it says, i cand find the extension in php.ini but not in that directory

    during install it says

    Code:
    running: make INSTALL_ROOT="/root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9" install
    Installing shared extensions:     /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/lib/php/extensions/no-debug-non-zts-20090626/
    Installing header files:          /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/include/php/
    running: find "/root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9" | xargs ls -dils
    6482351   4 drwxr-xr-x 3 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9
    6482417   4 drwxr-xr-x 4 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr
    6482422   4 drwxr-xr-x 3 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/include
    6482423   4 drwxr-xr-x 3 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/include/php
    6482424   4 drwxr-xr-x 3 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/include/php/ext
    6482425   4 drwxr-xr-x 2 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/include/php/ext/apc
    6482426   4 -rw-r--r-- 1 root root   3371 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/include/php/ext/apc/apc_serializer.h
    6482418   4 drwxr-xr-x 3 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/lib
    6482419   4 drwxr-xr-x 3 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/lib/php
    6482420   4 drwxr-xr-x 3 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/lib/php/extensions
    6482421   4 drwxr-xr-x 2 root root   4096 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/lib/php/extensions/no-debug-non-zts-20090626
    6482416 668 -rwxr-xr-x 1 root root 678267 Aug 10 12:47 /root/tmp/pear/pear-build-rootv7tfZ6/install-APC-3.1.9/usr/lib/php/extensions/no-debug-non-zts-20090626/apc.so
    but that dir is nowhere to be found

    Do you have a solution to fix whm/cpanel ?

    Code:
    cat /usr/local/cpanel/version
    11.30.2.1
    I got it working on another server by using this solution: http://forums.cpanel.net/f5/apc-install-error-173431.html
    but I would realy like it to work out of the box (as I may possibly need to install other modules in the future)
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Does /usr/local/lib/php/extensions/no-debug-non-zts-20090626 exist? It installed the extension into /usr/lib/php/extensions/no-debug-non-zts-20090626 location. If /usr/local/lib/php/extensions/no-debug-non-zts-20090626 isn't symlinked to /usr/lib/php/extensions/no-debug-non-zts-20090626, then it won't be able to find that directory and error out. The way to fix it would just be to symlink them:

    Code:
    ln -s /usr/lib/php/extensions/no-debug-non-zts-20090626 /usr/local/lib/php/extensions/no-debug-non-zts-20090626
     
Loading...

Share This Page