The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Debian
.
google unix.com



Debian Debian GNU/Linux is a free distribution of the GNU/Linux operating system.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem in apache naw_deepak Red Hat 3 10-25-2008 04:58 AM
Apache 2.2 problem mjdousti UNIX for Dummies Questions & Answers 6 12-21-2007 11:21 PM
Apache with SSL problem b_manu78 SUN Solaris 2 03-23-2005 06:13 PM
Problem loading php.mod on apache 2.0 moxxx68 UNIX for Advanced & Expert Users 2 01-07-2005 11:12 PM
apache-ssl https-problem? loitschix UNIX for Dummies Questions & Answers 1 07-23-2001 01:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-25-2008
k2k k2k is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 22
apache problem

hi all,
I can't get my index.html to display on the web browser. Please point it out the reason.

this is what i had done so far:
1. I have registered a dns name pointing to my public ip (it is done automatic)
2. my server name is set same as the dns name
3. I have configured httpd.conf like this
ServerName http://xsoldier2006.dnsdojo.org // my dns name
DocumentRoot "/var/www/html" // i place my index.html in /var/www/html
DirectoryIndex index.html index.html.var
HostnameLookups off
4. I have my index.html in the /var/www/html folder

what else should i do? did i miss a step? why it is not on the browser? thanks
  #2 (permalink)  
Old 10-25-2008
glen.barber glen.barber is offline
Registered User
  
 

Join Date: May 2008
Location: Philadelphia, PA, USA
Posts: 117
Quote:
Originally Posted by k2k View Post
hi all,
I can't get my index.html to display on the web browser. Please point it out the reason.
What operating system? What does your apache error log say?

Quote:
this is what i had done so far:
1. I have registered a dns name pointing to my public ip (it is done automatic)
2. my server name is set same as the dns name
3. I have configured httpd.conf like this
ServerName http://xsoldier2006.dnsdojo.org // my dns name
DocumentRoot "/var/www/html" // i place my index.html in /var/www/html
DirectoryIndex index.html index.html.var
HostnameLookups off
The ServerName option does not take 'http://'. Just the hostname of the machine. Generally output from
Code:
/bin/hostname
Make sure your /etc/hosts file matches what you put here.

Quote:
4. I have my index.html in the /var/www/html folder

what else should i do? did i miss a step? why it is not on the browser? thanks
Also, does your ISP block port 80? You can check at Open Port Check Tool .

Last edited by glen.barber; 10-25-2008 at 11:56 PM..
  #3 (permalink)  
Old 10-26-2008
k2k k2k is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 22
hi, glen.barber . I am using fedora9. and error_log has this:
"error_log" 7L, 745C
[Fri Oct 24 13:24:51 2008] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Fri Oct 24 13:24:51 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Oct 24 13:24:51 2008] [notice] Digest: generating secret for digest authentication ...
[Fri Oct 24 13:24:51 2008] [notice] Digest: done
[Fri Oct 24 13:24:51 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Fri Oct 24 13:24:51 2008] [notice] mod_python: using mutex_directory /tmp
[Fri Oct 24 13:24:51 2008] [notice] Apache/2.2.9 (Unix) DAV/2 PHP/5.2.6 mod_python/3.3.1 Python/2.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.3 Perl/v5.10.0 configured -- resuming normal operations

should i disable seLinux??

this is the message generated from Open Port Check Tool
Error: I could not see your service on port (80)
Reason: Connection timed out

so that means port 80 is blocked by my ISP? ..... i'll look into noip.com

Any more suggestion? thanks a lot for the input.
  #4 (permalink)  
Old 10-27-2008
jacco jacco is offline
Registered User
  
 

Join Date: May 2008
Posts: 15
First look if your server is listening to port 80
Quote:
# netstat -an | grep ':80' | grep 'LISTEN'
If your server is placed behind a router/firewall: is port 80 forwarded (destination-NAT) to port 80 on your server?

Run tcpdump on your server to see if any connection is made
Quote:
# tcpdump port 80
While running tcpdump try to make a connection from the internet to your webserver. If there is no output, the webserver is not reachable from the internet caused by portblocking, port-80 not being forwarded or something like that.
  #5 (permalink)  
Old 10-27-2008
glen.barber glen.barber is offline
Registered User
  
 

Join Date: May 2008
Location: Philadelphia, PA, USA
Posts: 117
Quote:
Originally Posted by k2k View Post
hi, glen.barber . I am using fedora9. and error_log has this:
"error_log" 7L, 745C
[Fri Oct 24 13:24:51 2008] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Fri Oct 24 13:24:51 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Oct 24 13:24:51 2008] [notice] Digest: generating secret for digest authentication ...
[Fri Oct 24 13:24:51 2008] [notice] Digest: done
[Fri Oct 24 13:24:51 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Fri Oct 24 13:24:51 2008] [notice] mod_python: using mutex_directory /tmp
[Fri Oct 24 13:24:51 2008] [notice] Apache/2.2.9 (Unix) DAV/2 PHP/5.2.6 mod_python/3.3.1 Python/2.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.3 Perl/v5.10.0 configured -- resuming normal operations
If you're in front of the machine, open 127.0.0.1 in your browser. If apache is not running, you will get an error. If you're on the same LAN, open the host's IP in a local client's browser.

Quote:
should i disable seLinux??
This should not be necessary.
Quote:
this is the message generated from Open Port Check Tool
Error: I could not see your service on port (80)
Reason: Connection timed out

so that means port 80 is blocked by my ISP? ..... i'll look into noip.com
No-ip won't help you with port 80 being blocked. At best, you can have apache listen on an alternate port.

Regards.

Last edited by glen.barber; 10-27-2008 at 11:11 AM.. Reason: Fixed broken 'wiki' formatting.
  #6 (permalink)  
Old 10-27-2008
csorhand csorhand is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 81
K2k,

Just to isolate the issue please disable the selinux for the meantime.
If your httpd is running the port 80 is open or any port you configure at your web server.
  #7 (permalink)  
Old 10-28-2008
glen.barber glen.barber is offline
Registered User
  
 

Join Date: May 2008
Location: Philadelphia, PA, USA
Posts: 117
I don't believe SeLinux to be the problem here. I think he's trying to access his site using his registered domain name, and because port 80 is blocked by his ISP, it is not connecting.

This is why I want him to try to access the page from inside his LAN if possible.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0