apache problem


 
Thread Tools Search this Thread
Operating Systems Linux Debian apache problem
# 1  
Old 10-25-2008
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  
Old 10-26-2008
Quote:
Originally Posted by k2k
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-26-2008 at 12:56 AM..
# 3  
Old 10-26-2008
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  
Old 10-27-2008
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  
Old 10-27-2008
Quote:
Originally Posted by k2k
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 12:11 PM.. Reason: Fixed broken 'wiki' formatting.
# 6  
Old 10-27-2008
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  
Old 10-28-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Problem Installing Apache from rpm

I am attempting to install an rpm of Apache from perzl.org on an AIX 6100-07-03-1207 server and it is failing. I think I have all of the dependencies installed. Can anyone help? Any help would be appreciated. It fails with the following error: # rpm -Uvh httpd-2.4.2-2.aix5.1.ppc.rpm ... (3 Replies)
Discussion started by: lbholde
3 Replies

2. IP Networking

dns problem in apache

Hi, I am running scientific linux (which is clone of red hat linux) on virtual machine that is virtual box. I tried to start the apache but I got the following message. starting httpd: httpd: arp_sockaddr_info_get() failed for scientific-linux httpd: could not reliably determine the... (2 Replies)
Discussion started by: programAngel
2 Replies

3. UNIX for Dummies Questions & Answers

Problem with Restricting Directory in Apache

Hello, I want to restrict access to our Subversion repositories to only our internal network. I have a virtual host directive setup in Apache for the IP and port 443. When I put the following: <Directory "/var/www/svn/"> Order allow,deny AllowOverride None Allow from 10.5.10.0/24 Allow... (1 Reply)
Discussion started by: mojoman
1 Replies

4. Solaris

problem compiling apache on solaris

Hi I'm trying to install apache 2.2.14 on Solaris with Openssl. I'm using following configure options: ./configure --prefix=/usr/local/apache2 --enable-ssl --enable-module=so --enable-proxy=shared --enable-proxy-http=shared --enable-proxy-ajp=shared --with-ssl=/usr/local/openssl ... (3 Replies)
Discussion started by: Aelfric
3 Replies

5. Web Development

Problem setting up apache

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use : http://localhost:8022/ in my browser. The problem is that I wanted to be able to acces it from somewere else through the internet. I read some instruction and help sites related to this problem, like :... (2 Replies)
Discussion started by: spiriad
2 Replies

6. UNIX and Linux Applications

Apache problem: mod_deflate with mod_proxy

I am using Apache 2.2.3 on RHEL5 and having problems to get mod_deflate work with mod_proxy. mod_deflate will compress files by mime-type just fine as long as those files are served statically from the local server. However, files served via dynamic php application (ie, MediaWiki) or via... (2 Replies)
Discussion started by: otheus
2 Replies

7. Red Hat

Problem in apache

Can anyone guide, what should be the entry in httpd.conf file to host a site in Redhat Ent Linux 5 without using nameserver? Or process to set apache server in same dist of Linux. Any link to understand apache well will be much appreciable. (3 Replies)
Discussion started by: naw_deepak
3 Replies

8. UNIX for Dummies Questions & Answers

Apache 2.2 problem

Hi all, I'm a user of Debian 4.0. I installed apache 2.2 and add the functionality to support ~/public_html for each user. This is the permission of my public_html: drwxr-xr-x 4 mj test 4096 2007-12-20 20:17 public_html When I wanted to go through it and list the directory via my browser,... (6 Replies)
Discussion started by: mjdousti
6 Replies

9. Solaris

Apache start problem

Hi, I have installed apache webserver on my solaris 10(x86). When I tried to start the server it gives following error, ld.so.1: /usr/local/apache2/bin/httpd: fatal: libssl.so.0.9.8: open failed: No such file or directory Killedld.so.1:: Too many arguments Can somebody please guide me how... (1 Reply)
Discussion started by: maheshsri
1 Replies

10. Solaris

Apache with SSL problem

Hi All, I'm attempting to build Apache 1.3.27 on a new Solaris 9 system. I am using following "Option 2" in the INSTALL of the mod_ssl-2.8.12-1.3.27, and I'm stumped. After I configure and make all the required components the make of the Apache server itself stops at: flex... (2 Replies)
Discussion started by: b_manu78
2 Replies
Login or Register to Ask a Question