View Full Version : ftp_put() warning
fourbit
06-18-2005, 02:45 PM
I am getting this warning on my server.
Warning: ftp_put(): PORT command successful in /home/joldworl/public_html/admin/includes/classes/feed.php on line 72
The FTP upload has FAILED!
I know the script runs fine. I have it on other servers. And obviously, it is successfully loggin in. It is just timing out after a few minutes.
Firewall?
Ftp-server?
... ?
Any ideas?
I have been reading all morning. I guess I'm in the forest again and can't see the trees. :(
Paul
fourbit
06-18-2005, 08:05 PM
Update.
It appears to be the Firewall. Now, I have to figure out which port is being blocked.
Boy, sure is dead around here on Saturdays. :D
veena
06-18-2005, 09:36 PM
I believe passive ftp had to be enabled in your script. Yeah, looks quiet today :)
fourbit
06-19-2005, 01:58 AM
Yea. That's the way it was finally solved. But, the problem is not with the script. This application runs fine on many other servers. And it runs so well, that I couldn't find any help on their forum regarding this error either. There was one posting that was like mine, but, noone answered that.
I did figure that the addition of the code would solve it. But I just don't like modding a script if I can find a way not to. Plus, I would have to add code to anyone elses script that comes up with that type of problem. It would be much simpler to solve the problem at the server end once and for all. ;)
The actual problem seems to lie with the configuration of the firewall. If it is turned off, the script runs fine. But, when it's turned on, the script times out.
For now, the work around will have to do. Seems that there should be a way to set this server up to run the scripts just as they were made.
I'll keep looking.
NEVER GIVE UP!! NEVER SURRENDER!!! :D
athira
06-20-2005, 01:30 AM
Just open the port range 61001_65535 in your firewall if it is not already open and then add this as the passive FTP port range in your VPS by editing the proftpd.conf or pure-ftpd.conf file as the case may be. If you need assistance with that, then, just open a support ticket and we will be glad to assist.
Athira.
PowerVPS/DTG Support Team
fourbit
06-20-2005, 08:29 PM
Finally!!! :) :D
Bless our SUPPORT team. And I emphasize the SUPPORT part. But, there is also definitely a team there also.
I would like to thank them all once again for solving another of my goofy "little" problems. This one took a while but all is well now.
Veena was the last to work on the problem. But, I'll bet they were ALL working on it. I got messages from everyone.
According to Veena, the problem lies in the fact that the php function 'ftp_put' uses a higher set of ports to transfer data. So she opened them up in the firewall and "VIOLINS" !!!! It works.
I had read about these ports somewhere. But, wasn't sure I understood it correctly.
So, anyhow, if anyone else ever has this proble with the ftp_put function, we all know to ask the Great!!! SUPPORT Team. We have here.
Thanks all,
Paul
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.