Skip to main content

APC

Comments

5 comments

  • cPanelMichael
    Hello, You can install the APC PECL module via "WHM -> Module Installers". This option is documented at: Module Installers - Documentation - cPanel Documentation Thank you.
    0
  • Masimo
    I have error on installation:
    downloading APC-3.1.13.tgz ... Starting to download APC-3.1.13.tgz (171,591 bytes) .....................................done: 171,591 bytes 55 source files, building running: phpize Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 Enable internal debugging in APC [no] : Enable per request file info about files used from the APC cache [no] : Enable spin locks (EXPERIMENTAL) [no] : Enable memory protection (EXPERIMENTAL) [no] : Enable pthread mutexes (default) [no] : Enable pthread read/write locks (EXPERIMENTAL) [yes] : building in /root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13 running: /root/tmp/pear/APC/configure --with-php-config=/usr/local/bin/php-config --enable-apc-debug=no --enable-apc-filehits=no --enable-apc-spinlocks=no --enable-apc-memprotect=no --enable-apc-pthreadmutex=no --enable-apc-pthreadrwlocks=yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20121212 checking for PHP installed headers prefix... /usr/local/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking whether to enable APC support... yes, shared checking whether we should enable cache request file info... no checking whether we should use mmap... yes checking whether we should use semaphore locking instead of fcntl... no checking whether we should use pthread mutex locking... no checking whether we should use pthread read/write locking... yes pthread rwlocks are supported! checking whether the target compiler supports builtin atomics... yes checking whether we should use spin locks... no checking whether we should enable memory protection... no checking for zend_set_lookup_function_hook... no checking for sigaction... yes checking for union semun... no checking whether we should enable valgrind support... checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes yes checking valgrind/memcheck.h usability... no checking valgrind/memcheck.h presence... no checking for valgrind/memcheck.h... no checking for shm_open in -lrt... yes checking whether to include code coverage symbols... no checking for ld used by cc... /bin/ld checking if the linker (/bin/ld) is GNU ld... yes checking for /bin/ld option to reload object files... -r checking for BSD-compatible nm... /bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h running: make /bin/sh /root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/root/tmp/pear/APC -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/include -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/main -I/root/tmp/pear/APC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/APC/apc.c -o apc.lo mkdir .libs cc -D_GNU_SOURCE -I. -I/root/tmp/pear/APC -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/include -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/main -I/root/tmp/pear/APC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/APC/apc.c -fPIC -DPIC -o .libs/apc.o /root/tmp/pear/APC/apc.c: In function 'apc_search_paths': /root/tmp/pear/APC/apc.c:416:20: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] exec_fname = zend_get_executed_filename(TSRMLS_C); ^ /bin/sh /root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/root/tmp/pear/APC -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/include -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/main -I/root/tmp/pear/APC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/APC/php_apc.c -o php_apc.lo cc -D_GNU_SOURCE -I. -I/root/tmp/pear/APC -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/include -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/main -I/root/tmp/pear/APC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/APC/php_apc.c -fPIC -DPIC -o .libs/php_apc.o /bin/sh /root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/root/tmp/pear/APC -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/include -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/main -I/root/tmp/pear/APC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/APC/apc_cache.c -o apc_cache.lo cc -D_GNU_SOURCE -I. -I/root/tmp/pear/APC -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/include -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/main -I/root/tmp/pear/APC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/APC/apc_cache.c -fPIC -DPIC -o .libs/apc_cache.o /bin/sh /root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/root/tmp/pear/APC -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/include -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/main -I/root/tmp/pear/APC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/APC/apc_compile.c -o apc_compile.lo cc -D_GNU_SOURCE -I. -I/root/tmp/pear/APC -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/include -I/root/tmp/pear/pear-build-rootSshUPB/APC-3.1.13/main -I/root/tmp/pear/APC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/APC/apc_compile.c -fPIC -DPIC -o .libs/apc_compile.o /root/tmp/pear/APC/apc_compile.c: In function 'my_copy_class_entry': /root/tmp/pear/APC/apc_compile.c:755:38: warning: assignment from incompatible pointer type [enabled by default] CHECK(dst->trait_precedences = ^ /root/tmp/pear/APC/apc_compile.c:47:25: note: in definition of macro 'CHECK' #define CHECK(p) { if ((p) == NULL) return NULL; } ^ /root/tmp/pear/APC/apc_compile.c: In function 'apc_copy_class_entry_for_execution': /root/tmp/pear/APC/apc_compile.c:1956:38: warning: assignment from incompatible pointer type [enabled by default] CHECK(dst->trait_precedences = ^ /root/tmp/pear/APC/apc_compile.c:47:25: note: in definition of macro 'CHECK' #define CHECK(p) { if ((p) == NULL) return NULL; } ^ /root/tmp/pear/APC/apc_compile.c: In function 'apc_copy_trait_alias': /root/tmp/pear/APC/apc_compile.c:2379:12: error: 'zend_trait_alias' has no member named 'function' if (src->function) { ^ /root/tmp/pear/APC/apc_compile.c:2380:18: error: 'zend_trait_alias' has no member named 'function' CHECK(dst->function = my_copy_function(NULL, src->function, ctxt TSRMLS_CC)); ^ /root/tmp/pear/APC/apc_compile.c:47:25: note: in definition of macro 'CHECK' #define CHECK(p) { if ((p) == NULL) return NULL; } ^ /root/tmp/pear/APC/apc_compile.c:2380:57: error: 'zend_trait_alias' has no member named 'function' CHECK(dst->function = my_copy_function(NULL, src->function, ctxt TSRMLS_CC)); ^ /root/tmp/pear/APC/apc_compile.c:47:25: note: in definition of macro 'CHECK' #define CHECK(p) { if ((p) == NULL) return NULL; } ^ /root/tmp/pear/APC/apc_compile.c: In function 'apc_copy_trait_precedence': /root/tmp/pear/APC/apc_compile.c:2416:12: error: 'zend_trait_precedence' has no member named 'function' if (src->function) { ^ /root/tmp/pear/APC/apc_compile.c:2417:18: error: 'zend_trait_precedence' has no member named 'function' CHECK(dst->function = my_copy_function(NULL, src->function, ctxt TSRMLS_CC)); ^ /root/tmp/pear/APC/apc_compile.c:47:25: note: in definition of macro 'CHECK' #define CHECK(p) { if ((p) == NULL) return NULL; } ^ /root/tmp/pear/APC/apc_compile.c:2417:57: error: 'zend_trait_precedence' has no member named 'function' CHECK(dst->function = my_copy_function(NULL, src->function, ctxt TSRMLS_CC)); ^ /root/tmp/pear/APC/apc_compile.c:47:25: note: in definition of macro 'CHECK' #define CHECK(p) { if ((p) == NULL) return NULL; } ^ make: *** [apc_compile.lo] Error 1 ERROR: `make' failed The APC.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20121212 Tidying /usr/local/lib/php.ini... No changes Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini... No changes
    0
  • cPanelMichael
    Hello, Check to ensure the "pcre-devel" package is installed on this system:
    yum install pcre-devel
    Note, these instructions apply to PHP 5.4 on EasyApache 3. APC is unsupported in PHP versions 5.5 and higher. Thank you.
    0
  • Masimo
    Its working fine after downgrade PHP to 5.4.x
    0
  • cPanelMichael
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.