iceyu

Registered
Aug 10, 2011
1
0
51
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)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
42
348
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