HowTo - Using APCu in i-MSCP

  • I played a bit with APCu and i was surprised, how fast Website of me run. So i decide to write down, what i do.


    PLEASE NOTE: I give no Support for this HOWTO !!!!!!!!!!!!!!!


    My System:

    • Debian Jessie

    • Apache 2.4.9

    • PHP 5.6RC2

    • 48GB RAM


    1. Install ACPu from PEAR:

    • pecl upgrade

    • pear upgrade

    • pecl install channel://pecl.php.net/apcu-4.0.6 apcu


    2. Create ini File


    • touch /etc/php5/mods-available/apcu.ini

    • nano /etc/php5/mods-available/apcu.ini


    Add following content:


    Code
    1. extension=apcu.soapc.enabled=1apc.shm_segments=1apc.shm_size=32Mapc.ttl=7200apc.gc_ttl=3600apc.enable_cli=0apc.stat=1apc.max_file_size=2M


    Note: apc.shm_size & apc.max_file_size -> You must play with it for your needs. In my case i use 2G and 250M ;)


    3. Enable APCu


    • php5enmod apcu

    • service apache2 restart


    Optional:


    Upload attached File to your Website and you have some Statistics about APCu.


    NOTE: Open the File and set configuration to your fits ;)




    Files

    • apc.php

      (38.07 kB, downloaded 77 times, last: )