Reply to Re: How do I get index.php to be automatcially recognized by Apache?

Your name:

Reply:


Posted by Michael Winter on 10/07/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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация