Installing APC for PHP

APC is a free, open, and robust framework for caching and optimizing PHP intermediate code. It works by caching web pages and can significantly improve server performance, especially Moodle.

Installation Steps

Download the PHP extension (php_apc.dll)

Copy this file to your php/ext folder

Edit php.ini to include these lines of code:

apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64
apc.optimization = 0
apc.num_files_hint = 1000
apc.ttl = 0
apc.gc_ttl = 3600
apc.cache_by_default = On
apc.slam_defense = 0
apc.file_update_protection = 2
apc.enable_cli = 0

Now restart Apache and check your page to check that APC has loaded correctly.

Comments are closed.