• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

regenerate web sites?

T

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?
 
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
or
websrvmng --reconfigure-all
 
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?
 
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'
 
Back
Top