LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache server with Static ip is not working (https://www.linuxquestions.org/questions/linux-newbie-8/apache-server-with-static-ip-is-not-working-4175425883/)

piyushsingh 09-06-2012 02:13 AM

Apache server with Static ip is not working
 
hii ;;
guys
i have installed rhel 5 and imade an apcheserver which can be accesd localy and when i want it to be accessd globaly with my mtnl static ip...is not woking..i am able to ping www.google.com but when i open firefox it just loading and loding ...my network configuration is
bootproto=dhcp
and i also checked /etc/resolv.conf
it is right as given by isp....
and also when i just want to check my apche server localy on firefox it shows same loading...
guysss plz help me out...
i am in big trouble

KinnowGrower 09-06-2012 08:56 PM

Quote:

i have installed rhel 5 and imade an apcheserver which can be accesd localy and when i want it to be accessd globaly with my mtnl static ip...is not woking
From above it seems it is working locally

Quote:

and also when i just want to check my apche server localy on firefox it shows same loading...
From above it seems it is not working locally

What, it is exactely, Is it accessible locally or not accessible locally? explain please?

Also check the Apache log ( may be /var/log/apache2/error.log) for error log

KinnowGrower 09-06-2012 09:01 PM

Also, always check the spellings, what you type. it is Apache NOT apche. To get quick response make it more clear as well.

piyushsingh 09-07-2012 01:09 AM

Apache server with static ip
 
sryyy for spell mistakes....

Apache server is working localy ..ok and i am using oracle enterprises linux 5.3.
when i am going to boot my pc with dhcp as i told ihave static ip of MTNL ...then even if i want to open my local apache server as localhost.localdomain in firefox then firefox is just loading and loading..and the output of elinks is also making connection....i have checked vi /etc/sysconfig/network-scripts/ifcfg-eth0 all are coorrect..nd /etc/resolv.conf is also correct...
and as i told i am able to ping www.google.com
sir i dont understand why i cant open google in firefox whether it is pinging in terminal.....
plzzz help me to make an Apache server with static ip...
thanks for showing interest...

KinnowGrower 09-08-2012 09:04 AM

Quote:

Originally Posted by piyushsingh (Post 4774736)
sryyy for spell mistakes....

Apache server is working localy ..ok and i am using oracle enterprises linux 5.3.
when i am going to boot my pc with dhcp as i told ihave static ip of MTNL ...then even if i want to open my local apache server as localhost.localdomain in firefox then firefox is just loading and loading..and the output of elinks is also making connection....i have checked vi /etc/sysconfig/network-scripts/ifcfg-eth0 all are coorrect..nd /etc/resolv.conf is also correct...
and as i told i am able to ping www.google.com
sir i dont understand why i cant open google in firefox whether it is pinging in terminal.....
plzzz help me to make an Apache server with static ip...
thanks for showing interest...

Again there are many spelling mistakes. You are using words like 'sryyy' instead of sorry, 'spell' instead of 'spelling', 'localy' instead of 'locally'. ihave instead of 'I have'. Lots of folks here don't know what is MTNL. You should say your ISP. "Correct" should be spelled as "correct" NOT 'coorect' and it should be 'and' not '..nd'. Finally 'plzzz' is 'please'

I am not here to check your English proficiency. Neither me is perfect in English. But from all above it seems you are not putting serious efforts to get solve your issue. Everybody is getting the impression that, you are not serious to get help. For your information, when you type something misspell, it gives RED LINE under that misspell word. So please take some time to correct it.

Let go to the original problem . From all it seems you are trying to do everything on single computer. It is directly attached to ISP (MTNL) getting DHCP. You are running Apache on it. You have are trying to open the Web link in Firefox locally. But it is keep on loading. So now my questions/suggestions are..

1. If you have different setup try to draw network here, if you can't explain
2. Are you sure Apache is configured to run automatically after reboot. Also check with command "netstat -natup" that it is running on correct port (port 80)
3. Did you tried with IP address

Good luck


All times are GMT -5. The time now is 02:22 PM.