1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

regenerate web sites?

Discussion in 'Plesk for Windows - 8.x and Older' started by tealnet, Sep 15, 2005.

  1. tealnet

    tealnet Guest

    We suffered a server crash and did not have an actual backup of Plesk. We were able to copy over the plesk and customer databases and the mail server data with no problem. The mail server works fine and Plesk works. However, we could not just copy of the IIS web site data.

    Is there some way of having Plesk re-generate the webs without deleting and recreating them?
  2. Gris@

    Gris@ Guest

    If you mean that that domains are in Plesk but not in IIS then you can create them in IIS by websrvmng utility which is placed at %plesk_bin% directory.
    websrvmng --reconfigure-vhost --vhost-name=problemdomainname
    websrvmng --reconfigure-all
  3. tealnet

    tealnet Guest

    That's almost exactly what I need. However, the user accounts are also missing. Is there a way to get Plesk to recreate those as well?
  4. Gris@

    Gris@ Guest

    At first you should extract users from plesk database by the folowing query:
    select login, password, home from sys_users su, accounts a where su.account_id=a.id

    To connect to Plesk database go to command prompt
    cd %plesk_dir%\mysql\bin
    mysql -uadmin -p<admin_psa_pass> -P8306 psa
    where admin_psa_pass is Plesk admin password

    Then you can recreate users by usermng utility which is placed at %plesk_bin%
    usermng add 'user' 'password' 'homedir'