X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fdocs%2Finstall.html;h=d4507a2a5dae86dac886dd5b37a21678f2b4d898;hb=157e8bdba110b7aac022bd2c2f7b377d3c5b2f85;hp=e6f6f59de82a71bb3f3f0392a869f1d09435c87c;hpb=5dc522149a7ad8363ce46f8ff6b3133b2d3d3cdf;p=freeside.git diff --git a/httemplate/docs/install.html b/httemplate/docs/install.html index e6f6f59de..d4507a2a5 100644 --- a/httemplate/docs/install.html +++ b/httemplate/docs/install.html @@ -3,21 +3,22 @@
--default-table-type=BDB
or --default-table-type=InnoDB
mysqld command-line option or by setting default-table-type=BDB
or default-table-type=InnoDB
in the my.cnf option file.
-$ su postgres +$ su postgres (pgsql on some distributions) $ createuser -P freeside Enter password for user "freeside": Enter it again: Shall the new user be allowed to create databases? (y/n) y Shall the new user be allowed to create more new users? (y/n) n CREATE USER-
$ su freeside $ createdb freeside-
$ make perl-modules @@ -114,7 +115,10 @@ $ su
- Run make aspdocs -
- Copy aspdocs/ to your web server's document space. +
- Copy aspdocs/ to your web server's document space: +
+cp aspdocs /usr/local/apache/htdocs/freeside-asp +- Create a Global directory, such as /usr/local/etc/freeside/asp-global/:
mkdir /usr/local/etc/freeside/asp-global/ @@ -124,36 +128,46 @@ chown freeside /usr/local/etc/freeside/asp-global/cp htetc/global.asa /usr/local/etc/freeside/asp-global/global.asa-- Configure Apache for the Global directory and to execute .cgi files using Apache::ASP. For example: +
- Configure Apache for the Global directory and to execute .cgi files using Apache::ASP. For example, add something like the following to your Apache httpd.conf file, adjusting for your actual paths:
+PerlModule Apache::ASP +# your freeside document root <Directory /usr/local/apache/htdocs/freeside-asp> -<Files ~ (\.cgi)> -AddHandler perl-script .cgi +<Files ~ (\.cgi|\.html)> +AddHandler perl-script .cgi .html PerlHandler Apache::ASP </Files> <Perl> $MLDBM::RemoveTaint = 1; </Perl> PerlSetVar Global /usr/local/etc/freeside/asp-global/ -PerlSetVar Debug 2 +PerlSetVar Debug 2 +PerlSetVar RequestBinaryRead Off +# your freeside document root +PerlSetVar IncludesDir /usr/local/apache/htdocs/freeside-asp </Directory>-
- (use version 1.0x - Freeside is not yet compatible with version 1.1x)
- Run make masondocs -
- Copy masondocs/ to your web server's document space. -
- Copy htetc/handler.pl to your web server's configuration directory. -
- Edit handler.pl and set an appropriate data_dir, such as /usr/local/etc/freeside/mason-data -
- Configure Apache to use the handler.pl file and to execute .cgi files using HTML::Mason. For example: +
- Copy masondocs/ to your web server's document space. (For example: /usr/local/apache/htdocs/freeside-mason) +
- Copy htetc/handler.pl to /usr/local/etc/freeside +
- Edit handler.pl and: +
+
+ +- set an appropriate comp_root, such as /usr/local/apache/htdocs/freeside-mason +
- set an appropriate data_dir, such as /usr/local/etc/freeside/masondata +
- Configure Apache to use the handler.pl file and to execute .cgi files using HTML::Mason. For example, add something like the following to your Apache httpd.conf file, adjusting for your actual paths:
+PerlModule HTML::Mason <Directory /usr/local/apache/htdocs/freeside-mason> -<Files ~ (\.cgi)> -AddHandler perl-script .cgi +<Files ~ (\.cgi|\.html)> +AddHandler perl-script .cgi .html PerlHandler HTML::Mason </Files> <Perl> -require "/usr/local/apache/conf/handler.pl"; +require "/usr/local/etc/freeside/handler.pl"; </Perl> </Directory>@@ -161,10 +175,9 @@ require "/usr/local/apache/conf/handler.pl";
<Directory /usr/local/apache/htdocs/freeside-asp> -PerlSetVar Global /usr/local/etc/freeside/asp-global/ AuthName Freeside AuthType Basic AuthUserFile /usr/local/etc/freeside/htpasswd @@ -181,16 +194,16 @@ $ freeside-adduser -c -h /usr/local/ $ freeside-adduser -h /usr/local/etc/freeside/htpasswd username
$ su freeside -$ cd /path/to/freeside-1.4.0/ -$ bin/fs-setup username +$ freeside-setup username+ Alternately, use the -s option to enable shipping addresses: freeside-setup -s username
$ su freeside -$ cd /path/to/freeside-1.4.0/ +$ cd /path/to/freeside/ $ bin/populate-msgcat username