LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2003, 03:36 PM   #1
chief
Member
 
Registered: Jul 2003
Distribution: rh9 : PII 350 : 194 mb ram : TNT2 32mb || xppro : xp2400 : 1 gb 2700 ddr : gf4ti 4200
Posts: 37

Rep: Reputation: 15
webserver setup problems


i have redhat 9; i installed the web server package with apache and the appropriate packages. i have turned on the service. i have put an index.htm file in the var/www and var/www/html folders

but i still can not access the index page from inside my local network. i put in the local ip address of the webserver 192.168.200.40 in ie and the "Page cannot be displayed" error comes up

is there something i am missing?
 
Old 11-12-2003, 03:46 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What error did you get allong with "Page cannot be displayed"? time out? 403? 404?
 
Old 11-12-2003, 05:26 PM   #3
todesengel
Member
 
Registered: Sep 2003
Distribution: Slackware 10.0
Posts: 54

Rep: Reputation: 15
Have you edited the Apache config file? When you enter in to your browser http://[ip here]/index.htm, does anything come up? Have you tried restarting Apache since you put the file there?
 
Old 11-12-2003, 05:43 PM   #4
Redbone981sl
Member
 
Registered: Jul 2003
Posts: 73

Rep: Reputation: 15
Try 192.168.200.40:80 HTH
 
Old 11-13-2003, 08:09 AM   #5
chief
Member
 
Registered: Jul 2003
Distribution: rh9 : PII 350 : 194 mb ram : TNT2 32mb || xppro : xp2400 : 1 gb 2700 ddr : gf4ti 4200
Posts: 37

Original Poster
Rep: Reputation: 15
i tried:

192.168.200.40:80
192.168.200.40/index.htm

still nothing

i used the apache config app and viewed the current settings but didn't change anything

are there any changes that have to made?
 
Old 11-13-2003, 08:12 AM   #6
chief
Member
 
Registered: Jul 2003
Distribution: rh9 : PII 350 : 194 mb ram : TNT2 32mb || xppro : xp2400 : 1 gb 2700 ddr : gf4ti 4200
Posts: 37

Original Poster
Rep: Reputation: 15
if i put localhost in mozilla it pulls up an apache test page

i have been trying to access it from a networked machine

any ideas why it wouldn't work?
 
Old 11-13-2003, 12:06 PM   #7
fyoder
Member
 
Registered: Nov 2003
Posts: 111

Rep: Reputation: 15
I don't use redhat so don't know the specifics of it. However the configuration file, httpd.conf , has to be there somewhere. If you haven't already, try looking through it. I don't think apache refuses remote connections by default but it can be configured to, and distros sometimes change defaults to what they think is best. Can't hurt to have a look.
 
Old 11-16-2003, 02:01 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Check your firewall rules:
iptables -L

And that apache is listening on all interfaces:
netstat -nlp
 
Old 11-16-2003, 04:04 PM   #9
fearofcarpet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: Gentoo, FC4, FreeBSD
Posts: 34

Rep: Reputation: 15
Make sure your /etc/hosts file is setup correctly. I went round-and-round with Apache in RH9 with almost the same problems you're having. My hostname had to resolve to localhost, but the hostname.domainname had to resolve to the external IP address or I got 404 from anywhere outside "localhost"... Whatever hostname.domainname you use should also be present in the apache config.

I also remember the situating changing with Apache verision. that is, with the old verision the whole host.domainname had to resolve to localhost, but that broke Apache completely after an upgrade.

Sorry I'm spotty with the details, but it was a while ago and I don't have the hosts file handy to see what I ultimately did... Hope this helps though.
 
  


Reply



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 someone help me setup webserver? kuplo Linux - Software 2 11-05-2005 06:24 PM
setup webserver w/o rpm ziggie216 Linux - Software 2 05-24-2004 10:30 PM
How can i setup webserver in linux?? polopolo Linux - Newbie 7 03-26-2004 06:54 AM
Trying to setup a secure webserver pyrombca Linux - Software 0 09-02-2003 05:04 PM
Webserver Setup bytebrowser Linux - Networking 6 06-21-2003 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:54 AM.

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