website is not loading
Hi
I have done the following 1) Changed ssh port 2) disabled root login through ssh 3) Installed few firewalls 4) block everything in iptables except 80,8080 and ssh port 5) Finally installed apache php mysql and phpmyadmin Started the services but when hitting the ipaddress in the browser, i don't see any output :( I have just added a index.html in /var/www/html/index.html |
what would ssh have to do with apache? you need to appreciate what is and what is not relevant here.
is apache running? What does "any output" mean? clearly *something* must happen. where are you browsing from? can you ping the box? etc.? |
SSH has nothing to do. I just wanted to tell whatever i did in the order.
httpd is running I guess, I should have missed some settings or something should be blocking 80. I am not able to find those things When i type the ip address in the url (domain is not configured to nameservers right now) I am getting the following Quote:
Quote:
Additionally, /etc/hosts Quote:
|
so what are your iptables rules? does netstat show apache is listening? can you telnet to the port from your client? can you connect from the server itself?
|
Quote:
is that normal? |
Iptable rules
Quote:
Quote:
Quote:
Quote:
I don't have telnet in server, bash: telnet: command not found |
I just stopped iptables and it is working.
What could be the reason? Is someother port needed except 80? How do i delete all the iptables rules to create new rules freshly? |
I don't know what the reason is, as you've not shown me the actual rules, just your additions.
iptables -Lnv What distro is this on? |
I have restarted IPTables now
iptables -Lnv iptables: No chain/target/match by that name. |
Quote:
Code:
# iptables -D input i eth0 -p tcp --dport 80 -j accept Code:
# iptables -A INPUT -i eth0 -d 192.168.0.0/24 -p tcp --dport 80 -j ACCEPT |
well as you've stopped iptables there are no rules to show... start it again.
|
Server is down. I will update soon.
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
I am using CentOS 6
|
Post the output of:
Quote:
|
All times are GMT -5. The time now is 01:18 PM. |