Multi server issues ( PHP Sessions, File Sync )

Discussion in 'Installation/Configuration' started by yobdabr, Jun 28, 2014.

  1. yobdabr

    yobdabr New Member

    Debian Wheezy / ISPConfig 3 / Apache2 / PHP5

    MASTER1 ( MYSQL replication + unison )
    MASTER2 ( MYSQL replication + unison )

    ISSUE 1:
    How to configure PHP to handle SESSIONS in one place?
    Only on one server.

    ISSUE 2:
    How to sync web files (2 way) in real time (live) between two servers?
    ( I've been use unison with cron job on entire www directory, but it's very slow, and due to cron run every 5 minutes there is large delay. )

    Till or Falko, please help to solve these issues!
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Configure a session handler in php that that works for multiple servers like a mysql or memcached based session handler.

    2) You can use any kind of shared file storage, e.g. a central nfs server or cluster, a cluster filesystem (but I had some bad experience with e.g. glusterfs as its extremly slow when you have lots of small files) or any other kind of storage area network that support simultanious access of files. another replacement for unison is to use lsyncd + csync2.
    dmgeurts likes this.

Share This Page