- From: Allan Smith <webmanager@telfordsteamrailway.co.uk>
- Date: Tue, 9 Oct 2007 13:52:49 +0100
- To: <www-validator@w3.org>
- Message-ID: <000001c80a73$4c0bfcf0$0600000a@Atlantis>
Thanks to help from David Tibbe
I now have local validator up and running on XP Pro with IIS 5.1
In addition to following all the instructions on the Windows Install page
I had to download David's new Perl Modules and ensure .NET framework was
installed
And make an additional change to the check.pl file (see below)
There is only one extremely minor problem
When a page validates as 'Valid' the 2 valid icons are not displayed on the
results page. This is because the specified source of the image
' src="images/valid_icons/valid-xhtml10" '
does not specify a suffix so the file is 404 - Not Found
David also kindly provided a .pl process which scanned all
Of the .html files in the validator source and converted
All SSI constructs to Jscript
We are working to have the same utility to provide PHP constructs
Here are David's instructions:-
1) Install IIS
Make sure that all windows updates are applied and .NET framework is
Installed.
2) Install Perl and the modules
3) Copy the Validator to C:\Inetpub\validator and configure it.
4) Create a new virtual directory in the default site and set the local path
to c:\Inetpub\validator\htdocs
5) Configure the following Application-Mappings:
.html -> C:\Windows\system32\inetsrv\asp.dll
.pl -> C:\perl\bin\perl.exe %s %s
The %s is required!
Set the Default ASP Language to JScript (is VBScript by default). You
can find it in the options-tab
6) Add index.html to the Default Documents
7) Copy the attached perl-script to c:\Inetpub\validator.
(a file called toiis.pl)
It rewrites all SSI-Includes and variable assignments to JScript.
That is done in the validator page as well as in the en_US-templates
(Make first line pointing to your perl.exe first)
Go to a command prompt, change to the c:\Inetpub\validator folder.
Issue the command "perl toiis.pl"
8) Copy the check-script into the htdocs folder, rename it to check.pl
9) Modify prepCGI() in the check-Skript. Change
- -------------
# apparently, with mod_perl2, $path_info is empty even if it should be
filled
# working around that
if (!$path_info) {
if ($File->{Env}->{'Self URI'} =~ /check\/referer$/){
$path_info = '/referer';
$File->{Env}->{'Self URI'} =~ s/\/referer//;
}
}
- -------------
to
- -------------
$path_info =~ s/(.*)\/check.pl(.*)$/$2/
if ($ENV{SERVER_SOFTWARE} and $ENV{SERVER_SOFTWARE} =~
/Microsoft-IIS/);
# apparently, with mod_perl2, $path_info is empty even if it should be
filled
# working around that
if (!$path_info) {
if ($File->{Env}->{'Self URI'} =~ /check\/referer$/){
$path_info = '/referer';
$File->{Env}->{'Self URI'} =~ s/\/referer//;
}
}
- -------------
Attachments
- application/octet-stream attachment: toiis.pl
Received on Tuesday, 9 October 2007 12:52:52 UTC