Thoughts that are my own.

Installing APC

Follow these steps to install APC on a RHEL 5 server.

Install php-devel for phpize (if not installed).

yum install php-devel

Install the apache devel pkgs for apxs (if needed).

yum install httpd-devel

Make /tmp executable.

mount -o remount,exec /tmp

Set the memory limit in /usr/share/pear/pearcmd.php to 16M.

vi /usr/share/pear/pearcmd.php @ini_set('memory_limit', '16M');

Install apc.

pecl install apc

Add a /etc/php.d/apc.ini with the following line:

Restart apache (check configuration first for errors).

service httpd configtest (watch for errors) service httpd restart

Remove the ini_set and set /tmp back to noexec.