X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=INSTALL;h=09fa003ea45e5a4665e71cecfb6d9403fdf67bc0;hb=35b2973c5ed7fbba047cf67a5e84957bfdedc7c7;hp=b0fed71941383596dbd8b83965dcb2879b4a37e3;hpb=96d47b5fc163c2edb515110ab00abe824308ac57;p=wfpl.git diff --git a/INSTALL b/INSTALL index b0fed71..09fa003 100644 --- a/INSTALL +++ b/INSTALL @@ -1,14 +1,20 @@ -This directory must be accessible to your PHP files vie the relative path: code/wfpl/ +INSTALLING WFPL + +This directory must be accessible to your PHP files via the relative path: code/wfpl/ The recommended way to do this is to create a directory named "code" in the main folder of your website. And make symbolic links to that "code" directory from all directories in your website where you run PHP. -Install wfpl within that "code" directory. +Install wfpl within that "code" directory. That is, these files should be in a +directory named "wfpl" in the "code" directory described above. + +INSTALLING METAFORM on apache (OPTIONAL) -INSTALLING METAFORM on apache +Note: metaform is a code generator. It is NOT required to use wfpl. It is a +tool for auto-generating code for your site which makes use of wfpl. metaform.php unfortunately has a couple extra steps. @@ -23,15 +29,18 @@ ln -s code/wfpl/metaform.php index.php 4) make a file named .htaccess that looks like this: +php_flag register_globals off +php_flag magic_quotes_gpc off +AddDefaultCharset UTF-8 RewriteEngine on RewriteBase /metaform/ RewriteRule .*\.tgz$ /metaform/index.php Note: the above .htaccess file assumes that the "metaform" directory you -created in step one is in the root www directory. If it's in a sub directory +created in step one is IN the root www directory. If it's in a sub directory (for example you access it via: http://example.com/my/sub/dir/metaform/) then -replace the two occurences of "metaform" in the .htaccess file with the path to -that directory (for example "my/sub/dir/metaform"). +replace the two occurrences of "metaform" in the .htaccess file with the path +to that directory (for example "my/sub/dir/metaform"). 5) If php can't write to /tmp then you'll have to fix the $tmp_dir in code/wfpl/tar.php