Move ISPConfig to another server

Discussion in 'Installation/Configuration' started by Alecs, Jan 14, 2016.

  1. Alecs

    Alecs New Member


    I have two VPS servers. Both systems have Ubuntu 14.04 and I wanted to upgrade the old server to a better performance one so I installed the same OS, the same things exactly like here . After moving all the stuff by this tutorial and the ones related from it I have a problem. If I add a new client and them a new website for that client ISPConfig doesn’t make the users in Ubuntu so I get a vhost.err and first time the apache crashed. I deleted all things for that user ( web20) and then tried again and again vhost.err file. But this time the apache is nor dead. the user is web21 and is also not present in the users table from Ubuntu.

    The error that I get is like this:
    11.01.2016-21:34 - WARNING - Reason for Apache restart failure: * Restarting web server apache2!
    * The apache2 configtest failed.
    Output of config test was:
    AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:62
    AH00543: apache2: bad user name web21
    Action 'configtest' failed.
    The Apache error log may have more information.

    and then :
    11.01.2016-21:34 - WARNING - Apache did not restart after the configuration change for website Reverting the configuration. Saved non-working config as /etc/apache2/sites-availableilable/

    Please can someone help me out on this? I searched all the forum and all google and I can't figured out.
    If I'm not posting correct sorry for that, please advice where to post.

    Thank you
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Is the command useradd available on your server?
  3. Alecs

    Alecs New Member

    Yes, but I don't know how the command should look like?! I don't want to damages anything in ispconfig
    Last edited: Jan 14, 2016
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you move all web* users from /etc/passwd and /etc/group file of the old server to the new server? And did you do the same for all client* groups in /etc/group and /etc/gshadow?
  5. Alecs

    Alecs New Member

    I think so. I can't remember exactly because I did this before Christmas. It there a way I can check? Do you know some command?
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Look into the files with an editor, e.g. nano. or use the cat command to display the content:

    cat /etc/passwd

    Additionally you might want to check the consistency of the files with the commands:



  7. Alecs

    Alecs New Member

    On pcwk I get allot of duplicates and also on grpck Should I delete de duplicates?
    UPDATE -> deleted the duplicates on pwck and grpck
    UPDATE 2 -> all back to normal, thank you again!!!

    On the cat /etc/passwd should I compare the new one with the old one?

    Thank you
    Last edited: Jan 14, 2016
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    If it works now, then it shuld be ok.

Share This Page