move asp website to a new server step by stepRSS

3 replies

Last post Sep 08, 2020 09:25 AM by Jalpa Panchal

  • move asp website to a new server step by step

    Sep 06, 2020 07:40 AM|jehan.abueed|LINK

    Hello Dears,

    a live aspx website up and running and want to move it to another server with it's data base...

    I need a detailed steps how to move website files and the related database and how to configure web.config file on new server..

  • Re: move asp website to a new server step by step

    Sep 07, 2020 09:11 AM|Jalpa Panchal|LINK

    Hi,

    To back up your MySQL database on the source server, use the mysqldump command.

    To restore your MySQL database on the target server, use the mysql command with the name of the dump file that you created.

    to backup iis site follow the below steps:

    1)In IIS Manager Right-click on your site. Selected Deploy and click on Export Application…

    IIS_Manager_Export_Application

    2) In the Export Application Package, window click the Next button (do not change any settings).

    3)Click the Next button in the Select Parameters window (again, do not changing any settings).

    4)Click the Browse… button and select a directory on your local computer (this is where the backup .zip file containing your site’s web files will be placed on your local computer). Select a file name with today’s date for your reference. Now click the Save button.

    5)Click the Next button in the Save Package box and wait for your site to be saved locally on your computer. Now click the Finish button when you receive the notice “The package was created successfully.”

    after doing this move the backup file to another server.

    Import Application in the Deploy option in IIS Manager:

    1)Right click on your site in IIS Manager. Select Deploy and click Import Application.

    IIS_Manager_Import_Application

    2)Click the Browse… button and select the .zip file located on your computer of the web site backup you moved. Then click Next.

    3)Do not change any settings in the Select The Contents of the Package box and click the Next button.

    4)On the next page Enter Application Package Information you will need to remove the text from the box so the backup is restored to the root. So you should only see:

    5)In the next box, Overwrite Existing Files, choose the option, “Yes, delete all extra files and folders on the destination that are not in the application package.” This will delete any extra files or folders that don’t exist in the backup .zip folder (we’re choosing this option because you want to restore the entire site as it existed on the date that you created the .zip files).

    If you don’t wish to delete the extra files then select the option: “No, just append the files in the application package to the destination.” Now click the Next button.

    IIS Manager will now restore your site files to the state they were in when you created the .zip file.

    it also contains a web.cofig file so you no need to separately configure it.

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: move asp website to a new server step by step

    Sep 08, 2020 08:40 AM|jehan.abueed|LINK

    @Jalpa Panchal



    the new server is empty and dosen't contain a site to import the file in it, I need to create a new site on the destination server from zero, so how to do that and how to set application pool and conecct the site with the data base??

    also I have no idea how to configure web.cofig file, what should I change in it ??

  • Re: move asp website to a new server step by step

    Sep 08, 2020 09:25 AM|Jalpa Panchal|LINK

    Hi,

    You can import the application under the default site. the default site has the default application pool you can configure the user to that application pool to use the database.

    jehan.abueed

    <div id="reference-post-content" class="reply-comment full">

    also I have no idea how to configure the web.cofig file, what should I change in it ??

    </div>

    as I mentioned you no need to do any changes in the web.config file it is already available in your site back up.

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.