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