Click to See Complete Forum and Search --> : Connection was refused!


sporkit
12-15-2002, 05:31 PM
Im trying to set up my linux red hat 7.3 distro as a apahie web server. however when i try and connect to my static address 192.168.1.2 i recive the message "Connection was refuesed when attempting to contact 192.168.1.2"

so far my machine works properly on my network and can access the internet fine. this site is only for my intranet and would not need to be accesseable from the web.

everything else is left at defaults. could the problem be a firewall? i have it set to medium so would that block out port 80?:confused: unfortunatly i set that up durinng the install and dont know how to set it back to low.

any help that would bring my browser to the defualt apache site would be greatlyappreciated :)

thanks!!!

WCOutlaw
12-15-2002, 08:45 PM
From the Redhat machine that's running apache, what happens? (try lynx http://192.168.1.2 or telnet 192.168.1.2 80 to test the connection) - if it works locally, then I'd suggest it would be a firewall issue...

Ensure that apache is actually running (/etc/init.d/httpd status or ps -ax | grep httpd)

After that, then go through your firewall, I've never used any of the supplied tools - I administer my firewall using the raw console commands, so I'm unsure of the specifics you'd need to allow http traffic in.

Good luck,

sporkit
12-15-2002, 11:16 PM
Yea it totally works now. the apache service was never starting (httpd) so it wouldnt pop up. now its working. my next goal is to get the ftp up. do u know where i should start?

:)

www.sporkit.com

ilin
12-16-2002, 06:48 AM
Hi, :)

Well for ftp first you should check that the wu-ftpd package is installed:

rpm -q wu-ftpd

If it's not, then install it.

NEXT: The ftpd service is controlled by "xinetd" so check the file /etc/xinetd.d/wu-ftpd. There is a line which consists of the following:

disable = yes

change the "yes" with "no" and then restart xinetd

/etc/rc.d/init.d/xinetd restart

Then you should be able to enter from another PC, or you might try to connect from the same PC

ftp 127.0.0.1

Bye and good luck!!! :)