I'll admit to searching for a solution for less than a half hour on this one. If anybody has a solution *handy*, please let me know. I'll continue the search later as I get more time. (At least I have all my XMas shopping done)
Situation: I've learned enough to give a demo to the MWCS about setting up a home LAN and rudimentary networking. I've set up an OS X (10.2.6) box as an ftp, ssh, Apache, and file server. I plan on demonstrating how to do the set up, test the connections, actually connect, setting up a web page, file transfer with various programs (including fuse), etc.. I haven't figured out to use Samba but there are a couple people who have used it and would be willing to take that part of the presentation. Over all I have enough material to keep them happy for a couple of meetings.
The problem: I'd like to add a bit of a bonus. I'd like to show how to transfer files from an HTML document. When I had set up Apache on a Linux box, it worked. On the Mac, I can transfer files with an ftp client and fuse so I know that part works. It seems I am denied access when trying to transfer through HTTP. I changed the http:// tag to ftp:// and it complained about not allowing anonymous ftp. I found something on the net about setting up anonymous ftp, but it was a procedure which looked like it would take a couple of hours to implement. I'm not sure if I'm chasing wild geese or not.
The advantage to using the Mac for the demo is it causes less panic in some of the older members than does Linux. I suppose I can bring in the Linux box to talk about the file transfer stuff using HTTP for a later meeting.
The future: Eventually I'd like to do something quick on Bittorrent both on a LAN and the internet.
Later Mike
On 15 Dec, Mike Pfaiffer wrote:
I'd like to add a bit of a bonus. I'd like to show how to transfer files from an HTML document. When I had set up Apache on a Linux box, it worked. On the Mac, I can transfer files with an ftp client and fuse so
When you do your test xfer with a ftp client, do you enter in a name/pw or just login as anon?
I know that part works. It seems I am denied access when trying to transfer through HTTP. I changed the http:// tag to ftp:// and it
That statement doesn't make sense. Do you mean you are denied access when trying to transfer through FTP in a web browser?
If your manual ftp client (ncftp is best, IMHO) connects as anon, and you check that your path to the file is correct, then it should all work as exepected.
To help narrow things down, maybe disable your web proxy cache in the browser temporarily.
Trevor Cordes wrote:
On 15 Dec, Mike Pfaiffer wrote:
I know that part works. It seems I am denied access when trying to transfer through HTTP. I changed the http:// tag to ftp:// and it
The file is probably does not have world readability or not in the apache group.
Check apache's error log. On Linux /var/log/httpd/error_log
-- Bill
Bill Reid wrote:
Trevor Cordes wrote:
On 15 Dec, Mike Pfaiffer wrote:
I know that part works. It seems I am denied access when trying to transfer through HTTP. I changed the http:// tag to ftp:// and it
The file is probably does not have world readability or not in the apache group.
On the Mac the file has a 755 mode. I'll see if switching it to the Apache group helps.
Check apache's error log. On Linux /var/log/httpd/error_log
I'll see if I can track it down on the Mac.
-- Bill
Later Mike
Trevor Cordes wrote:
On 15 Dec, Mike Pfaiffer wrote:
I'd like to add a bit of a bonus. I'd like to show how to transfer files from an HTML document. When I had set up Apache on a Linux box, it worked. On the Mac, I can transfer files with an ftp client and fuse so
When you do your test xfer with a ftp client, do you enter in a name/pw or just login as anon?
ID/PW.
I know that part works. It seems I am denied access when trying to transfer through HTTP. I changed the http:// tag to ftp:// and it
That statement doesn't make sense. Do you mean you are denied access when trying to transfer through FTP in a web browser?
I should be more precise. I can access the web pages fine. The file transfer part is another story.
If your manual ftp client (ncftp is best, IMHO) connects as anon, and you check that your path to the file is correct, then it should all work as exepected.
I'll check it out with an anonymous ftp connection. The paths are correct. Otherwise I wouldn't get the access denied errors.
To help narrow things down, maybe disable your web proxy cache in the browser temporarily.
It's not enabled.
Lots to try. :-)
Later Mike
When you do your test xfer with a ftp client, do you enter in a name/pw or just login as anon?
ID/PW.
OK, so try it again with anon. Doubt it will work.
I'll check it out with an anonymous ftp connection. The paths are correct. Otherwise I wouldn't get the access denied errors.
And you can GET the file?
Sounds to me like you have not enabled anon features of your FTP server. What FTP server are you using? From what everyone else has been posting it sounds like apache has a built-in FTP server? But I've been using apache for years and I don't recall any built in ftp capability. So from what I know, you must have some FTP server program running, like vsftpd or wu-ftpd or whatever. You need to go in and configure that.
Trevor Cordes wrote:
When you do your test xfer with a ftp client, do you enter in a name/pw or just login as anon?
ID/PW.
OK, so try it again with anon. Doubt it will work.
I con confirm the anonymous login doesn't work (can't find the ID).
I'll check it out with an anonymous ftp connection. The paths are correct. Otherwise I wouldn't get the access denied errors.
And you can GET the file?
With ID/PW.
Sounds to me like you have not enabled anon features of your FTP server.
That's correct. I found some instructions which look like they might take a couple of hours to implement.
What FTP server are you using?
AFAIK the one built into OS X.
From what everyone else has been posting it sounds like apache has a built-in FTP server? But I've been using apache for years and I don't recall any built in ftp capability.
On the other system I have here (FC 2) it seems to work.
So from what I know, you must have some FTP server program running, like vsftpd or wu-ftpd or whatever. You need to go in and configure that.
That's kind of what I figured. That's why I asked if anybody had the info handy.
Looks like I just have to find the appropriate file.
Later Mike
To transfer files to an http server using HTTP you probably need to use something like webdav to enable publishing to http (thats how the http:// drive mounting in mac has worked for me in the past anyways)
Theo
Mike Pfaiffer wrote:
The problem: I'd like to add a bit of a bonus. I'd like to show how to transfer files from an HTML document. When I had set up Apache on a Linux box, it worked. On the Mac, I can transfer files with an ftp client and fuse so I know that part works. It seems I am denied access when trying to transfer through HTTP. I changed the http:// tag to ftp:// and it complained about not allowing anonymous ftp. I found something on the net about setting up anonymous ftp, but it was a procedure which looked like it would take a couple of hours to implement. I'm not sure if I'm chasing wild geese or not.
Theodore wrote:
To transfer files to an http server using HTTP you probably need to use something like webdav to enable publishing to http (thats how the http:// drive mounting in mac has worked for me in the past anyways)
Theo
Webdav is a configuration editor or is it a plugin for Apache?
Later Mike
Mike Pfaiffer wrote:
The problem: I'd like to add a bit of a bonus. I'd like to show how to transfer files from an HTML document. When I had set up Apache on a Linux box, it worked. On the Mac, I can transfer files with an ftp client and fuse so I know that part works. It seems I am denied access when trying to transfer through HTTP. I changed the http:// tag to ftp:// and it complained about not allowing anonymous ftp. I found something on the net about setting up anonymous ftp, but it was a procedure which looked like it would take a couple of hours to implement. I'm not sure if I'm chasing wild geese or not.