Browse Source

Move PHP’s Session Storage To Memcache

old-stable
Mitesh Shah 11 years ago
parent
commit
be95e7e1ff
  1. 3
      usr/local/sbin/easyengine

3
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

Loading…
Cancel
Save