- From: Ian Stuart <ian.stuart@ed.ac.uk>
- Date: Mon, 02 Feb 2004 15:10:45 +0000
- To: Validator list <www-validator@w3.org>
Here is what I did:
0) Check that the OpenSP library can handle URLs propery
(actually, I know that mine does, so this is conjecture - can someone
test it?)
    strings /usr/lib/libosp.so | grep http
Look for "http://" as the response.
1) Create a directory to install the files into:
  mkdir /some/path
  cd /some/path/
2) grab the files:
  export CVSROOT=":pserver:anonymous@dev.w3.org:/sources/public"
  cvs login
      (password is "anonymous")
  cvs get validator
3) copy the script files into the working directory
   cp validator/https/cgi-bin/check* validator/htdocs/
4) Set up a (virtual) server for the service:
   <VirtualHost aaa.bbb.ccc.ddd>
    # using IP, as suggested by
    #     http://httpd.apache.org/docs-2.0/dns-caveats.html
    ServerAdmin me@my.host
    ServerName host.domain
    # validator CVS downloaded to /some/path/*
    # unpacks into /some/path/validator/*
    DocumentRoot /some/path/validator/htdocs/
    ServerSignature Off
    # needed for check to work
    SetEnv W3C_VALIDATOR_CFG /some/path/validator/htdocs/config/validator.conf
    # needed for the onsgml to run
    SetEnv SP_CHARSET_FIXED YES
    SetEnv SP_ENCODING XML
    SetEnv SGML_CATALOG_FILES /some/path/validator/htdocs/sgml-lib/xml.soc
    <Directory "/some/path/validator/htdocs/">
      Options Indexes FollowSymLinks MultiViews Includes +ExecCGI
      AllowOverride None
      Order allow,deny
      Allow from all
      AddCharset           utf-8         .html
    </Directory>
   <LocationMatch "/check(link)?">
      SetHandler            cgi-script
   </LocationMatch>
  </VirtualHost>
5) Edit the validator config file (just snippits here)
  DEBUG               = 0
  Maintainer          = me@my.domain
  #
  # The "Home Page" for the service.
  Home_Page           = http://host.domain/
  #
  # The SGML Library Path.
  SGML_Library        = /some/path/validator/htdocs/sgml-lib
  # ** !!if this is wrong, onsgmls will fail!! **
  #
  # Location of template files
  Template_Path       = /some/path/validator/share/templates/en_US
6) restart the apache server & test
   URI: http://host.domain/check?uri=http%3A%2F%2Fhost.domain%2F
  Header: Markup Validation Service [UNSTABLE development version]
Question: Given this works pretty much out-the-box, why does it class
itself as *NOT* valid?
   I've enabled debug mode in the config file, however nothing is
written to the error-log...
-- 
 Ian Stuart, Perl Laghu. EDINA, Edinburgh University.
+----------------------------------------------------+
| Just because the voices are not real               |
| it does not mean you should ignore their advice.   |
+----------------------------------------------------+
| Works web site:    http://edina.ac.uk/             |
| Personal web site: http://lucas.ucs.ed.ac.uk/      |
+----------------------------------------------------+
Received on Monday, 2 February 2004 10:31:55 UTC