Install IIS6 to Somewhere Other than C:

October 5, 2009

Create a text file and name it answer.txt. Save it in a location that can be easily accessed via the command line. The root of the alternate partition is a good place. For this example we will install IIS on a partition that has been assigned the letter “D” Paste the information below inside the [...]

Continue reading –>

Mount a Windows Share From a Linux Client

September 28, 2009

I don’t work with Linux as often as Windows, but sometimes need to pull some data to a Linux box. It’s as much of a reference for me as anyone. I’ve used this on Ubuntu and Fedora, but it should work for pretty much any distro. Test for a share: smbclient -L <windows-box> -U <username> [...]

Continue reading –>

Cdosys Test Script

September 21, 2009

This script can be used to test CDONTS mail functionality on a server. It’s very straightforward and simple. A typical use for this code is to troubleshoot the service without having to rely on code that could be buried deep in the code of a web app and may have bugs that interfere with the [...]

Continue reading –>

Move IIS6 to an Alternative Partition

September 14, 2009

In this example I will assume that IIS is currently located at “C:\InetPub” and it’s logs are located at  “C:\iislogs.” Both directories will be migrated to the “D:” partition. 1. Stop all IIS services This can be done via the command line by going to Start -> Run -> cmd and using the command net [...]

Continue reading –>

Socket Pooling

September 7, 2009

Using httpcfg to set the IP addresses that the server is listening on Win 2003 By default, IIS will grab all IP addresses for it’s use. So if a server has multiple IPs port 80 on all of them will be reserved by IIS. What if Apache needs to be running along with IIS on [...]

Continue reading –>

Backing up and Restoring IIS 7 Configuration

August 31, 2009

The metabase has pretty much gone away in IIS 7.  ApplicationHost.config is the root file of the IIS 7.0 configuration system. It includes definitions of all sites, applications, virtual directories and application pools, as well as global defaults for the web server settings (similar to machine.config and the root web.config for .NET Framework settings). It [...]

Continue reading –>

Thoughts on SQL Injections

August 26, 2009

Prevention 1.    Sanitize user input. It’s absolutely vital to sanitize user input to insure that it does not contain dangerous code. If the field is for a zip code in the US then it only needs to accept numbers. Even further US zip codes do not exceed 10 numbers so why even bother giving the [...]

Continue reading –>

Configuring Smart Host in IIS SMTP

August 24, 2009

Smart hosting is the process of redirecting the delivery of email through a secondary mail server. This is common when users have an outside email service, for example, an offsite Microsoft Exchange server, that they prefer all their mail to come from. Launch IIS manager from the icon on the desktop or by the command [...]

Continue reading –>

Matching IIS Worker Processes to Application Pools.

August 17, 2009

This technique can be used to determine which application pool holds the sites in which the w3wp process is pegging the CPU. Sites will need to be separated into individual app pools by process of elimination to determine exactly which site is spiking CPU usage. Get task manager configured. 1.    First launch task manager by [...]

Continue reading –>

MIME Types in IIS

August 10, 2009

Mime types are similar to file extensions. They are used to identify the type of information that a file contains. Occasionally people run into the problem of not being able have their special content downloaded, instead they get an ASCII stream or some other unusable data. To ensure the file is presented correctly or at [...]

Continue reading –>

© Agrypnia.com 2007-2010. All Rights Reserved.

Theme powered by Thesis.