LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2003, 09:28 AM   #1
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Rep: Reputation: 0
web server


Hello everyone. I am trying to set up a webserver on my redhat 8.0 box. I have compiled Apache, and a firewall to override the defult settings(the tool that came with the install was buggy). I have port open, yet I still can not connect through a web browser. On linux the error i get is "connection refused by *ip here* ". On windows Its is a simple host not found. I have pinged from other computers, and the box is live. So as you can see I am at a loss here. I have tried eveything I can think of, but with no answer. Any help would be great. Thank you. Also, I have a static ip, if that helps in any way.
 
Old 05-28-2003, 09:48 AM   #2
trusouthrnplaya
Member
 
Registered: Jun 2001
Location: (Cashville) Nashville, TN
Distribution: CentOS 4.0, Slackware 10.2,
Posts: 223

Rep: Reputation: 30
Have u set ur DNS servers? If u can ping an ip addy and not the name (www.yahoo.com) u haven't specified dns server ip's
 
Old 05-28-2003, 09:57 AM   #3
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
We are not setting up a domain. I could see what you mean though. We simply want to get it viewable before we work on the domain set up. So we are trying to access the page by ip. Also, I ran nmap through the terminal, to see if port 80 was open, and it says it is not. This is odd, because firestarter says it is. I think something is wrong with the sercuity level, and that for some odd reason I cannot open that port.
 
Old 05-28-2003, 10:58 AM   #4
gdrobson
Member
 
Registered: Jun 2002
Location: Ontario, Canada
Distribution: RH8.0
Posts: 65

Rep: Reputation: 15
On the machine that is running the webserver you should be able to view http://127.0.0.1 or http://localhost that is assuming you have a gui to work with on that box.

If not you might not have the server running, try

"apachectl start"

and see if there are any error messages, the httpd.conf may need to be edited if there are errors or if it says that the process is already running, then disable your firewall to see if its the problem.
 
Old 05-28-2003, 11:44 AM   #5
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
OK that help in a way. I can now see the test page, saying that it is up and running. Now when I say I can see it, I mean myself on the computer that is the server. I am reaching it from the ip, not localhost. Also port 80 is open, finaly. As for outside this box, no one can view it. I think it might be a problem with the DNS configuring, only because i am not farmilair with it. I said to put in the ip, if i didnt have an name. So I put in the box's ip. Also, a minor problem is that the directory wont change, i looked in the error logs, and it says that "directory index is forbidden by rule." So i changed it 4 times, in different places. Still, same error. Thanks to those helping.
 
Old 05-28-2003, 12:09 PM   #6
gdrobson
Member
 
Registered: Jun 2002
Location: Ontario, Canada
Distribution: RH8.0
Posts: 65

Rep: Reputation: 15
Make sure the user/group that is set in httpd.conf has access to the web directory

User apache
Group apache
 
Old 05-28-2003, 01:19 PM   #7
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
can you explain better? I have made a user/group both named html. The Directory is in home/html/. So this should be working, right?
 
Old 05-28-2003, 01:26 PM   #8
gdrobson
Member
 
Registered: Jun 2002
Location: Ontario, Canada
Distribution: RH8.0
Posts: 65

Rep: Reputation: 15
If you goto the /home/ directory and type "ls -l"

and you see :

drwxr-xr-x html html 4096 <date> html

in the listing then yes it should work.
 
Old 05-28-2003, 01:32 PM   #9
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
drwx------ 3 html html 4096 May 28 13:22 html

that is what i got, and this is what i got in the error log:

[error] [client 192.168.1.6] Directory index forbidden by rule: /home/html/webdocs/
 
Old 05-28-2003, 02:47 PM   #10
gdrobson
Member
 
Registered: Jun 2002
Location: Ontario, Canada
Distribution: RH8.0
Posts: 65

Rep: Reputation: 15
permissions are as follows

user group world
rwx --- ---

should be
rwx r-x r-x

for a web directory, it has to be world readable and executable as well to enter subdirectories

"chmod 755 /home/html "

should do the trick.
 
Old 05-30-2003, 08:23 AM   #11
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
I did all you said, and i am still getting this error:

error] [client 192.168.1.6] Directory index forbidden by rule: /home/html/web/
 
Old 05-30-2003, 11:19 AM   #12
gdrobson
Member
 
Registered: Jun 2002
Location: Ontario, Canada
Distribution: RH8.0
Posts: 65

Rep: Reputation: 15
I'm at a loss then, you can try

"chmod 755 /home/html -R"

the -R option make it recursive to set all sub directories and files to have the same permissions .
 
  


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
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 11:30 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 07:21 AM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 10:50 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 03:38 AM


All times are GMT -5. The time now is 09:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration