FTP problem to Name Based Virtual Server Web Site

Sannyasin Sivakatirswami katir at hindu.org
Fri Jun 4 01:09:13 EDT 2004


Ok forgive the long post but you need to see these responsse to the URL  
string calls from interarchy and Rev to get the picture.

Note, that our problem here is FTP into a chroot(ed)  
virtual-server-domain... there's lots of path issues here... I've been  
fussing with CGI for several days.. and it's not all that intuitive.  
There is some default setting where the www directory is considered  
"home" with symlinks doing all kinds of unexpected things....

Ok here we go with logs:

ftp://jiva%40hheonline.org:password@55.55.55.555//home/jiva/ 
mainwebsite_html/

returns:

200 Type set to A.
CWD /home/jiva/mainwebsite_html
250 CWD command successful.
PORT 192,168,1,230,223,229
200 PORT command successful
LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
-rw-r--r--   1 jiva     jiva         4222 May 29 04:19 5advantages.shtml
drwxrwxr-x   2 jiva     jiva         4096 May 28 04:03 css
-rw-r--r--   1 jiva     jiva         1438 May 29 04:19 favicon.ico
drwxr-xr-x   2 jiva     jiva         4096 May 29 04:24  
financial_statements
-rw-r--r--   1 jiva     jiva         2930 May 29 04:19  
founders_message.shtml
drwxr-xr-x   2 jiva     jiva         4096 May 29 04:19 funds
-rw-r--r--   1 jiva     jiva        42902 Jun  4 02:48 guestbook.html

etc. i.e. a successful listing of what, from root on this site is  
actually:

var/www/html/

=====
this may help us: from libURL

put  url "ftp://jiva%40hheonline.org:108koyil@www.hheonline.org/"

returns
lrwxrwxrwx   1 root     root           21 May 28 02:49 mainwebsite_cgi  
-> ../../var/www/cgi-bin
lrwxrwxrwx   1 root     root           18 May 28 02:49 mainwebsite_html  
-> ../../var/www/html

== back to interarchy:

ftp://jiva%40hheonline.org:password@555.55.55.55//

results:

220 ProFTPD FTP Server ready.
USER jiva at hheonline.org
331 Password required for jiva at hheonline.org.
PASS *****
230 User jiva at hheonline.org logged in.
PWD
257 "/home/jiva" is current directory.
TYPE A
200 Type set to A.
CWD /
250 CWD command successful.
PORT 192,168,1,230,223,235
200 PORT command successful
LIST
150 Opening ASCII mode data connection for file list
drwxr-xr-x   2 root     root         4096 May 28 02:49 bin
drwxr-xr-x   3 root     root         4096 May 28 05:15 dev
drwxr-xr-x  17 root     jiva         4096 May 28 05:15 etc
drwxr-x--x   3 jiva     jiva         4096 May 28 02:49 home
drwxr-xr-x   3 root     root         4096 May 28 02:49 lib
drwxr-xr-x   2 root     root         4096 May 28 02:49 root
drwxr-xr-x   2 root     root         4096 May 28 02:49 sbin
drwxrwxrwt   2 jiva     jiva         4096 May 28 02:49 tmp
drwxr-xr-x  13 root     root         4096 May 28 02:49 usr
drwxr-xr-x  11 root     root         4096 May 28 02:49 var
226 Transfer complete.

So, that's what I want from Rev...

The double slashes work in the FTP client... but if i put that same  
string into rev

   put url "ftp://jiva%40hheonline.org:password@555.555.555.555//"  into  
jai

I get thrown back into the default www

lrwxrwxrwx   1 root     root           21 May 28 02:49 mainwebsite_cgi  
-> ../../var/www/cgi-bin
lrwxrwxrwx   1 root     root           18 May 28 02:49 mainwebsite_html  
-> ../../var/www/html


my libURL  FTP log shows:

socket 555.555.555.555:21|6927
220 ProFTPD FTP Server ready.
331 Password required for jiva at hheonline.org.
230 User jiva at hheonline.org logged in.
257 "/home/jiva" is current directory.
200 Type set to I.
250 CWD command successful.
200 PORT command successful
150 Opening ASCII mode data connection for file list
CLOSED 555.555.555.555|138757784
CLOSED 6926
226 Transfer complete.
250 CWD command successful.
221 Goodbye.
CLOSED 555.555.555.555:21|6927

========

ftp://jiva%40hheonline.org:password@555.555.555.555/~jiva/

also throws me back to the www/ directory with the two symLinks to the  
actual var/www/cgi-bin and /html directories.

so that doesn't help... The same string in revolution returns an error

error  550 /home/jiva/~jiva: No such file or directory

=========

so, for some reason, interarchy *is* able to realize the // means "go  
to root"

200 Type set to A.
CWD /
250 CWD command successful.

My goal is to get and put files in a special directory in the var/www/  
that we have made from root as

ftp://jiva%40hheonline.org:password@555.5555.555.55//var/www/formdata/

which works in interarchy, but the same string in Rev results also in

error  550 /home/jiva//var/www/formdata: No such file or directory:

socket 555.5555.555.55:21|6929
220 ProFTPD FTP Server ready.
331 Password required for jiva at hheonline.org.
230 User jiva at hheonline.org logged in.
257 "/home/jiva" is current directory.
200 Type set to I.
550 /home/jiva//var/www/formdata: No such file or directory
CLOSED 555.5555.555.55:21|6929

so, how to get libURL to CWD to /?

this is pretty important for  us... I can't actually go live with web  
content on our new server until this works. so consider this a mission  
critical blocker!  ;-)

Best wishes from Hawaii, where it's starting to warm up..

Sivakatirswami


On May 31, 2004, at 11:16 PM, Dave Cragg wrote:

> At 2:04 pm -1000 31/5/04, Sannyasin Sivakatirswami wrote:
>
>> OR
>>
>> URL2
>> user%40himalayanacademy.com:password at 555.55.55.55//var/www/html
>>
>> and they BOTH work in the FTP client... but in Revolution, the first  
>> one(to the symLink) gives a valid log in (showing that it is not a  
>> problem with the @ in the user string)
>>
>> 257 "/home/himalayan" is current directory.
>> 200 Type set to I.
>> 250 CWD command successful.
>> 227 Entering Passive Mode (555,555,555,555,133,201).
>> ## we are logged in, no path problem, but symlink not followed...
>>
>> no listing is returned and the result is empty...
>>
>> but the attempt to reach the *actual* directory, directly, as in URL2  
>> above
>>
>> results in
>>
>> error  550 /home/himalayan//var/www/html: No such file or directory
>>
>> but, again, only in Revolution...
>>
>
> One small point. URL2 as written above will be treated as a file and  
> not a directory by libUrl. It needs a final forward slash to be  
> treated as a directory.
>
> I'm not sure about double slash conventions. If it works differently  
> in other ftp clients then it's possible they are doing some  
> manipulation to the url. It might be useful if you could post the  
> Interarchy log/transcript so we can see the commands it's sending.
>
>
> Cheers
> Dave
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list