Installing Parser on Apache web-server, server module
To install Parser, one should make changes to server's main configuration file. If you are not authorized to make such changes, you should be able to use .htaccess files.
By default, Apache has usage of .htaccess disabled.
You will need to enable it (at least allow specifying FileInfo) by adding directives to server's configuration file (usually httpd.conf), inside <virtualhost > section allotted for your site or outside it-for all sites:
Parser3 performs necessary transcoding,by itself, so, if you use non-English Apache version, you should add this line to server's main configuration file (usually httpd.conf):
CharsetDisable On
which will prohibit Apache from transcoding. If you are not authorized to make changes in server's main configuration file, add this line to .htaccess file.
Under UNIX:
You will need to compile Parser from source codes by running script configure with key --with-apache13, then running make and following the instructions that will be output.
Note: under some systems, standard makedoes not work with Parser3 make-files. In this case you will need to use GNU variant-gmake.
Under Win32:
Place Parser's executable files (in current version, ApacheModuleParser3.dll) into an arbitrary directory.
If you use version with XML support, unpack XML libraries into directory specified in environment variable PATH (for example, C:\WinNT).
Add these lines to httpd.conf, after existing LoadModule directives:
# load module dynamically
LoadModule parser3_module x:\path\to\ApacheModuleParser3.dll
Note: If necessary, place accompanying .dll files into the same directory.
And add these lines after existing AddModule directives (if no directives exist already, do not add):
# adding module to the list of active modules AddModule mod_parser3.c
Add these blocks to your .htaccess file (or httpd.conf-inside <virtualhost > section allotted for your site or outside it-for all sites):
# declare Parser as .html files handler AddHandler parser3-handler html