How the Linux Server Web site is migrated to the win server

Source: Internet
Author: User
Tags php and mysql

I believe many friends have encountered the problem of website Exchange Server, or success or failure! Today 3A Network small money to tell you is a personal experience, the original Penny has a website is running on the Linux server, the Web service used for nginx+mysql+php, but due to the server expires, the new server is win2008 system, it needs to be only good migration!
Preparation for pre-work
1. You must know the PHP and MySQL version of your website
2. Website size
3. Database size
Because the website is too huge 90G, and the Linux server disk space is not enough to compress, finally I choose the method is to use FTP pass, did not think of any good way.
The database size of the site is more than 2G, which has a web site of the MySQL database to reach 1.9G, and the size of the exported SQL file is also 1.3G, the other few are small site database is not big.
The website source program downloads the process, did not encounter any important question. In the process of database export import encountered a problem, the database SQL file over 100M will have problems (have adjusted the size of the Max_allowed_packet), and finally look at several of the tables are particularly large, the method of importing two, Import in batches (tables with large export data) and copy database files directly.
After all the sites have been deployed, two questions are encountered
1, one of the Web site is installed with Phpyun program, the source program folder Templates_c need higher permissions to run, to ensure that the site is normal;
2, another site is phpcms installation, before building PHP with the php5.3, the same environment other sites do not have problems, and this site has been 500 errors, can not open, after a long study, decided to change a PHP5.2 installation version, after the website access is normal. Preliminary decisions may be caused by the Libmysql.dll file and its permissions issues (not tested only).
At this point, all the Web site source program and database migration is complete!

Jiangsu Three AI Network Technology Co., Ltd.

How a Linux Server Web site migrates to a win server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.