Rebuilding services...
 
Notifications
Clear all

Rebuilding services (IIS, FTP, DNS) (Migration)

6 Posts
4 Users
0 Reactions
2,730 Views
Posts: 100
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 7 years ago

Is there anyway to get SolidCP to rebuild certain services.

I am migrating to a new set of machines - Smartermail is easy, mySQL is easy, MSSQL easy.

But then it gets tricky.

So I setup SolidCP on the new machine and import the old Database over, edit all the relevant IPs.

But how do I get SolidCP to recreate all the IIS sites? Hostingspace permissions (not the files, I can copy those over) and DNS records (although this isn't so important as they can be easily copied too)

Happy New year all!

5 Replies
Posts: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Hello,

You would need to move the SolidCP database ensuring you do also move the cryptokey in the Enterprise Server web.config.

SolidCP is not able to help with the movement of sites and their permissions. You will need to look to use the manufacturers recommended method to do these.

Kind Regards,

Trevor

Reply
Posts: 100
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 7 years ago

The manufacturers recommended method?

Is there anl solidcp API call I can use that will just build the iis site? Then I can loop through the database recreating them all.

Reply
Posts: 22
(@cyberhostpro)
Eminent Member
Joined: 6 years ago

HI

we have done this and created some tools to do it (read below guide)

IIS

what we did was

1 copy c:hostingspaces from serverA to ServerB

2 copy IIS config from ServerA to ServerB

3 created a permissions tool to create domain_web user and add it to the app pool/IISsite and give that user full permissions to c:hostingspacesDOMAINwwwroot

4. installed solidCP Server afterwards.

Step 2 guide:

connect to NEW server and open IIS. select the server on the left.
click authentication and change Anonymous auth from iUSR to Application.

To Export the Application Pools (OLD SERVER):
%windir%system32inetsrvappcmd list apppool /config /xml > c:apppools.xml

Copy c:apppools.xml to new server

I recommend editing the file and delete anything for WEBSITE PANEL or SolidCP as we will keep the default config created in step 4.

To import the Application Pools (NEW SERVER):
%windir%system32inetsrvappcmd add apppool /in < c:apppools.xml

To Export all you’re website (OLD SERVER):
%windir%system32inetsrvappcmd list site /config /xml > c:sites.xml

copy c:sites.xml to new server, again I recommend editing the file and delete anything for WEBSITE PANEL or SolidCP as we will keep the default config created in step 4.

In sites.xml search for <advancedLogging />
I recommend removing this entire section if it exists so no advanced logging is copied to the new server. This would only show if moving from IIS7/Windows2008

To Import the website (NEW SERVER):
%windir%system32inetsrvappcmd add site /in < c:sites.xml

Step 3 Guide:

Download this tool my friend Adam made for me from his website:

https://www.majicware.com/Fixing-IIS-folder-permissions-Tool?UUordp and extract the file to your server.

open CMD as administrator and navigate to the folder where this tools and execute:

IISPermissionFixer -g "IIS_IUSRS"

Step 4:

install solidCP server on the new server

Step 5

Edit the server in solidCP to point to the newly built server IP and new password from Step 4.

Step 6: edit IIS to make any changes such as group to be IIS_IUSR

Step 7: make other changes (DB etc) to new OS ie windows 2019 etc.

DNS:

We exported the DNS and imported.  Then migrated to simpleDNS from MS-DNS and then used mass update tool to change IPs.

FTP:
This sadly wasn't possible as we previously used IIS-FTP.  Moving forward we now have a central FTP server using FileZilla Server and had all users re-create FTP accounts.

We did this in the DB:

// Delete FTP Accounts
DELETE
FROM [WebsitePanel].[dbo].[ServiceItems] Where ServiceID = 68 and ItemTypeID = 9
UPDATE PackageServices SET ServiceID = 113 Where ServiceID = 68

replace all the service IDs with the ones you'll be using.

Reply
Posts: 100
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 7 years ago

@cyberhostpro - this is absolutely amazing, thank you so much.

I'll fire up a test VM next week and check everything goes as expected 🙂

When installing SolidCP on the new server, is there an option to connect to an existing database? Or do I need to let it create a new one, then delete it, copy the crypto key over then restore the original database back?

Reply
Page 1 / 2
Share: