Previous Next

Thread: php as a default ducoment

Last post 08-18-2008 7:13 PM by sinbadkan. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 08-16-2008, 11:18 PM

    php as a default ducoment

     Hi All

    On IIS 7,  php is running very will , but IIS 7 will not accept index.php   as a default  document .whilst  it is already registered as a default document >

     

    where is the error ???

     

    thanx   

     

     

  • 08-17-2008, 12:12 AM In reply to

    Re: php as a default ducoment

    From an elevated command prompt what does this give you?

    appcmd list config /section:defaultDocument

     

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 08-17-2008, 2:02 PM In reply to

    Re: php as a default ducoment

    It is already there :)

     

    <defaultDocument enabled="true">
      <files>
        <add value="index.php" />
        <add value="Default.htm" />
        <add value="Default.asp" />
        <add value="index.htm" />
        <add value="index.html" />
        <add value="iisstart.htm" />
        <add value="default.aspx" />
      </files>
    </defaultDocument>

  • 08-18-2008, 3:31 AM In reply to

    Re: php as a default ducoment

    If the page doesnt come up ... what happens?? any error ??

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 08-18-2008, 2:31 PM In reply to

    Re: php as a default ducoment

     no error !!!!!!!!!!!!!!!!!!!!!

     

    The log file also clean.....no errors

  • 08-18-2008, 4:05 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 9:13 PM
    • Redmond, WA
    • Posts 165

    Re: php as a default ducoment

    I configured index.php as my default document. Running appcmd list config /section:defaultDocument returns the same exact(order) list as in one of the previous post on this thread. My index.php is a simple helloworld - <?php echo'hello world' ?> . In my case it worked without issues.

    Questions for you:
    What happens if you configure something else as the default doc - let's say iisstart.htm, does it work ?
    If you explicitly specify http://localhost/index.php does it work as expected ?
    When you say the log file is clean, did you mean the w3svc log shows a status of 200 for GET / ?

    Thanks,
    Mukhtar Desai
    IIS Performance Team

  • 08-18-2008, 6:15 PM In reply to

    Re: php as a default ducoment

     Hi Mukhtar ;

    Every file on the default list is working great , just the index.php

    and explicitly specifying index.php , it will run the php script .....

    some thing I have to admit , I have changed the default directory from  inetpub to www , but I thik it will not affect the process .

     

     

  • 08-18-2008, 7:13 PM In reply to

    Re: php as a default ducoment

    sinbadkan:

    some thing I have to admit , I have changed the default directory from  inetpub to www , but I thik it will not affect the process .


    Thats it ,,,,,   I moved the default directory back to inetpub and it is working again,, thanks guys ,,

Page 1 of 1 (8 items)
Page view counter