Previous Next

Thread: No Document Root ?

Last post 04-21-2008 2:07 PM by brashquido. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 04-17-2008, 6:13 PM

    • WhiteTimer
    • Top 150 Contributor
    • Joined on 04-14-2008, 10:15 PM
    • Posts 16
    • WhiteTimer

    No Document Root ?

    I have just reinstalled IIS7 with CGI & PHP 5.2.5.  I have followed the tutorial "using-fastcgi-to-host-php-applications-on-iis7" .  Then i did C:\php>php -info which ran, but as i scroll through the output i notice that there is no reference to Document Root.

     

    json

    json support => enabled
    json version => 1.2.1

    libxml

    libXML support => active
    libXML Version => 2.6.26
    libXML streams => enabled

    odbc

    ODBC Support => enabled
    Active Persistent Links => 0
    Active Links => 0
    ODBC library => Win32

    Directive => Local Value => Master Value
    odbc.allow_persistent => On => On
    odbc.check_persistent => On => On
    odbc.default_db => no value => no value
    odbc.default_pw => no value => no value
    odbc.default_user => no value => no value
    odbc.defaultbinmode => return as is => return as is
    odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
    odbc.max_links => Unlimited => Unlimited
    odbc.max_persistent => Unlimited => Unlimited

    pcre

    PCRE (Perl Compatible Regular BLOCKED EXPRESSION Support => enabled
    PCRE Library Version => 7.3 2007-08-28

    Directive => Local Value => Master Value
    pcre.backtrack_limit => 100000 => 100000
    pcre.recursion_limit => 100000 => 100000

    Reflection

    Reflection => enabled
    Version => $Id: php_reflection.c,v 1.164.2.33.2.47 2007/10/28 13:47:14 iliaa Exp
     $

    session

    Session Support => enabled
    Registered save handlers => files user
    Registered serializer handlers => php php_binary wddx

    Directive => Local Value => Master Value
    session.auto_start => Off => Off
    session.bug_compat_42 => On => On
    session.bug_compat_warn => On => On
    session.cache_expire => 180 => 180
    session.cache_limiter => nocache => nocache
    session.cookie_domain => no value => no value
    session.cookie_httponly => Off => Off
    session.cookie_lifetime => 0 => 0
    session.cookie_path => / => /
    session.cookie_secure => Off => Off
    session.entropy_file => no value => no value
    session.entropy_length => 0 => 0
    session.gc_divisor => 100 => 100
    session.gc_maxlifetime => 1440 => 1440
    session.gc_probability => 1 => 1
    session.hash_bits_per_character => 4 => 4
    session.hash_function => 0 => 0
    session.name => PHPSESSID => PHPSESSID
    session.referer_check => no value => no value
    session.save_handler => files => files
    session.save_path => no value => no value
    session.serialize_handler => php => php
    session.use_cookies => On => On
    session.use_only_cookies => Off => Off
    session.use_trans_sid => 0 => 0

    PHP Variables

    Variable => Value
    _SERVER["ALLUSERSPROFILE"] => C:\ProgramData
    _SERVER["APPDATA"] => C:\Users\Julian C Corbett\AppData\Roaming
    _SERVER["CLASSPATH"] => .;C:\Java\jre1.6.0\lib\ext\QTJava.zip
    _SERVER["CommonProgramFiles"] => C:\Program Files\Common Files
    _SERVER["COMPUTERNAME"] => CORBETT-DT
    _SERVER["ComSpec"] => C:\Windows\system32\cmd.exe
    _SERVER["FP_NO_HOST_CHECK"] => NO
    _SERVER["HOMEDRIVE"] => C:
    _SERVER["HOMEPATH"] => \Users\Julian C Corbett
    _SERVER["JAVA_HOME"] => C:\Java\jdk1.6.0
    _SERVER["LOCALAPPDATA"] => C:\Users\Julian C Corbett\AppData\Local
    _SERVER["LOGONSERVER"] => \\CORBETT-DT
    _SERVER["NUMBER_OF_PROCESSORS"] => 2
    _SERVER["OS"] => Windows_NT
    _SERVER["Path"] => C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Pr
    ogram Files\ATI Technologies\ATI.ACE\Core-Static;C:\php;C:\Program Files\QuickTi
    me\QTSystem\
    _SERVER["PATHEXT"] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    _SERVER["PROCESSOR_ARCHITECTURE"] => x86
    _SERVER["PROCESSOR_IDENTIFIER"] => x86 Family 15 Model 4 Stepping 1, GenuineInte
    l
    _SERVER["PROCESSOR_LEVEL"] => 15
    _SERVER["PROCESSOR_REVISION"] => 0401
    _SERVER["ProgramData"] => C:\ProgramData
    _SERVER["ProgramFiles"] => C:\Program Files
    _SERVER["PROMPT"] => $P$G
    _SERVER["PUBLIC"] => C:\Users\Public
    _SERVER["QTJAVA"] => C:\Java\jre1.6.0\lib\ext\QTJava.zip
    _SERVER["SESSIONNAME"] => Console
    _SERVER["SystemDrive"] => C:
    _SERVER["SystemRoot"] => C:\Windows
    _SERVER["TEMP"] => C:\Users\JULIAN~1\AppData\Local\Temp
    _SERVER["TMP"] => C:\Users\JULIAN~1\AppData\Local\Temp
    _SERVER["USERDOMAIN"] => CORBETT-DT
    _SERVER["USERNAME"] => Julian C Corbett
    _SERVER["USERPROFILE"] => C:\Users\Julian C Corbett
    _SERVER["windir"] => C:\Windows
    _SERVER["PHP_SELF"] =>
    _SERVER["SCRIPT_NAME"] =>
    _SERVER["SCRIPT_FILENAME"] =>
    _SERVER["PATH_TRANSLATED"] =>
    _SERVER["DOCUMENT_ROOT"] =>
    _SERVER["REQUEST_TIME"] => 1208469854
    _SERVER["argv"] => Array
    (
    )

    _SERVER["argc"] => 0
    _ENV["ALLUSERSPROFILE"] => C:\ProgramData
    _ENV["APPDATA"] => C:\Users\Julian C Corbett\AppData\Roaming
    _ENV["CLASSPATH"] => .;C:\Java\jre1.6.0\lib\ext\QTJava.zip
    _ENV["CommonProgramFiles"] => C:\Program Files\Common Files
    _ENV["COMPUTERNAME"] => CORBETT-DT
    _ENV["ComSpec"] => C:\Windows\system32\cmd.exe
    _ENV["FP_NO_HOST_CHECK"] => NO
    _ENV["HOMEDRIVE"] => C:
    _ENV["HOMEPATH"] => \Users\Julian C Corbett
    _ENV["JAVA_HOME"] => C:\Java\jdk1.6.0
    _ENV["LOCALAPPDATA"] => C:\Users\Julian C Corbett\AppData\Local
    _ENV["LOGONSERVER"] => \\CORBETT-DT
    _ENV["NUMBER_OF_PROCESSORS"] => 2
    _ENV["OS"] => Windows_NT
    _ENV["Path"] => C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Progr
    am Files\ATI Technologies\ATI.ACE\Core-Static;C:\php;C:\Program Files\QuickTime\
    QTSystem\
    _ENV["PATHEXT"] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    _ENV["PROCESSOR_ARCHITECTURE"] => x86
    _ENV["PROCESSOR_IDENTIFIER"] => x86 Family 15 Model 4 Stepping 1, GenuineIntel
    _ENV["PROCESSOR_LEVEL"] => 15
    _ENV["PROCESSOR_REVISION"] => 0401
    _ENV["ProgramData"] => C:\ProgramData
    _ENV["ProgramFiles"] => C:\Program Files
    _ENV["PROMPT"] => $P$G
    _ENV["PUBLIC"] => C:\Users\Public
    _ENV["QTJAVA"] => C:\Java\jre1.6.0\lib\ext\QTJava.zip
    _ENV["SESSIONNAME"] => Console
    _ENV["SystemDrive"] => C:
    _ENV["SystemRoot"] => C:\Windows
    _ENV["TEMP"] => C:\Users\JULIAN~1\AppData\Local\Temp
    _ENV["TMP"] => C:\Users\JULIAN~1\AppData\Local\Temp
    _ENV["USERDOMAIN"] => CORBETT-DT
    _ENV["USERNAME"] => Julian C Corbett
    _ENV["USERPROFILE"] => C:\Users\Julian C Corbett
    _ENV["windir"] => C:\Windows

    PHP License
    This program is free software; you can redistribute it and/or modify
    it under the terms of the PHP License as published by the PHP Group
    and included in the distribution in the file:  LICENSE

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    If you did not receive a copy of the PHP license, or have any
    questions about PHP licensing, please contact license@php.net.

    c:\php>

     Why is that ? And how do i rectify that ?

     
    Many thanks

     
    WhietTimer
     

  • 04-21-2008, 2:07 PM In reply to

    • brashquido
    • Top 25 Contributor
    • Joined on 05-21-2006, 8:31 PM
    • Australia
    • Posts 150
    • IIS MVPs
    • brashquido

    Re: No Document Root ?

    The doc_root directive is only really necessary when using PHP in CGI, and isn't strictly necessary with IIS. It simply enables you to specify PHP's root directory and is left blank unless you specify it. Personally I use the open_basedir to restrict where PHP scripts are able to be executed from.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 1 (2 items)
Page view counter