Muhammad Sutiyadi

Web Dev with DotNet Wannabe ;)
See also: Other Geeks@INDC

Nulis Buku DNN - Go go go....

Saya kemarin sempat jalan-jalan ke Gramedia, tapi tidak satupun buku DNN yang tersedia disana, jadi kepikiran untuk nerbitin buku tersebut, cuman ntar dikirim kemana ya ? abis lom punya kenalan dengan penerbit.

kemarin waktu ikutan training di Microsoft yang dikhususkan untuk IM2 tapi IKC dapat quota 2 orang yaitu aku dan arif (logC). jadi yang dibahas adalah tentang dotnetnuke. setelah bergaul dengan portal ini akhirnya jatuh hati juga diriku. sehingga pulang langsung otak-atik komputer. eh ternyata dikomputer nggak tersedia IIS karena home edition tidak support itu, akhirnya nanya-nanya kepakarnya : memang di XP home edition tidak support IIS. nggak tahu kenapa nggak disupport ya ama microsoft padahal yang Professional ada. dan disarankan untuk memakai yang professional, tapi aku masih penasaran kok di home edition nggak bisa ya....

akhirnya aku googling dan nemu cara untuk membypass IIS di XP Home edition....tapi tidak disarankan olehku karena saat aku coba berhasil tapi saat instalasi community server nggak bisa...hiks...akhirnya aku install dual boot menggunakan windows server 2003....

tapi kalau mau nyoba juga nggak papa, siapa tahu ada yang berhasil setelah itu.....

These instructions have the following requirements:

You must use IIS from Windows 2000

These instructions will not work if you try to copy IIS from Windows XP Pro onto Windows XP Home. You must take IIS from a version of Windows 2000.

  • You are running Windows XP Home SP2.
    SP2 contains many changes to how Windows manages computer security. These instructions may not work on versions of XP older (or newer) than SP2.
  • A Windows XP Home install disc.
  • A Windows 2000 Professional or Windows 2000 Server install disc.

Note for Dell customers

If you are a recent Dell customer your PC may not have come with an XP Home install disc. Create your "OS Recovery Disc" and use that.

See: How Do I Create My Operating System CD using the Dell OS Recovery Utility?

Path and CD-ROM notes

  • I assume that your windows folder is C:\Windows which is the default location. Substitute your actual windows folder if needed.
  • I assume that your CD-ROM drive is assigned the letter X:. Substitute your actual CD-ROM drive letter if needed.

IIS Installation

  1. Open the file C:\WINDOWS\INF\SYSOC.INF and find the section [Components].
  2. Find the line:
    iis=iis.dll,OcEntry,iis.inf,hide,7
    and replace it with:
    iis=iis2.dll,OcEntry,iis2.inf,,7

Typographical notes

    • This file is case-sensitive, so make sure you type OcEntry and not OCEntry or ocentry.
    • In the replacement text, there are two commas in a row before the 7.
  1. From your Windows 2000 CD, copy the files X:\I386\iis.dl_ and X:\I386\iis.in_ to a folder on your hard drive.
  2. Go to the folder from step #3 in a command window.

"Open Command Window Here"

Microsoft provides a PowerToy that lets you easily get to any folder in a command window. After installing the PowerToy, right-click on any folder to open it in the shell.

See: Microsoft PowerToys for Windows XP, and install "Open Command Window Here".

  1. In the command window, decompress the two files with the following commands:
    expand iis.dl_ iis2.dll
    expand iis.in_ iis2.inf
    (You may close the command prompt at this time.)
  2. Move the files:
    iis2.inf to C:\Windows\INF
    iis2.dll to C:\Windows\System32\Setup
  3. Open the Control Panel and choose Add or Remove Programs. From the column of icons on the left, choose Add/Remove Windows Components. IIS will now be available.

Optional Windows Components

You can also remove unused Windows components from this form. I unchecked "MSN Explorer". Note that some of these options (IE, Outlook Express) only remove a program from the Start Menu list, and don't actually remove the executables.

  1. Check IIS and then click the details button. You can add or remove optional components in this form.

Do not install SMTP

I recommend unchecking SMTP. When I leave SMTP checked, my install hangs trying to configure SMTP. It's possible that I'm just not waiting long enough, but as I don't need that service I installed without it.

  1. Click OK to close the details window and then Next to continue with the installation.
  2. When prompted, insert your Windows 2000 disc and browse for X:\I386; do the same when prompted for your XP Home disc.
  3. Once installed, you can access the Internet Services Manager by opening the Control Panel and choosing Administrative Tools.

Add Administrative Tools to the Start Menu

To add Administrative Tools to the Start Menu:

    • Right-click on the start button and choose Properties.
    • Click the Customize... button then select the Advanced tab.
    • Scroll the Start menu items list to the bottom, and select where you want Administrative Tools to appear.

Now that basic installation is complete, you must configure IIS.

IIS Configuration

When cross-installing IIS from Windows 2000 to Windows XP Home, the default Directory Security and Home Directory settings will not work correctly out-of-the-box.

Configure Directory Security

The default IIS account is IUSR_NAME. We need to replace this with NAME\IUSR_NAME (where NAME is your computer name.)

IIS User Accounts

IIS creates some user accounts, based on your computer's name, that it uses to run ASP applications: IUSR_NAME and IWAM_NAME, where NAME is the name of your computer.

This allows custom security settings to be applied to ASP and ISAPI applications.

 

  1. Start Internet Services Manager from Administrative Tools.
  2. Your computer will appear under Internet Information Services. Right-click on your computer and choose Properties.
  3. Select Master WWW Service in the drop-down, then click Edit....
  4. Select the Directory Security tab.
  5. Under Anonymous access and authentication control click Edit...
  6. In the Authentication Methods form, make sure only Anonymous access is checked, then click Edit....
  7. The default username will be IUSR_NAME. We need to replace this with NAME\IUSR_NAME where NAME is your computer name. You can type it in manually or use these steps:
    1. Click the Browse... button.
    2. On the Select User form click the Advanced... button in the bottom left.
    3. Click the Find Now button in the middle-right of this form.
    4. Select IUSR_NAME in the user list at the bottom of the form, then click OK
    5. Click OK to dismiss the Select User form.
  8. Uncheck Allow IIS to control password. (This is important!)
  9. Click OK to dismiss the Anonymous User Account form.
  10. Click OK to dismiss the Authentication Methods form.
  11. Click OK to dismiss the WWW Service Master Properties form.
  12. Click OK to dismiss the Computername Properties form.

If you see " The requested resource is in use." trying to access your new web server, follow the Home Directory steps below to modify the Application Protection settings for the default web site.

Configure Home Directory

With Internet Services Manager:

  1. Your computer will appear under Internet Information Services. Click on your computer to expand its list of servers.
  2. Right-click on Default Web Server and choose Properties.
  3. Select the Home Directory tab.
  4. In the Application Protection drop-down under Application Settings choose Low (IIS Process).
  5. Click OK to dismiss the form.

The default website may not work

If you go to http://localhost in a browser, chances are you will see an ASP error on line 19. Don't panic.

IUSR_NAME does not have permission to run the default IIS website. The default IIS website attempts to create admin-only ActiveX objects.

Testing your IIS installation

To test your IIS installation you should create some test files and point the default website to the folder containing those files.

  1. Download iistest.zip.
  2. Copy the iistest folder inside the .zip to your harddrive.
  3. Click on your computer to expand its list of servers in Internet Services Manager.
  4. Right-click on Default Web Server and choose Properties.
  5. Select the Home Directory tab.
  6. In the Local Path: textbox, type in the path to the iistest folder you extracted (or use the Browse... button to find it.)
  7. Click OK to dismiss the Default Web Site Properties form.

If everything is set up correctly, you should be able to see the test at http://localhost/default.htm.

Additional XP Home Hacks

The ScottXP website has tips on how to enable additional advanced functionality on XP Home.

When running IIS, it is useful to enable User and Group management and advanced file security.

Alternative Web Servers

There are other web servers that can run on Windows XP Home. Apache has a native Windows version. Lighttpd has a Windows version that runs with cygwin.

Note that neither of these alternatives support ASP applications.

Versions

  • 1.1: Added note that IIS must be copied from Windows 2000, not Windows XP Pro.
  • 1.0: Initial posting.

Contact Information

  • Email:

References and credits

Richard Sandoz provided the steps to install IIS on XP Home in this USENET post (Jan 8 2002). His original posting has been quoted around the web, including 15 Seconds. Unfortunately, his steps are unclear on how to properly configure IIS after installation.

This article cleans up some style issues with Mr. Sandoz's post, and integrates additional steps needed to work on XP Home SP2. This article would not have been possible without Mr. Sandoz's work, and I thank him for sharing it with the webdev community.

Setelah instalasi alhamdulillah berhasil aku nyoba untuk mempraktekkan yang kudapat di training tersebut. kebetulan aku lihat mas agung riyadi lagi nyoba nyusun untuk buat buku tentang DNN, boleh juga tuh kalau aku bisa gabung untuk ikutan nulis bersama.... ok mas agung kapan kita ketemu untuk memplan penulisan buku ini....
Share this post: | | | |
Posted: Dec 03 2005, 06:20 AM by yadi | with 2 comment(s)
Filed under:

Comments

yadi said:

Bila dijelaskan kelebihan dan kekurangan DNN dibanding software sejenis. thanks
# December 3, 2005 6:45 AM

yadi said:

YM-mu apa ?

Kita bisa lewat chat. Soalnya aku 2 minggu ke depan udah di booking ama Semarang untuk training dan joint development disana.

Eh, kita pakai yang versi 4.0 ya. Mau gak ?
# December 3, 2005 6:45 AM