VestaCP - установка php-xcache

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 17:54, 30 апреля 2015; Admin iph (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

VestaCP - установка php-xcache

Самые выгодные сервера‎ в рунете



Выполняем установку через remi репозиторий:

# yum install gcc gcc-c++ make flex
# yum --enablerepo=remi,remi-test install php-xcache xcache-admin php-devel

Проверяем версию:

# php -v
PHP 5.4.40 (cli) (built: Apr 15 2015 15:55:28)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
   with XCache v3.1.1, Copyright (c) 2005-2014, by mOo
   with XCache Optimizer v3.1.1, Copyright (c) 2005-2014, by mOo
   with XCache Cacher v3.1.1, Copyright (c) 2005-2014, by mOo
   with XCache Coverager v3.1.1, Copyright (c) 2005-2014, by mOo


Включаем админку Xcache:

# vi /etc/php.d/xcache.ini
[xcache.admin]
xcache.admin.enable_auth = On
; use http://xcache.lighttpd.net/demo/cacher/mkpassword.php to generate your encrypted password
xcache.admin.user = "admin"
xcache.admin.pass = "9de2ab36803676591a590a58c993ca94"


Генерируем пароль в md5 кеше:

http://xcache.lighttpd.net/demo/cacher/mkpassword.php 

Конфиг для apache:

/etc/httpd/conf.d/xcache.conf
- добавляем alllow from свой_ip
# vi /etc/php.d/xcache.ini
xcache.size = 1024M
xcache.count = 4
xcache.slots = 8K
xcache.ttl = 36000
xcache.gc.interval = 3600
xcache.optimizer = On

Перезапускаем Apache и проверяем работу:

# /etc/init.d/httpd restart


Админка доступна по-адресу:

http://имя_домена/xcache