LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2009, 05:48 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
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?
 
Old 02-16-2009, 06:03 AM   #2
greeneagle
Member
 
Registered: Dec 2004
Location: Dublin Ireland via Cobh, Limerick.
Distribution: RedHat, Suse, Ubuntu.
Posts: 33

Rep: Reputation: 16
Anything in apache error or access logs?
 
Old 02-16-2009, 06:23 AM   #3
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
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?
 
Old 02-16-2009, 06:26 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
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.

Last edited by your_shadow03; 02-16-2009 at 06:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can ping web page from telnet, but can't open it in web browser a.ilic Linux - Networking 1 04-01-2008 10:29 AM
LXer: Backing up your MySQL database using your web browser and a PHP script LXer Syndicated Linux News 0 04-21-2007 10:16 PM
What must I do when I want to run PHP on Web browser ? manhcuong Linux - Software 1 12-06-2005 03:25 AM
cron issue, php script runs fine in browser and cli dtra Linux - Software 1 07-15-2005 05:45 AM
browser plugin for Konqueror web browser (linspire) Tracianddwayne Linux - Newbie 1 01-01-2005 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration