Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    1

    Angry Installing PHP Pecl "APC"

    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-inst...or-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. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Installing PHP Pecl "APC"

    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
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Unable to install APC via PECL
    By luigidelgado in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 04-09-2011, 03:09 PM
  2. Support for PHP APC (PECL)
    By dancryer in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-20-2010, 03:59 PM
  3. Instaling pecl uploadprogress or pecl APC
    By vukomir in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-10-2009, 12:39 PM
  4. installing php pecl "imagick"
    By Cemtey in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-26-2008, 12:14 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube