Was this page helpful?

IIS

     

    How to Restart IIS

    Restarting IIS unloads all Web applications from memory, restarts the IIS service and refreshes the cache.
    Therefore, when restarting IIS, you do not have to unload an application from memory.

    To restart IIS

    Click Start
    click Run type IISReset
    and then click OK

    PrtScr capture_5.jpg

     

    A Command Prompt window opens displaying the status of the IISReset command.
    You should read the status at the command prompt to make sure that IIS stops and restarts.

    PrtScr capture_6.jpg

    IIS Help

    C:\Users\Administrator>iisreset /?

    IISRESET.EXE (c) Microsoft Corp. 1998-2005

    Usage:
    iisreset [computername]

        /RESTART            Stop and then restart all Internet services.
        /START              Start all Internet services.
        /STOP               Stop all Internet services.
        /REBOOT             Reboot the computer.
        /REBOOTONERROR      Reboot the computer if an error occurs when starting,
                            stopping, or restarting Internet services.
        /NOFORCE            Do not forcefully terminate Internet services if
                            attempting to stop them gracefully fails.
        /TIMEOUT:val        Specify the timeout value ( in seconds ) to wait for
                            a successful stop of Internet services. On expiration
                            of this timeout the computer can be rebooted if
                            the /REBOOTONERROR parameter is specified.
                            The default value is 20s for restart, 60s for stop,
                            and 0s for reboot.
        /STATUS             Display the status of all Internet services.
        /ENABLE             Enable restarting of Internet Services
                            on the local system.
        /DISABLE            Disable restarting of Internet Services
                            on the local system.

     

     

     

    IIS logs files

    Default logs path

    Windows Server 2003

    The default value is %SystemDrive%\WINDOWS\system32\LogFiles

    Windows Server 2008 and above

    The default value is %SystemDrive%\inetpub\logs\LogFiles.

     

    Change IIS logs' location

    IIS 7 and Above

    Please perform the following steps on your server to determine your log location:
     
    1. From the Windows Start menu, hover over Administrative Tools and click on Internet Information Services (IIS) Manager.
    2. In the lefthand tree view, expand the server name’s folder and click on the Sites folder to load a list of sites in the content pane. Make note of the desired site’s ID.
    3. Double click on the site to open its settings in the content pane. (Alternatively, you can expand the Sites folder and click on the site name in the lefthand tree view.)
    4. Select Logging from the content pane to load the Logging settings. In the Directory field, you’ll find the path in which your logs reside.
    5. Navigate to the LogFiles folder by following the path contained in the Directory field.
    6. Within the LogFiles folder you’ll find a subfolder for each site configured in SmarterStats, labeled as W3SVC1, W3SVC2, etc. The last number in the folder name corresponds to the SiteID. For example, W3SVC1 would contain the logs for the site with ID 1 in IIS. Find the folder that matches your site’s ID and you’ve found its location path.
     

    IIS 6 and Below

     
    Please perform the following steps on your server to determine your log location:
     
    1. From the Windows Start menu, hover over Administrative Tools and click on Internet Information Services (IIS) Manager.
    2. In the lefthand tree view, expand your server name's folder and then the Sites folder.
    3. Right-click on the desired site name and choose Properties. The settings will load in the content pane.
    4. On the Website tab, you'll see an option near the bottom that says "Active Log Format." Click on the Properties button.
    5. At the bottom of the General Properties tab, you'll see a box that contains the log file directory and the log file name. The full log path is comprised of the log file directory plus the first part of the log file name.

    For more details, please check the following link :

    IIS siteDefaults/logFiles

     

     

    Comments

    You must login to post a comment.

    Attach file

    Attachments

    FileSizeDateAttached by 
     PrtScr capture_5.jpg
    No description
    25.6 kB10:46, 16 Oct 2013cedActions
     PrtScr capture_6.jpg
    No description
    24.91 kB10:46, 16 Oct 2013cedActions