Click to See Complete Forum and Search --> : cannot find server error


criatura
02-04-2003, 12:04 PM
i am attempting to create a webserver on my redhat 8 box. i have installed apache and php and everything is good when i am sitting at that machine and type http://localhost/index.php (just a test page). But when i put http://ipaddress/index.php from a different computer i get a server not found error. i have forwarded port 80 on my router to that machine and httpd is up and running. httpd always looks on port 80 by default right? do i need to make my machine specifically look for port 80?


as a side question since i already have you here... I am running sshd and vsftpd on ports 22 and 21 respectively and all is working fine but i cannot ping my machine. Why is that?

thanks in advance...

HighOrbit
02-04-2003, 12:55 PM
Do you have IPtables/firewall running locally on your linux box? It may be blocking connections.

criatura
02-04-2003, 01:11 PM
when i chkconfig --list, iptables is on in runlevel 5 (what i am in) so i would assume that means that iptables are running. what is the command to configure the iptables to allow port 80 connections? i never had to do anything like this for ftp or ssh.

z0mbix
02-04-2003, 01:12 PM
You could first of all try /sbin/service iptables stop then try to access your webserver. Then if that doesn't work, you know it's not iptables.

criatura
02-04-2003, 01:22 PM
it is the iptables, i just tried stopping them and now i can access them from a diff't machine. awesome! ok now i will search for the command to configure iptables, unless some one posts it first.

z0mbix
02-04-2003, 01:27 PM
You can use gnome-lokkit or redhat-config-securitylevel

HighOrbit
02-05-2003, 02:19 PM
Here is a help file on IPtables

http://www.justlinux.com/nhf/Security/IPtables_Basics.html