JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added install docs
[wfpl.git] / INSTALL
1 This directory must be accessible to your PHP files vie the relative path: code/wfpl/
2
3 The recommended way to do this is to create a directory named "code" in the
4 main folder of your website. And make symbolic links to that "code" directory
5 from all directories in your website where you run PHP.
6
7 Install wfpl within that "code" directory.
8
9
10
11 INSTALLING METAFORM on apache
12
13 metaform.php unfortunately has a couple extra steps.
14
15 1) make a directory (named "metaform" in this example) for metaform.
16
17 2) make sure code/wfpl is accessible in this directory (link to your main
18 "code" directory) as described above
19
20 3) make a symbolic link to metaform.php called index.php:
21
22 ln -s code/wfpl/metaform.php index.php
23
24 4) make a file named .htaccess that looks like this:
25
26 RewriteEngine  on
27 RewriteBase    /metaform/
28 RewriteRule    .*\.tgz$  /metaform/index.php
29
30 Note: the above .htaccess file assumes that the "metaform" directory you
31 created in step one is in the root www directory. If it's in a sub directory
32 (for example you access it via: http://example.com/my/sub/dir/metaform/) then
33 replace the two occurences of "metaform" in the .htaccess file with the path to
34 that directory (for example "my/sub/dir/metaform").
35
36 5) If php can't write to /tmp then you'll have to fix the $tmp_dir in
37 code/wfpl/tar.php