Here's the deal with APPLICATION_ROOT as best I know.  APPLICATION_ROOT
(naturally) is used by the main index.php3 script to find the modules
directory (i.e. the directory that contains the screens, etc.).  By
default, Freetrade assumes that you are using Apache, and that you have
the following layout:

apache/
        htdocs/
                index.php3
        modules/
                screens, etc.

Hence, if you are using this default layout, you're all set.  If you are
not using Apache, or if you are not using this layout (perhaps your
modules directory is somewhere else), you'll have to change the value of
APPLICATION_ROOT so that it looks somewhere else.  Furthermore, there
might still be a few other places that you might need to change (we have
tried to get rid of these inconsistancies, if you find any (i.e. if
paths for 1 or 2 files are still messed up) please tell us.  Please
note, it's almost assuredly best if you *don't* have the modules
directory inside your webspace (i.e. inside the htdocs directory), lest
you give the user access to arbitrarily execute random PHP files.  Also,
all of my experience has been with using PHP as an Apache module.  If
you are using PHP as an external CGI, there may be added details that I
am not aware of.  If you continue having problems with paths, try to set
up a simple PHP script and get it executing.  Furthermore, try outputing
the value of various path related variables and/or trying to do a
directory listing (use PHP functions) to figure out what the systems
things is going on.

After you have the path stuff set up, you may go edit
include/global_settings to edit your database settings.  Please make
sure you are able to connect to the database via the command line
(preferably while logged in as the user that the server runs as, i.e.
nobody).  Once you have edited this information, try viewing the site. 
If you get errors, try viewing the HTML source for the page.  It is
likely that there will be errors inside HTML comments that will specify
that you are not able to connect to the database.

Hope that helps, if it doesn't please send corrections.

-jj

-- 
Shannon -jj Behrens  *  Web Engineer  *  CLEAR INK�
      Imagination is the only real medium(sm)


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to