Difference between pages "Package:Libgcrypt (Compatibility Libraries)" and "Package:Xcache"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m (Drobbins moved page Libgcrypt (Compatibility Libraries) to Package:Libgcrypt (Compatibility Libraries) without leaving a redirect)
 
m (Drobbins moved page Xcache to Package:Xcache without leaving a redirect)
 
Line 1: Line 1:
{{Ebuild
{{Ebuild
|Summary=Libgcrypt is a general purpose cryptographic library. This version of Libgcrypt is is designed to sit alongside an existing libgcrypt install, and just provide compatibility libs for apps that require an older libgcrypt.
|Summary=A fast and stable PHP opcode cacher
 
|CatPkg=dev-php/xcache
|CatPkg=dev-libs/libgcrypt-compat
|Maintainer=Drobbins,  
|Maintainer=Drobbins,  
|Repository=Funtoo Overlay
|Repository=Funtoo Overlay
}}
}}
This ebuild was added to Funtoo Linux to serve as a compatibility library for binary ebuilds that require an older version of libgcrypt.  
== Configuring PHP FPM ==
 
As we already installed php with fpm support above we just need to adjust the following settings in ''/etc/php/fpm-php5.3/php-fpm.conf''. You should enable the following settings:
 
<pre>
user = nginx
group = nginx
pm.start_servers = 20
</pre>
 
The other options should all be very well documented, so make it fit your needs.
 
== Configuring xcache ==
 
For setting xcache just edit ''/etc/php/fpm-php5.3/ext-active/xcache''
 
<pre>
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"
</pre>
 
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 you can find it out with:
 
<pre>
php -a
php> echo md5(PASSWORD);
</pre>
 
and copy the admin interface to your vhost:
 
<pre>
cp /usr/share/php/xcache/admin -a /var/www/{VHOST}/htdocs/xcache-admin
</pre>
 
== Starting the service ==
 
Now start the services:
 
<pre>
/etc/init.d/php-fpm start
/etc/init.d/nginx start
</pre>
 
and make them default:
 
<pre>
rc-update add php-fpm default
rc-update add nginx default
</pre>


This ebuild is designed to install alongside the newer libgcrypt ebuild, providing the older shared libraries only, but no headers, and is designed not to touch the main .so symlink. This way, binary packages can find and use this library just fine, but from-source ebuilds will continue to use libgcrypt.
== See also ==
{{EbuildFooter}}
{{EbuildFooter}}

Revision as of 20:02, June 19, 2014

Xcache

   Tip

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 in /etc/php/fpm-php5.3/php-fpm.conf. You should enable 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

For setting xcache just edit /etc/php/fpm-php5.3/ext-active/xcache

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 you can find it out with:

php -a
php> echo md5(PASSWORD);

and 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 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

See also