From be95e7e1ffcf5527d692c763b92184f0981f9e03 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Tue, 7 Jan 2014 12:14:34 +0530 Subject: [PATCH] =?UTF-8?q?Move=20PHP=E2=80=99s=20Session=20Storage=20To?= =?UTF-8?q?=20Memcache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/local/sbin/easyengine | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 40a53cd1..a690d4ea 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -243,6 +243,9 @@ COMMONPHP() if [ $? -ne 0 ] then + # Move PHP’s Session Storage To Memcache + sed -i "/extension/a \session.save_handler = memcache\nsession.save_path = \"tcp://localhost:11211\"" /etc/php5/mods-available/memcache.ini + # Change PHP Settings sed -i "s/\[PHP\]/[PHP]\n; Easy Engine/" /etc/php5/fpm/php.ini sed -i "s/expose_php.*/expose_php = Off/" /etc/php5/fpm/php.ini