[PHP] silly question - setting .php as default extension (Apache)
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] silly question - setting .php as default extension (Apache)
Brian A. Anderson wrote: 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. DirectoryIndex index.html index.php ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] silly question - setting .php as default extension (Apache)
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] silly question - setting .php as default extension (Apache)
Coolbeans guys! :) Thanks, -Brian - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Brian A. Anderson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:07 PM Subject: Re: [PHP] silly question - setting .php as default extension (Apache) Brian A. Anderson wrote: 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. DirectoryIndex index.html index.php ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] silly question - setting .php as default extension (Apache)
On Tuesday 09 November 2004 16:04, Brian A. Anderson wrote: 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 Your probably looking for the DirectoryIndex directive. Apache 1.3.x http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex Apache 2.0.x http://httpd.apache.org/docs-2.0/mod/mod_dir.html#directoryindex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php