|  | Posted by Michael Winter on 06/17/70 11:20 
On 04/07/2005 00:26, kurtk@pobox.com wrote:
 > I have install Apache and php5. I can execute php with no problem.
 > However, I would like index.php to be recognized and executed the way
 > that index.html is.
 
 You need to modify the configuration for the server. Find and open
 httpd.conf in your favourite text editor and search for the
 DirectoryIndex directive. It should look something like:
 
 DirectoryIndex index.html index.html.var
 
 You will need to modify that directive to include index.php. For example:
 
 DirectoryIndex index.php index.html index.html.var
 
 This means that if a request is made without a filename, the server will
 first search for index.php, then index.html, and finally index.html.var.
 
 [snip]
 
 > Is that an .htaccess change of some sort?
 
 The DirectoryIndex directive can be set in a .htaccess file if really
 necessary. However, if this is a local installation of Apache (for
 testing, perhaps), then you may as well modify the server-wide settings.
 
 Mike
 
 --
 Michael Winter
 Prefix subject with [News] before replying by e-mail.
  Navigation: [Reply to this message] |