voyageur | September 1, 2009 - 47 weeks 3 days
-
Yum up some packages:
yum install make php-pear php-devel httpd-devel
-
Install APC using pear (the pear installer is smarter than the pecl installer):
When the installer asks about APXS, say ‘no’.
pear install pecl/apc
-
Tell PHP to load APC:
echo extension=apc.so > /etc/php.d/apc.ini
-
Edit the file /etc/php.d/apc.ini, and add the following lines:
apc.ttl="7200"
apc.user_ttl="7200"
apc.shm_segments="3"
apc.shm_size="90"
-
Restart Apache: /sbin/service httpd graceful
-
Copy apc.php into your doc root and monitor the memory usage. If not enough, adjust the settings in apc.ini. When you are not using apc.php, please remember to move it out of docroot, for security.
Recent comments
2 weeks 3 days ago
27 weeks 4 days ago
28 weeks 3 days ago
39 weeks 3 days ago
40 weeks 5 days ago
49 weeks 3 days ago
49 weeks 5 days ago
50 weeks 4 days ago
51 weeks 3 days ago
51 weeks 4 days ago