LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Web browser display issue with PHP? (http://www.linuxquestions.org/questions/linux-server-73/web-browser-display-issue-with-php-705006/)

your_shadow03 02-16-2009 06:48 AM

Web browser display issue with PHP?
 
I have installed Fedora 10 freshly.I edited the virtulHost line as:
[code]
<VirtualHost *:80>
ServerName asklinux.com
ServerAdmin root
Document /var/www/html
</VirtualHost>
Restarted the apache.
I created a page index.php under /var/www/html and can see the output
http://asklinux.com/index.php.
I was connected to internet earlier.I edited /etc/hosts file too :
Code:

127.0.0.1  asklinux.com localhost.localdomain localhost
The moment I disconnected internet.
I was not able to open the same page.
I wondered if it has issue with asklinux.com.So What I did is: removed the asklinux.com entry from /etc/hosts.And tried restarting the apache service.
To my surprise, it dint come up.
Any idea why its behaving so?

greeneagle 02-16-2009 07:03 AM

Anything in apache error or access logs?

sleddog 02-16-2009 07:23 AM

Is Apache listening on 127.0.0.1? Look for the "Listen" line in httpd.conf.

Are you browsing on the same computer as Apache is installed, or from a seperate machine?

your_shadow03 02-16-2009 07:26 AM

I have only one Dell Laptop I am working on?
Surprisingly when i run
Code:

#ifconfig
It shows me 192.168.0.1 IP retreived from my ISP.


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