Jump to content

robnelli

Members
  • Posts

    4
  • Joined

  • Last visited

robnelli's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. When I do a regular ftp from the linux box, all commands are unrecognized unless I issue "passive" to turn passive mode OFF. All commands work after that. When executing your PHP, under either "passiveftp" or "ftp", I get unrecognized commands. It behaves as if passive mode is on in either case. Any ideas how to get the ftp in the php exec (or cpanel?) to set passive off?
  2. Connection Success ... FTP Failure!! I finally found the proper settings for the D-Link 704 to connect to the FileZilla FTP server but the copy commands appear to be unrecognized by the FTP server. Any ideas? From your PHP email: Net::FTP=GLOB(0x82883bc)<<< 220-FileZilla Server version 0.8.9 beta Net::FTP=GLOB(0x82883bc)<<< 220 Nelli FileZilla Server Net::FTP=GLOB(0x82883bc)>>> user .... Net::FTP=GLOB(0x82883bc)<<< 331 Password required for jrnbackup Net::FTP=GLOB(0x82883bc)>>> PASS .... Net::FTP=GLOB(0x82883bc)<<< 230 Logged on Net::FTP=GLOB(0x82883bc)>>> TYPE I Net::FTP=GLOB(0x82883bc)<<< 200 Type set to I Net::FTP=GLOB(0x82883bc)>>> ALLO 40607502 Net::FTP=GLOB(0x82883bc)<<< 500 Syntax error, command unrecognized. Net::FTP=GLOB(0x82883bc)>>> PASV Net::FTP=GLOB(0x82883bc)<<< 500 Syntax error, command unrecognized. Net::FTP=GLOB(0x82883bc)>>> QUIT Net::FTP=GLOB(0x82883bc)<<< 221 Goodbye From FileZilla FTP Server: (000002) 4/15/04 19:51:47 PM - (not logged in) (63.247.69.242)> Connected, sending welcome message... (000002) 4/15/04 19:51:47 PM - (not logged in) (63.247.69.242)> 220-FileZilla Server version 0.8.9 beta (000002) 4/15/04 19:51:47 PM - (not logged in) (63.247.69.242)> 220 Nelli FileZilla Server (000002) 4/15/04 19:51:47 PM - (not logged in) (63.247.69.242)> user ****** (000002) 4/15/04 19:51:47 PM - (not logged in) (63.247.69.242)> 331 Password required for jrnbackup (000002) 4/15/04 19:51:47 PM - (not logged in) (63.247.69.242)> PASS ****** (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> 230 Logged on (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> TYPE I (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> 200 Type set to I (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> ALLO 40607502 (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> 500 Syntax error, command unrecognized. (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> P@SW (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> 500 Syntax error, command unrecognized. (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> QUIT (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> 221 Goodbye (000002) 4/15/04 19:51:47 PM - jrnbackup (63.247.69.242)> disconnected.
  3. Correct. I basically can't get the FTP portion of the process to work. My PC is connected to the internet via a cable modem behind a DLink Cable/DSL Residential Gateway (DI-704). The DI-704 Gateway says that the IP address is 68.x.xxx.33. I set up FileZilla FTP Server to listen on port 21 using passive ftp IP address set to 68.x.xxx.33. I then attempt to FTP from my web account (RedHat Linux) to 68.x.xxx.33 but the connectiction times out. I understand that the IP address will change in the future (a future issue to deal with). I'll look to see if there is a port forwarding option in the router as you suggest (there are so many firewall options in the router that it may take a lot of trial and error).
  4. I'm trying to use your PHP script to FTP a backup file to my PC running an FTP server. I've tried both FileZilla and Windows FTP Server on my PC but I can't seem to get your script to communicate with the FTP server. I've heard that it can be done, but I can't find the post that I first read about it. Do you know how to set the FTP settings in the PHP to communicate with the FTP server? Also, I was getting good responses from your script, but now I'm getting an error. Good responses: Net::FTP>>> Net::FTP(2.74) Net::FTP>>> Exporter(5.567) Net::FTP>>> Net::Cmd(2.25) Net::FTP>>> IO::Socket::INET(1.26) Net::FTP>>> IO::Socket(1.27) Net::FTP>>> IO::Handle(1.21) Net::FTP=GLOB(0x82884ec)<<< 220-=(<*>)=-.:. (( Welcome to PureFTPd 1.0.12 )) .:.-=(<*>)=- Net::FTP=GLOB(0x82884ec)<<< 220-You are user number 4 of 50 allowed. Net::FTP=GLOB(0x82884ec)<<< 220-Local time is now 17:21 and the load is 1.17. Server port: 21. Net::FTP=GLOB(0x82884ec)<<< 220 You will be disconnected after 15 minutes of inactivity. Net::FTP=GLOB(0x82884ec)>>> user jrnhost Net::FTP=GLOB(0x82884ec)<<< 331 User jrnhost OK. Password required Net::FTP=GLOB(0x82884ec)>>> PASS .... Net::FTP=GLOB(0x82884ec)<<< 230-User jrnhost has group access to: jrnhost Net::FTP=GLOB(0x82884ec)<<< 230 OK. Current restricted directory is / Net::FTP=GLOB(0x82884ec)>>> TYPE I Net::FTP=GLOB(0x82884ec)<<< 200 TYPE is now 8-bit binary Net::FTP=GLOB(0x82884ec)>>> ALLO 1302233 Net::FTP=GLOB(0x82884ec)<<< 200 Zzz... Net::FTP=GLOB(0x82884ec)>>> PASV Net::FTP=GLOB(0x82884ec)<<< 227 Entering Passive Mode (127,0,0,1,52,7) Net::FTP=GLOB(0x82884ec)>>> STOR backup-4.13.2004_16-21-24_jrnhost.tar.gz Net::FTP=GLOB(0x82884ec)<<< 150 Accepted data connection Net::FTP=GLOB(0x82884ec)<<< 226-31809.2 Mbytes free disk space Net::FTP=GLOB(0x82884ec)<<< 226-File successfully transferred Net::FTP=GLOB(0x82884ec)<<< 226 0.037 seconds (measured here), 33.13 Mbytes per second Net::FTP=GLOB(0x82884ec)>>> QUIT Net::FTP=GLOB(0x82884ec)<<< 221-Goodbye. You uploaded 1272 and downloaded 0 kbytes. Net::FTP=GLOB(0x82884ec)<<< 221 Logout - CPU time spent: 0.020 seconds. -------------------------------------------------------- Copying Reseller Config...Done Copying Mail files....Done Copying proftpd file....Done Copying www logs............. ......... Done Grabbing mysql dbs...Done Grabbing mysql privs...Done Copying mailman lists....Done Copying mailman archives....Done Copying homedir....Done Copying cpuser file.......Done Copying crontab file.......Done Copying quota info.......Done Storing Subdomains.... Done Storing Parked Domains.... Done Storing Addon Domains.... Done Copying password.......Done Copying shell.......Done pkgacctfile is: /tmp/backup-4.13.2004_16-21-24_jrnhost.tar.gz Creating Archive ....Done md5sum is: 8eec6d0519a45641c33888c25ee6768e Bad Responses: Can't call method "login" on an undefined value at /usr/local/cpanel/bin/ftpput line 24. -------------------------------------------------------- Copying Reseller Config...Done Copying Mail files....Done Copying proftpd file....Done Copying www logs............. ......... Done Grabbing mysql dbs...Done Grabbing mysql privs...Done Copying mailman lists....Done Copying mailman archives....Done Copying homedir....Done Copying cpuser file.......Done Copying crontab file.......Done Copying quota info.......Done Storing Subdomains.... Done Storing Parked Domains.... Done Storing Addon Domains.... Done Copying password.......Done Copying shell.......Done pkgacctfile is: /tmp/backup-4.13.2004_17-11-22_jrnhost.tar.gz Creating Archive ....Done md5sum is: ebdc5c580beb928fe2491374f3c43aa9
×
×
  • Create New...