Re: changes in php.ini

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hope wrote:
Hi all

Whenever I create a site
and create a index.php file as my home page.

Whenever i run it a http://localhost/myproject/


it says Page cannot be found

However if I have index.html file it displays.

SOmebody told me that i need to make changes to php.ini

bt where and what to change there.

You don't need to change php.ini, you need to configure your server (is it Apache?) to display index.php files as the DirectoryIndex. If it is Apache, then either insert the following line in the relevant part of httpd.conf for that virtual host/directory, or put it in an .htaccess file in the root of your web application:

DirectoryIndex index.php

Jasper

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux