Win2000

From FroggDev - En
Jump to: navigation, search

Introduction

Windows 2000 is an operating system for use on both client and server computers. It was produced by Microsoft and released to manufacturing on December 15, 1999[5] and launched to retail on February 17, 2000.[6] It is the successor to Windows NT 4.0, and is the last version of Microsoft Windows to display the "Windows NT" designation.[7] It is succeeded by Windows XP (released in October 2001) and Windows Server 2003 (released in April 2003). During development, Windows 2000 was known as Windows NT 5.0.

Unofficial Service Pack 5

IIS 5.0

restart command:

IISreset.exe /restart

Site configuration

Site configuration

Default Page

Default Page

Custom error pages

Custom error pages

Compression

Content Comrpess
  • Script source
C:\Inetpub\AdminScripts\adsutil.vbs
  • Static Compression

To see whether Compression is enabled or not:

cscript adsutil.vbs get w3svc/filters/compression/parameters/HcDoStaticCompression

Enable/Disable Static Compression:

adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true/false

To view what all files will be encoded:

cscript adsutil.vbs get W3SVC/Filters/Compression/gzip/HcFileExtensions (for gzip) 
cscript adsutil.vbs get W3SVC/Filters/Compression/deflate/HcFileExtensions (for deflate) 

To add more files for Compression:

cscript adsutil.vbs set W3SVC/Filters/Compression/gzip/HcFileExtensions js css png bmp txt htm gif jpg 
cscript adsutil.vbs set W3SVC/Filters/Compression/deflate/HcFileExtensions js css png bmp txt htm gif jpg
  • Dynamic Compression

To see whether Compression is enabled or not:

cscript adsutil.vbs get w3svc/filters/compression/parameters/HcDoDynamicCompression

Enable/Disable Dynamic Compression:

cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true/false

To view what all files will be encoded:

cscript adsutil.vbs get W3SVC/Filters/Compression/gzip/HcScriptFileExtensions (for gzip) 
cscript adsutil.vbs get W3SVC/Filters/Compression/deflate/HcScriptFileExtensions (for deflate) 

To add more file extension

cscript adsutil.vbs set W3SVC/Filters/Compression/deflate/HcScriptFileExtensions asp exe dll aspx asmx php 
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions asp exe dll aspx asmx php

By default file < 10kb are not compressed, this command force to compress all:

cscript.exe adsutil.vbs set W3Svc/Filters/Compression/Parameters/HcMinFileSizeForComp 0

once the changes done, restart IIS

Header Content Cache

Content Expire

Install PHP

  • download win32 php files

last version available for windows 2000 is the version 5.2.17 available there: http://windows.php.net/downloads/releases/archives/php-5.2.17-Win32-VC6-x86.zip

or there: http://pool.frogg.fr/images/0/03/Php-5.2.17-Win32-VC6-x86.zip

  • Set ISAPI Filter
Set ISAPI Filter
  • Set ISAPI Mapping
Set ISAPI Mapping