View previous topic :: View next topic |
Author |
Message |
bodemory
Joined: 06 Dec 2005 Posts: 43
|
Posted: Fri Jan 20, 2006 7:00 am Post subject: wviewftpd file adressing question |
|
|
Hi,
I have to move the wview weather page to another server. On the new one, the login supplied logs into a directory where I don't have any writing rights...
I have to 'cd httpdocs' and then it's okay.
I'm annoyed with wviewftpd, because I don't find a workaround to make it writing data directly in 'httpdocs/img'.
Do I have to specify something in the ftp server line in ftpconfig file ?
On top of that, the ISP is reluctant to give users writing permissions in the login directory.
Any idea ?
Thanks,
Brice |
|
Back to top |
|
|
pata
Joined: 27 Oct 2005 Posts: 21 Location: Long Island, NY
|
Posted: Fri Jan 20, 2006 8:16 am Post subject: |
|
|
I have the same problem with my ISP - I need to store the data in a subdirectory off the root path as: /public_html/img.
My isp does not allow me to telnet into the site to link to the directory. My solution was to change the ftpUtils.c file in the 'ftp' directory as follows:
In the ftpUtilsSendFiles routine:
from: sprintf (url, "ftp://%s:%s@%s"
to:sprintf (url, "ftp://%s:%s@%s/public_html/",
This will cause the files to be written into the correct subdirectory.
After making this change you have to make and then make install. I hope this helps.
Pat
P.S. This would be a nice 'config' parameter. |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Fri Jan 20, 2006 8:31 am Post subject: |
|
|
I agree - in the future, add it to the WishList for consideration. I will add it for you this time...
Thanks,
Mark |
|
Back to top |
|
|
bodemory
Joined: 06 Dec 2005 Posts: 43
|
Posted: Fri Jan 20, 2006 11:17 am Post subject: |
|
|
Many thanks Pat ! Waow, great news
Thanks for adding an option in the next version Mark.
Best regards
Brice |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sun Jan 22, 2006 12:12 pm Post subject: |
|
|
OK, if either of you want to test the enhancement, install the "Latest Stable" version on the wview homepage...
Don't forget to grab the new wviewftp.conf-no-ftp (and rename it) and of course run wviewconfig.
IF you do, let me know how it goes...
Mark |
|
Back to top |
|
|
bodemory
Joined: 06 Dec 2005 Posts: 43
|
Posted: Sun Jan 22, 2006 6:03 pm Post subject: |
|
|
Hi,
I've just installed 3.1.0p32. It works like a charm, especially the new ftp
setting !
Many thanks for all this outstanding work, Mark.
Brice |
|
Back to top |
|
|
pata
Joined: 27 Oct 2005 Posts: 21 Location: Long Island, NY
|
Posted: Mon Jan 23, 2006 8:48 am Post subject: |
|
|
Thanks Mark for adding this feature. I hope to upgrade to your latest version towards the end of this week. I see Bodemory has already tested it so I believe in his work.
Thanks, Pat |
|
Back to top |
|
|
|