[campsite-support] Installing APC on Windows (was Campsite under Windows - First Impressions)
  • Hi,

    A howto for installing APC under Windows would definitely be great. I read
    on this list that Tamamtech has had success installing APC. Raed, if you're
    checking these messages, maybe you can give me some directions on
    installing APC under Windows?

    doug



    Hi Doug,

    I talked toHolman about the issue. APC is hardwired at the moment into 3.0.
    All you can do is disable it. Our developers went the hardwire way for
    greater speed, both of implementation (with the idea of possibly
    generalizing after one approach has been successfully implemented) and for
    better peformance (one layer fewer). APC was the best of the open source
    bunch, and Windows or proprietary cachers have never been our prioity. So
    if there is enough interest (read development money or development
    contribution), we'll definitely try to include the generalization. For now,
    let's aim for a good Windows APC howto.

    Sava
  • 1 Comment sorted by


  • Download the windows binary for the PHP version you have installed from http://pecl4win.php.net/ext.php/php_apc.dll. Save into the PHP extensions folder, which is c:\php\ext by default.

    Note: Make sure you choose the right extension for your version (branch) of PHP.

    Enable the APC extension in your PHP.INI file

    Edit the php.ini file and add the following line in the extensions section:

    extension = php_apc.dll

    Check that this has worked by restarting your web server and looking at the output of phpinfo from the Moodle administration screens or from a text file containing this line:



    Thats all! Very easy! I tried it on win XP