apache as an ftp server

Thread Solved
Reply

Join Date: Jan 2008
Posts: 40
Reputation: williebens is an unknown quantity at this point 
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

apache as an ftp server

 
0
  #1
Jan 10th, 2008
Hello forum:

I am trying to make apache an ftp server. I think this is possible because apache has mod_ftp.
Below is a snippet of my httpd.conf file that has the configuration for a virtual host to serve as an ftp server:

.
.
.
LoadModule ftpd_module modules/mod_ftpd.so
LoadModule ftpd_default_module modules/mod_ftpd_default.so
.
.

NameVirtualHost 192.168.x.x

Listen 21
<VirtualHost *:21>
#FTP On
FtpProtocol On
FtpAllowActive Off
ServerName ftp.myboxdomain.com or IP
DocumentRoot /var/www/html/ftpdocs
<Directory /var/www/html/ftpdocs>
# AuthName "FTP Server"
# AuthType Basic
# AuthUserFile /etc/httpd/conf/passwd/.htpasswd
# Require valid-user
Order allow,deny
# Allow from all
Allow from 192.168.x.x
</Directory>
</VirtualHost>

Now the following is my host file on my linux box:
# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost
192.168.x.x www.myhostname.com myhostname
192.168.x.x ftp.192.168.x.x or IPaddress

If there is a solution someone can help me find, please let me know. I have been working on this for three days, and I just do not get it right. I also wonder if I have to use an ftp server like proFTPD along with apache.

I am running Apache/2.0.59 (CentOS) Server.
Thanks.
--Willie
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,756
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

 
1
  #2
Jan 10th, 2008
the best way to go is to set up a normal ftp server besides Apache. these things are to be used as intended.

here is the description: http://incubator.apache.org/ftpserver/

since this is a java written thing, I wouldn't get near it for performance.
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 40
Reputation: williebens is an unknown quantity at this point 
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

 
0
  #3
Jan 10th, 2008
Hello Dima Yasny:

I went to that site before, but I did not
find it useful. When you say to set up a
normal ftp server besides Apache, do
you mean I need to have an ftp server,
like proFTP running, together with the apache
ftp virtual directory?

There has to be a way to achieve this.
I just want users to be able to upload
and download files via a browser. Just
like I would download winzip for example.

Thanks.
--Willie
Last edited by williebens; Jan 10th, 2008 at 3:25 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,756
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

 
0
  #4
Jan 10th, 2008
the ftp will have nothing to do with the apache VD. it's just a service. if you want it's name to be known as ftp.domain.com instead of www.domain.com you just need to add the ftp.domain.com A record to your DNS
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 40
Reputation: williebens is an unknown quantity at this point 
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

 
0
  #5
Jan 10th, 2008
OK. I will keep working on this until I get it sometime. Have you ever got this working
under apache? I mean, making apache an
ftp server as well as a web server?

Thanks.
--Willie
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,756
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

 
0
  #6
Jan 10th, 2008
I have set up many linux servers with apache as http server and vsftpd/proftpd/wu-ftpd as ftp servers

apache is NOT and ftp server though.
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,756
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

 
0
  #7
Jan 10th, 2008
http://www.outoforder.cc/projects/apache/mod_ftpd/docs/

this is the documentation you might need. though as I said - there is no need to reinvent the wheel, when there are perfectly good ftp daemons out there
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 40
Reputation: williebens is an unknown quantity at this point 
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

 
0
  #8
Jan 10th, 2008
Ok. That is a good site. If you look at my first post, it is really about the same
thing I have configured in the apache virtual server.

Now, I think this is the way I should do things.

1) Configure an ftp virtual server like the one I have.
2) Have an ftp daemon running like vsftpd or proftpd.
3) Create accounts for vsftpd or proftd or whatever daemon I am using.

Can you suggest me about a server name for the ftp virtual host.
I am not doing DNS for this one, I am just editing my /etc/hosts file
accordingly like I posted.

Thanks a lot for your insights and your time on this.
--Willie
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,756
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

 
0
  #9
Jan 10th, 2008
can you, in detail, describe what exactly you want the server to do?
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 40
Reputation: williebens is an unknown quantity at this point 
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

 
0
  #10
Jan 10th, 2008
I want to get apache running as an ftp server. I am not sure, however, if I need an ftp daemon like proftpd running along with the apache ftp virtual directory. I want users to upload and download files via a browser. Let us say I create a directory /home/ftpdocs. Then my document root would be /home/ftpdocs.

I want apache to display, via a browser, whatever files users upload to that particular directory on the server as well as be able to download those files.

Like I said, I do not know if I need a separate ftp daemon running or just apache with the ftp virtual directory.

Thanks a lot.
--Willie
Last edited by williebens; Jan 10th, 2008 at 7:10 pm.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC