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!
we have done this and created some tools to do it (read below guide)
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:\hostingspaces\DOMAIN\wwwroot
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%\system32\inetsrv\appcmd 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%\system32\inetsrv\appcmd add apppool /in < c:\apppools.xml
To Export all you’re website (OLD SERVER):
%windir%\system32\inetsrv\appcmd 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%\system32\inetsrv\appcmd 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”
install solidCP server on the new server
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.
We exported the DNS and imported. Then migrated to simpleDNS from MS-DNS and then used mass update tool to change IPs.
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
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.
- Views273 times
- Answers4 answers