LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2002, 05:37 PM   #1
lee
LQ Newbie
 
Registered: Oct 2002
Posts: 5

Rep: Reputation: 0
Question Need Help w/ HTTPD


I have configured httpd on my RH7.3 Linux box, but whenever i try to check the URL "http://192.168.210.148/" of my server, the error says "Page can not be found".

Here's the httpd.conf settings

Servername 192.168.210.148
Documentroot /var/www/html

- under html directory i have an index.html file w/ 755 permission

tried executing "apachectl configtest" to check syntax of httpd.conf and resulted "Syntax OK"

service httpd restart - resulted OK

I don't know where to look now and I hope you could help me.

Thanks,
Lee
 
Old 10-15-2002, 08:03 PM   #2
bah
Member
 
Registered: Apr 2001
Posts: 38

Rep: Reputation: 15
Try looking at the apache logs. I think on redhat these are found in the /var/log/httpd directory (from memory).

Make sure that the directory /var/www/html is read and executable by the user that apache is running as. You can check in your httpd.conf file whether apache is set up to switch to a non-privileged user after startup.

The index.html file just needs to be readable by the user that apache is running as (which it will be if the perms are 755, but you might want to tighten up the perms later).
 
Old 10-16-2002, 01:52 AM   #3
lee
LQ Newbie
 
Registered: Oct 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks bah for your response!

Here's the messages on the error_log: Nothing on the rest of the files.

[Tue Oct 15 17:34:23 2002] [notice] Apache/1.3.23 (Unix) (Red-Hat/Linux) mod_ssl/2.8.7 OpenSSL/0.9.6b DAV/1.0.3 PHP/4.1.2 mod_perl/1.26 configured -- resuming normal operations
[Tue Oct 15 17:34:23 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Oct 15 17:34:23 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)

/var/www/html - is read and executable with "root"

How do I do this? "Check in your httpd.conf file whether apache is set up to switch to a non-privileged user after startup"
 
Old 10-16-2002, 02:30 AM   #4
lee
LQ Newbie
 
Registered: Oct 2002
Posts: 5

Original Poster
Rep: Reputation: 0
i got the "user" settings. i created a user
User <username>

I'll check the website tomorrow. Thanks!
 
Old 10-16-2002, 04:27 AM   #5
bah
Member
 
Registered: Apr 2001
Posts: 38

Rep: Reputation: 15
OK, You should be seeing access messages in your access_log file... messages like the following:

127.0.0.1 - - [01/Jul/2002:10:04:05 +1000] "GET / HTTP/1.0" 404 281

If you don't see these messages, it might mean that your attempt to connect from your browser to IP 192.168.210.148 isn't going to where you think it is going. Try firing up a browser on the server itself (if you aren't running X, then maybe use lynx, links or even wget). See if you can see a web page if you direct your browser to http://127.0.0.1/
 
  


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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
httpd again... lkalman Linux - Software 1 07-06-2003 06:05 PM
httpd-2.0.43-1 pk21 Linux - Software 3 02-20-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:35 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