Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2003, 04:32 AM   PM User | #1
Scrowler
Regular Coder

 
Join Date: Jul 2003
Location: New Zealand
Posts: 435
Thanks: 1
Thanked 0 Times in 0 Posts
Scrowler is an unknown quantity at this point
Apache question

how do i set the index file in apache to a .php file ? when i goto localhost it just says access denied but when i goto localhost/index.php it works... is it part of php.ini or httpd.conf?
Scrowler is offline   Reply With Quote
Old 10-31-2003, 05:27 AM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
In your httpd.conf file you should have this section. If not then put it in.

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.php3
</IfModule>

And when you make any changes make sure you restart Apache.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 10-31-2003, 06:53 AM   PM User | #3
Scrowler
Regular Coder

 
Join Date: Jul 2003
Location: New Zealand
Posts: 435
Thanks: 1
Thanked 0 Times in 0 Posts
Scrowler is an unknown quantity at this point
Thank you very much. Problem solved.
Scrowler is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

Forum Jump


All times are GMT +1. The time now is 08:47 AM.


Advertisement
Log in to turn off these ads.