Click to See Complete Forum and Search --> : FTP not working with Red Hat 7.1


Ozarkian
06-03-2001, 09:07 PM
Hello...I am trying to run apache on a box with Red Hat 7.1 installed. When I try to connect to the server using gftp I get the response "Connection refused". Can anyone tell me how to fix this problem. Any help is greatly appreciated.

Ozarkian
06-04-2001, 07:15 AM
Is it possible that port 21 is closed? Can anyone tell me how to check to see if that port is open or closed? Thanks.

Bob54325
06-04-2001, 04:44 PM
Nothing works with Red Hat (or Mandrake, or Libranet, or SUSE, or Debian)

saithan
06-04-2001, 10:41 PM
i just finished going through the same problem. everything is working however you must config your fire wall ( which is blocking connection)....
su - in as root
command line "setup"
config the firewall to allow http and ftp
after that make sure the httpd is running by using "linuxconf"
as for the ftp deamon if you are using wu-ftp it will start when there is a connection request. you can test this on the local machine by command line "ftp localhost"...
took me forever to figure this out and really the solution is quite simple :)

Ozarkian
06-05-2001, 12:07 AM
Thanks for the help but I am still having problems... I su-ed to root. Ran command "setup", and got the response "command not found". If you have any other suggestions please let me know. I don`t think that wu-ftpd is installed. I have been trying to install from an rpm, but I can`t get it to install either. Thanks for the help.

saithan
06-05-2001, 07:12 PM
I'm not sure but i beleive that setup command is part of xconfigurator so i am assuming that you did not install x windows with your installation...
If you are trying to install wu-ftp again and you are getting error more likely than not it is installed.
the linuxconf will say "No package manager available". but from what i figured out it does not run like the httpd, wu-ftp only runs when it is invoked by a connection request. if it is linsted in the linuxconf then it is installed.
try this test in commend line
#ftp 127.0.0.1
if you see ":connection refused" it is installed
or better yet if you see
220 - hostname FTP server (Version..ect)
that means all you need to do is find away to config your firewall to allow ftp.
an easy tool to config the fire wall is lokkit. although i am probably at the same level as you with linux let me know the results of the test if there is a prob i will try to back track what packages i installed and find a way to get setup command to work.

Ozarkian
06-05-2001, 11:37 PM
Thanks for trying to help. I tried lokkit and gnome-lokkit. Neither one would save the configuration I chose for the firewall. According to lokkit the system is set to high security. I tried to choose low security and it will not save the settings. When I try

#ftp 127.0.0.1

I get "connection refused" again. wu-ftpd is in the RedHat Kontrol-Panel. If you have any other suggestions please let me know. I will keep trying the suggestions you have already made and do some more reading.

Thanks a million!!!!!

Falcon
06-06-2001, 12:44 AM
I had similar trouble with my old box. Do the following:


su root
/usr/sbin/setup


That will open the RedHat configuration thingy. Then select firewall settings and set the ports you need open (in custom). I recomend high unless you are going to be doing things it won't like. That fixed it for me.

Hope this helps,
Falcon

Ozarkian
06-06-2001, 06:57 AM
Thanks for the hint...I ran setup utility with the same results. For some reason the configuration that I choose will not save. I chose CUSTOMIZE and setup goes back to the main setup utility window when I hit enter. It doesn`t give me any choices as far as ports to open. I can`t figure out why it won`t save my firewall configuration. Any other suggestions?

I am not sure but when I installed Red Hat the other day I think I chose not to install ftp. Does anyone think it would be a good idea to reinstall Red Hat?

At least now with everyones help I have learned a little more.

Thanks everyone

saithan
06-07-2001, 12:02 AM
ok i got it.... this is a walk through.
1. su in as root
2. type
setup
3. go to config firwall and set at high and then custom
4. open http(for apache web server) and ftp(for wu-ftp)
5.click ok...... this will take you back to the the first firewall config promt it will look as though nothing was saved ((((but it was)))CLICK OK.
6. now you will be back at the main setup promt click Quit

that is all there is.
next test by connecting

Ozarkian
06-07-2001, 09:51 AM
THAT DID IT...thanks a million. I can connect now using ftp and my users can upload their files. Thanks for taking the extra time to check that out for me.

Thanks to you to Falcon.

Falcon
06-07-2001, 10:43 AM
No problem, this board is to help people out. When you mess up, someone can help, when they mess up, you can help. Thats why I love this place.