Migrated ispconfig 3 to a new server

Discussion in 'Installation/Configuration' started by csabo, Oct 27, 2010.

  1. csabo

    csabo New Member

    Hello,
    So I moved an install by doing the following:

    1.) tar.gz'ed /var/www & /var/mail with preserve permissions on & extracted on new server

    2.) moved /etc/passwd , /etc/group , /etc/shadow

    3.) did a mysql dump of all databases and imported on new server

    rebooted the new host. and mysql starts, but i get the following trying to get the ispconfig page up:

    You don't have permission to access / on this server.

    I checked and the permissions on /var/www seem to be correct, there was some stuff in about hostname regarding postfix which ive included below


    Oct 26 21:53:11 <HOST> postfix/master[1960]: fatal: open lock file /var/lib/postfix/master.lock: cannot create file exclusively: Permission denied
    Oct 26 21:53:45 <HOST> postfix/master[2072]: fatal: fifo_listen: remove public/pickup: Permission denied

    thanks
    Chris
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you move /var/mail or /var/vmail? The ispconfig directories are in /var/vmail. If you moved/var/mail, then the folders might have wrong permissions.

    Regarding the passwd, shadow and group files. Did you move the whole files or just the web* users and client* groups? If you moved the whole files, then it might be that the system permissions on the new server got messaed up as the userid's of the system daemons may not match. If you have backups of the original files, then restore them and copy only the web* user lines and client* group lines plus the lines of the groups that contain web* users.
     
  3. csabo

    csabo New Member

    Till,

    Thank you for your prompt response. Yes i moved /var/mail not "vmail"

    so restore the passwd,group,shadow files, and move the web and client lines over, and the vmail folder.. and that should take care of it?

    thanks!
    Chris
     

Share This Page