My server has DirectAdmin's latest version, Apache 1.3.37 and CentOS 4.4 installed.
Obviously the normal install instructions for APC won't work because of DirectAdmin's annoying customapache stuff.
But here they are so you could help me and anyone else who would like to install APC:
And here's how I tried and failed to install APC:
./build php fails because my PHP version is 5.2.1 and it requires php 4.4...tar.gz in the customapache folder it seems. So ok, I modified the build file to say PHP_VER 5.2.1 and I downloaded the php5.2.1.tar.gz to the customapache folder too but now when I try to exec ./build it says unexpected end of file.
So could someone please give me a step by step guide how to install APC in a system that has DirectAdmin?
Obviously the normal install instructions for APC won't work because of DirectAdmin's annoying customapache stuff.
But here they are so you could help me and anyone else who would like to install APC:
Code:
$ gunzip -c apc_x.y.tar.gz | tar xf -
$ cd apc_x.y
$ /usr/local/php/bin/phpize
$ ./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/php/bin/php-config
$ make
$ make install
And here's how I tried and failed to install APC:
Code:
cd /usr/local/directadmin/customapache
gunzip -c APC-3.0.14.tgz | tar xf -
I added these lines properly to configure.php: --enable-apc --enable-apc-mmap
./build clean
# All fine to this point.
./build php
cd APC-3.0.14.tgz
make
make install
./build php fails because my PHP version is 5.2.1 and it requires php 4.4...tar.gz in the customapache folder it seems. So ok, I modified the build file to say PHP_VER 5.2.1 and I downloaded the php5.2.1.tar.gz to the customapache folder too but now when I try to exec ./build it says unexpected end of file.
So could someone please give me a step by step guide how to install APC in a system that has DirectAdmin?
Last edited: