Difference between revisions of "Package:Xcache"

Line 5: Line 5:
|Repository=Funtoo Overlay
|Repository=Funtoo Overlay
== Configuring PHP FPM ==
== Configuring PHP FPM ==

Latest revision as of 00:11, June 27, 2014


Current Maintainer(s):Daniel Robbins
Source Repository:Repository:Funtoo Overlay

Summary: A fast and stable PHP opcode cacher



Keychain 2.8.2 Released

Keychain 2.8.2, a maintenance and bug fix release, is now available.
2015-11-16 by Drobbins

Unfork Tree is Live!

The "unfork" tree is now merged into the main Funtoo Linux tree, and Funtoo Linux is now using shards for core packages, x11 (including media libraries), KDE, GNOME, python and perl.
2015-10-12 by Drobbins

OpenSSH 7 Disables DSA Keys By Default

Please be aware of this important change to avoid getting locked out of your Funtoo server.
2015-10-07 by Drobbins



We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Configuring PHP FPM

As we already installed php with fpm support above we just need to adjust the following settings:

user = nginx
group = nginx
pm.start_servers = 20

The other options should all be very well documented, so make it fit your needs.

Configuring xcache

As of xcache-3.1.0, no manual configuration should be necessary, but if you are in need of changing any xcache settings for php-fpm, edit the following file:

zend_extension=/usr/lib64/php5.3/lib/extensions/no-debug-zts-20090626/          xcache.so                                                                   
  2 xcache.admin.enable_auth="On"
  3 xcache.admin.user="admin"
  4 xcache.admin.pass=""
  5 xcache.cacher="On"
  6 xcache.size="64M"
  7 xcache.count="9"
  8 xcache.slots="8k"
  9 xcache.ttl="0"
 10 xcache.gc_interval="0"
 11 xcache.var_size="8M"
 12 xcache.var_count="1"
 13 xcache.var_slots="8K"
 14 xcache.var_ttl="0"
 15 xcache.var_maxttl="0"
 16 xcache.var_gc_interval="600"
 17 xcache.readonly_protection="Off"
 18 xcache.mmap_path="/dev/zero"
 19 xcache.coverager="On"
 20 xcache.coveragedump_directory="/tmp/coverager"
 21 xcache.optimizer="On"

it might look like that for you, feel free to change the settings, and if you want to be able to log in into the admin interface set the xcache.admin.pass as a md5 encrypted password that you can find out with:

# php -a
php> echo md5(PASSWORD);

then copy the admin interface to your vhost:

# cp /usr/share/php/xcache/admin -a /var/www/{VHOST}/htdocs/xcache-admin

Starting the service

Now, start the required services:

# /etc/init.d/php-fpm start
# /etc/init.d/nginx start

and make them default:

# rc-update add php-fpm default
# rc-update add nginx default