APC Install Instructions

Glasairmell

New member
Joined
Feb 16, 2010
Messages
4
In searching for help on installing APC I found this.

Code:
yum install autoconf
/usr/local/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config
make clean
make
make install

./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config is not adding the apc enables to the php-config file for some reason.

Also it is not clear if I have to rebuild php and when to do it.

I also noticed that there are 3 other php configfiles
/usr/local/directadmin/custombuild/configure/suphp/configure.php5
/usr/local/directadmin/custombuild/configure/ap2/configure.php5
/usr/local/directadmin/custombuild/configure/ap1/configure.php5

Does ./configure supposed to amend these too?

I searched the knowledge base however there is no mention of APC. Also I do not have a customapache directory so I created one however not sure why I should put the APC tar in there.

Sure would appreciate some help on exactly what to do to get APC installed.
Thank you!
 
Last edited:
after following all the directions and I get this error.
Code:
PHP Warning:  PHP Startup: Unable to load dynamic library './/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so' - .//usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.12 (cli) (built: Feb 23 2010 15:07:08)

I have checked the directory and the apc.so is there. Sure would appreciate some help here.

Thank you.
 
I followed the path and the so is located located there. I moved the apc.so to /usr/local/lib but that did not work. I got no error however no apc listing in the zen section.

I am running apache 2.0 on a centos 32 bit system.

Thank you.
 
Last edited:
Something is wrong with the way its loading path:

.//usr/local/.... is not /usr/local/...

./ Means in the current directory. You need to find why it is attempting to look in ./

PHP Warning: PHP Startup: Unable to load dynamic library './/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so' - .//usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
 
If you don't have customapache you should have custombuild, which is the successor to customapache.

Jeff
 
This shows in my info.php configure command '--with-imap' '--with-imap-ssl' '--enable-apc' '--enable-apc-mmap' because I manually put it in there.

I moved the apc.so up one directory to /usr/local/lib/php/extensions/ and put extension=apc.so in the php.ini file.

I do not get any error now just: PHP 5.2.12 (cli) (built: Feb 24 2010 20:19:06)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd.

So to me that means APC is not running. Not sure what to do next.

Thank you.
 
Back
Top