RE: [PHP] silly question - setting .php as default extension (Apache)
| From: | Graham Cossey | Date: | Tue, 09 Nov 2004 22:15:14 +0000 |
| Subject: | RE: [PHP] silly question - setting .php as default extension (Apache) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201642@lists.php.net to get a copy of this message | ||
>
> Uuuuh... Where do I set the default server extension type to .php in the
> apache config? Right now the page will execute on my server, but
> if there is
> an index.php the server won't automatically open it, but instead
> browses the
> directory.
>
> Thanks in advance,
>
> -Brian
Look for DirectoryIndex in httpd.conf and add index.php
OR
On my Apache2/Linux installation I had to uncomment a line in :
/etc/httpd/conf.d/php.conf