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