Debian Codegraph @

INSTALL

raw
1 HTML::WikiConverter installation
2 ================================
3
4 HTML::WikiConverter is an HTML to wiki converter capable of converting
5 HTML source into a variety of wiki dialects. It's aimed at folks who
6 are converting vanilla HTML websites into wikis.
7
8 The HTML::WikiConverter module itself is an interface to its various
9 dialect modules (e.g. HTML::WikiConverter::MediaWiki). To install the
10 latest version of HTML::WikiConverter and all of its dialects, install
11 Bundle::HTMLWikiConverter from CPAN:
12
13 % perl -MCPAN -e 'install Bundle::HTMLWikiConverter'
14
15 For just the interface:
16
17 % perl -MCPAN -e 'install HTML::WikiConverter'
18
19 Individual dialects can be installed separately, e.g.:
20
21 % perl -MCPAN -e 'install HTML::WikiConverter::MediaWiki'
22 % perl -MCPAN -e 'install HTML::WikiConverter::UseMod'
23 % perl -MCPAN -e 'install HTML::WikiConverter::Oddmuse'
24
25 Installing by hand
26 ==================
27
28 You may also obtain the source as a .tar.gz, in which case you can run
29 the following after unpacking:
30
31 % perl Makefile.PL
32 % make && make test && make install
33
34 The 'make install' step attempts to install the module and the
35 html2wiki utility into something like /usr or /usr/local, which
36 probably won't work unless you're an administrator. To work around
37 this, you may install into your own local directory like so:
38
39 % perl Makefile.PL PREFIX=~/myperl5
40 % make && make test && make install
41
42 Installing the web application
43 ==============================
44
45 Included in this distribution is HTML::WikiConverter::WebApp, which is
46 a CGI::Application-based web application that interfaces with
47 HTML::WikiConverter and any installed dialects. (Note that you will
48 need to have CGI::Application installed to use this feature.)
49
50 The H::WC::WebApp module is installed automatically. The remaining
51 files necessary for the web application are in the cgi/ directory. To
52 install these files, first follow the basic installation instructions
53 above. Next, copy the cgi/ directory to your cgi-bin/ directory,
54 provide a suitable value for the 'template_path' variable in the
55 provided index.cgi instance script, and assign appropriate
56 permissions.
57
58 These steps can all be accomplished via the included webapp-install
59 script, which is excuted like so:
60
61 % ./webapp-install
62
63 When complete, be sure to stop and restart your Apache server:
64
65 % sudo apachectl stop
66 % sudo apachectl start
67
68 If the webapp-install script does not work or you choose not to use
69 it, you may also install the web application by hand. (This is
70 essentially what the webapp-install script does.)
71
72 1) Copy the cgi/ directory to your cgi-bin/ directory:
73
74 % cp -r cgi /var/www/cgi-bin/html2wiki
75
76 2) Assign appropriate permissions:
77
78 % chmod 655 /var/www/cgi-bin/html2wiki/index.cgi
79 % chmod a+r /var/www/cgi-bin/html2wiki/templates/*
80
81 3) Edit the index.cgi instance script to provide a suitable template
82 path, replacing __PATH_TO_TEMPLATES__ with the location of the
83 cgi/templates/ folder:
84
85 # Inside /var/www/cgi-bin/html2wiki/index.cgi:
86 my %config = (
87 template_path => '/var/www/cgi-bin/html2wiki/templates',
88 );
89
90 4) Restart your Apache server as appropriate.
91
92 5) The template filler should then be available via a standard URL:
93
94 http://www.yourhost.com/cgi-bin/html2wiki/index.cgi
95
96 Author
97 ======
98
99 David J. Iberri <[email protected]>