apache: how to make my index function?

Reply

Join Date: Nov 2007
Posts: 227
Reputation: k2k is an unknown quantity at this point 
Solved Threads: 0
k2k k2k is offline Offline
Posting Whiz in Training

apache: how to make my index function?

 
0
  #1
Oct 9th, 2008
I installed apache in my linux fedora 9 server. I went to the /etc/httpd/httpd.conf and i see DocumentRoot "/var/www/html"

so .. i put my index.htm file inside /var/www/html file....... and check the browser to see if i can see the webpage.... unfortunately, it is not working.

I registered a domain name through dyndns.com
I point to domain name to my server's IP
Router is configured to dhcp the same ip to my server
Apache port 80 has already been forwarded

What else should i look at to trouble shoot this? did i miss a step or something?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 563
Reputation: OlyComputers will become famous soon enough OlyComputers will become famous soon enough 
Solved Threads: 34
OlyComputers OlyComputers is offline Offline
Posting Pro

Re: apache: how to make my index function?

 
0
  #2
Oct 10th, 2008
Find the line beginging with DirectoryIndex, it should have a list of all the acceptable index files (index.html, home.html, index.shtml, index.php, ect,...). Depending on the installation package and settings it can have a dozen options, or just index.html. Make sure index.htm is on that list and manually add it if it's not.
-This post is provided without warranty, emotion, or a conscience. Hope it helps-
*I'm an egomaniac: I love reputation points*
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 227
Reputation: k2k is an unknown quantity at this point 
Solved Threads: 0
k2k k2k is offline Offline
Posting Whiz in Training

Re: apache: how to make my index function?

 
0
  #3
Oct 10th, 2008
Originally Posted by OlyComputers View Post
Find the line beginging with DirectoryIndex, it should have a list of all the acceptable index files (index.html, home.html, index.shtml, index.php, ect,...). Depending on the installation package and settings it can have a dozen options, or just index.html. Make sure index.htm is on that list and manually add it if it's not.

DirectoryIndex index.html index.html.var

for directoryIndex, if i simple added index.php and i have php installed, will it just work ? or I have to configure php ? i changed my index.htm to index.html and it is will not appearing on the broswer.... : (


Do i need to change :
# ServerName example.com:80 to my dns name? thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 563
Reputation: OlyComputers will become famous soon enough OlyComputers will become famous soon enough 
Solved Threads: 34
OlyComputers OlyComputers is offline Offline
Posting Pro

Re: apache: how to make my index function?

 
0
  #4
Oct 10th, 2008
How much configuration you would need to do in PHP really depends on the server installation and I couldn't really advice you on that without knowing what's turned on by default (by the time you know what's turned on by default you should know whether you need to configure it anyway) so just give it a try and if it doesn't work look around at the installed (and started) components.

If I remember correctly (I'm 99% sure) the # at the beginning makes it a comment and not relevant to the settings. Apache config files have examples of settings behind #s so you know the syntax. If you just copied the wrong line and the servername field is active you should be able to change it to your domain name, and I'm pretty sure that's something you SHOULD do even if it's not necessary to function.

What happens when you go to your site? Does it load a different page or generate an error (and if so which one)?

If you enter http://Domain/index.html does it load?

Are you trying to load this page through your domain name? If you are try using either your IP (local or public) or http://localhost to see if the issue is with the server or your network configuration.
-This post is provided without warranty, emotion, or a conscience. Hope it helps-
*I'm an egomaniac: I love reputation points*
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 14
Reputation: d0pedup is an unknown quantity at this point 
Solved Threads: 0
d0pedup d0pedup is offline Offline
Newbie Poster

Re: apache: how to make my index function?

 
0
  #5
Dec 2nd, 2008
Which IP address did you use.
Remember you should probably take into account NAT.
Also did you see the website when you did http://locahost
(presuming you have apache listening to localhost requests).
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 98
Reputation: slacke is an unknown quantity at this point 
Solved Threads: 7
slacke's Avatar
slacke slacke is offline Offline
Junior Poster in Training

Re: apache: how to make my index function?

 
0
  #6
Dec 4th, 2008
What about log files.
I don't exactly know where fedora stores them, but it should be somewhere in /var/log.
I have /var/log/httpd and error_log where I see if there is some error in my apache configuration.

I have access_logs too, these contains access informations for each VirtualHost on my apache server.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the *nix Software Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC