Issue #23 resolved

Installing PHP APC

raffael_luthiger
created an issue

The current installer does not install any PHP Cache software like e.g. APC. It would make the PHP code (e.g. roundcube) a lot faster if APC or another PHP cache is installed.

I can give more information if needed.

Comments (7)

  1. Zhang Huangbin repo owner

    Do you mean this one?

    • package 'php-pecl-apc' on CentOS
    • package 'php-apc' on Debian/Ubuntu
    • port 'www/pecl-APC' on FreeBSD
    • package 'pecl-APC' on OpenBSD
  2. raffael_luthiger reporter

    I usually start with this configuration file:

    $ cat /etc/php.d/apc.ini 
    ; Load the extension and enable it
    extension=apc.so
    
    ; The size of each shared memory segment in MB.
    apc.shm_size = 50M
    
    ; The number of shared memory segments to allocate for the compiler cache.
    ;apc.shm_segments = 1
    ; We have mmap memory. So we can have only one segment
    
    ; Prevent files larger than this value from getting cached. Defaults to 1M. 
    apc.max_file_size = 2M
    
    ; Optimize include_once() and require_once() calls and avoid the expensive system calls used.
    ; While testing it is better to leave it commented out
    ;apc.include_once_override=0
    
    ; The number of seconds a cache entry is allowed to idle in a slot in case this cache entry slot is needed by another entry.
    apc.ttl = 3600
    
    ; enable upload support
    apc.rfc1867 = 1
    
  3. Log in to comment