View Full Version : Apache question
Scrowler
10-31-2003, 05:32 AM
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?
Spookster
10-31-2003, 06:27 AM
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.
Scrowler
10-31-2003, 07:53 AM
Thank you very much. Problem solved.
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.