Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-24-2005, 12:27 AM   #1
LQ Newbie
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
help with testing a website on a linux box from a standerd pc in a browser

I set up a linux box (fedora core 4) so that i can test out webpages before i put them on my real webserver outside of my local lan. I want to be able to load a page on a normal pc that is located on the linux box over the network in a standerd web browser. I have tried the way i would with windows based machines by just typeing in the network address according to the name of the linux box but it won't load. The name that comes up for the linux box is local host 3 but i never chose that to be the acct or username. So i am wondering where that came from but more importantly how to view a page that is currently on a linux box from a pc in the lan. Thanks to whoever can help.

Old 10-24-2005, 01:37 AM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Forget about "localhost3" or anything like that; that won't do you any good.

First, make sure your web server is properly configured and running. Most default installs of Apache will come with sane configurations to accomplish what you want. To verify the web server is actually running, type the following at a command prompt:
ps -aux | grep httpd
You should see at least one line ending with "httpd" (not counting the copy of "grep httpd" that may appear). If you don't see the "httpd" entry, then your webserver isn't running. You'll need to start it up before the linux box can serve web pages. To do so, you can run the following command as root:
apachectl start
If your web server is running, then try to connect by referring to the linux machine's IP address. To find out your machine's IP address, execute the following command as root:
ifconfig eth0 | grep "inet addr" | cut -f 2 -d: | cut -f 1 -d ' '
Replace "eth0" with the appropriate network interface. If you're not sure what that means, then eth0 is probably what you want. Then try connecting with:

But replace the IP address in blue with the output of the ifconfig command above.

If you still can't connect, then check two things:

1. Do you have web pages in the proper place?
Web pages in FC4 are stored in /var/www/html

2. Do you have a firewall blocking web access?
Execute the following command as root:
In the window that pops up, make sure there is a checkmark next to "WWW (HTTP)"

If all of the stuff I mentioned above appears to be correct, then you have a non-standard problem. The first place I would look is your Apache configuration file. You'll probably have to do some reading to understand what configuration options are available and how to interpret what your current configuration is doing.

Last edited by Dark_Helmet; 10-24-2005 at 01:40 AM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a Linux Browser I can't access Website Echo Kilo Linux - Software 13 12-05-2004 08:21 PM
Website testing with Apache BinaryLinux Linux - Software 5 08-19-2004 05:45 PM
limit browser to one website tarheel92x Linux - Security 1 04-26-2004 05:19 PM
Problems with Linux Browser opening Website dolphans1 Mandriva 8 10-28-2003 07:50 PM
what IRC client and Browser are you using in your linux box? kublador Linux - General 23 02-25-2003 07:47 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:10 PM.

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