Installing validator under W2K. Re: /etc/w3c/validator.conf

Terje Bless wrote:

>>under W2k (by the way, if somebody want a 'guide' to install it under
>>W2k/ActivePerl, I can suggest it).

> I'd promise to put up a W2K install guide, but I've promised that before
> and never gotten around to it. If anyone wants to take on that task...

It's simple:

Pre-condition: Install Apache and ActivePerl 5.6.1 and update modules:
   ppm install CGI
   ppm verify --upgrade libnet
   ppm verify --upgrade HTML-Parser
   ppm install Text-Iconv

Then download tar-ball, unpack it, copy htdocs to apache/htdocs, 
httpd/cgi-bin to apache/cgi-bin (or corresponding directories)/

Then change main CGI script (don't forget to change #! to real Perl 
    1. Comment line $DEBUG += 1 unless $ENV{SERVER_PORT} == 80;   
there's warning when -w.
    2. Change my $base_path = $0;  to my $base_path = '../';, and 
comment next string.
    3. Change my $temp      = "/tmp/validate.$$"; to anything 
appropriate (or create /tmp/).
    4. Change my $sp  = '/usr/local/bin/lq-nsgmls'; to path to 
nsgmls.exe from sp. $osp isn't necessary to change.
    5. Find my $command  = "$sp -R -f$temp -E0 $xmlflags -c $catalog"; 
and remove -R.
    6. Change data in blocks named "URIs and fragments" and "Strings" to 
appropriate (really it's not necessary)

Then make changes to Apache config or .htaccess:

RewriteEngine on
RewriteRule ^/check(.*) /cgi-bin/check$1 [R]

and restart Apache. All should work, I checked it under W2K Pro and 
Apache 1.3.26.

Serguei Trouchelle

Received on Tuesday, 27 August 2002 08:55:10 UTC