Using apache as an ftp server

  • williebens
  • Newbie
  • Newbie
  • williebens
  • Posts: 5

Post 3+ Months Ago

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 http://www.myhostname.com myhostname
192.168.x.x ftp.192.168.x.x or domain
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
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

According to the directive documentation, mod_ftp is only compatible with Apache 2.3 and higher.

You are running 2.0.59.

Additionally, check the directive list -- you need 'FTP On' to be an active directive.
  • williebens
  • Newbie
  • Newbie
  • williebens
  • Posts: 5

Post 3+ Months Ago

Thanks a lot for your feedback Daemonguy.
Now I got a question for anyone.
Has anyone, including you Daemonguy, succeeded in
getting apache to work as an ftp server to upload/download
files or to display ftp content on a browser?

Thanks.
--Willie
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

I honestly have never tried. I usually use an ftp daemon, as they are more robust.
  • williebens
  • Newbie
  • Newbie
  • williebens
  • Posts: 5

Post 3+ Months Ago

Ok. So you use and FTP daemon on linux.
Do you do your uploads/downloads via a browser client,
command-line client, or graphical client like wscp?

Also, I just went to the apache.org site, and I cannot fine
neither a binary nor a source code for apache 2.3.

Can you tell me where I can find it?

Thanks.
--Willie
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6251
  • Loc: Seattle, WA

Post 3+ Months Ago

I'm assuming that was a typo on DG's part; the latest version is 2.2.6.
  • williebens
  • Newbie
  • Newbie
  • williebens
  • Posts: 5

Post 3+ Months Ago

Thanks spork. It was probably either a typo or a confusion by
Daemonguy. I just found 2.2.6. I am going to use that one for now.
Whatever I come up with, I will post the solution for others to
see in case they are going through the same harships that I am, and I really mean it.

Keep the feedback.

Peace.

--Willie
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Oops.

Problem with multitasking.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 40 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.