Table of contents
- 1. How to Restart IIS
- 2. IIS Help
- 3. IIS logs files
- 3.1. Default logs path
- 3.1.1. Windows Server 2003
- 3.1.2. Windows Server 2008 and above
- 3.2. Change IIS logs' location
- 3.2.1. IIS 7 and Above
- 3.2.2. IIS 6 and Below
- 3.1. Default logs path
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
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.
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
- From the Windows Start menu, hover over Administrative Tools and click on Internet Information Services (IIS) Manager.
- 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.
- 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.)
- 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.
- Navigate to the LogFiles folder by following the path contained in the Directory field.
- 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
- From the Windows Start menu, hover over Administrative Tools and click on Internet Information Services (IIS) Manager.
- In the lefthand tree view, expand your server name's folder and then the Sites folder.
- Right-click on the desired site name and choose Properties. The settings will load in the content pane.
- On the Website tab, you'll see an option near the bottom that says "Active Log Format." Click on the Properties button.
- 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 :
Comments