FTP upload file often interrupts or times out the solution

  

User share: Recently made a simple job, is to move a phpcms built website to another space. It should have been a very simple matter, but there was no choice but to run into the wall and encounter various problems. Finally, I solved all the problems today. I wrote this article to commemorate the commemoration. At the same time, some solutions to the problems encountered here hope to help some friends in need.
Task: Migrate the website built with phpcms under the A1 domain name of the A server to the B1 domain under the B server.

Environment: ordinary household 1.5 megabit broadband (multiple use routing), B server without any control panel, only ftp and mysql account password. The new server is Unix operating system, support php, mysql version is 4.0.1

This project is not difficult, the easiest way is to make the whole station under A server as a compressed package, pass to B Decompress on the server. The database on the A server is exported with phpmyadmin, and then imported to the database of the B server using phpmyadmin. The idea is very clear, but it has encountered a lot of problems.

The first problem is that space does not support decompression. When I use the faisun_unzip.php applet to extract the zip file, the prompt is that there is no zlib library, which is not supported. More depressed. Since decompression is not supported and there is no control panel, only those files are uploaded one by one.

Then unpack the zip file and start uploading the file. After a few files, it will start to time out or die. Very depressed, phpcms itself has a few thousand files, plus some files generated after the website has been running for a while, if it is always timeout to disconnect, it can not be transmitted normally. Changing a few ftp software did not solve the problem.

Later, I switched to a ftp software called FileZilla, which used the software configuration wizard function of the software to detect the network and said that my network had problems. So I thought, it must be a router problem, a port problem. According to this idea, the problem was solved. Let me talk about the specific steps below.

Copyright © Windows knowledge All Rights Reserved