Advanced Application Build TopicsSome application building situations are more complicated than that
described above:
Application Not At Apache Document RootLet's assume that the Apache
DocumentRoot
directory is set to /var/www/html/ as above, and
you are building a Trax application in
/var/www/html/my/app/ . Make the following changes
to the
simple application build procedure:
- Move the files in
/var/www/trax/public/ to
/var/www/html/my/app/ (instead of
/var/www/html/ ).
- Edit file
/var/www/html/my/app/.htaccess to change
dispatch.php to
/my/app/dispatch.php .
- Edit file
/var/www/trax/config/environment.php to change
the line define("TRAX_URL_PREFIX", null); to
define("TRAX_URL_PREFIX", "/my/app"); and change
the line define("TRAX_PUBLIC", dirname(dirname(dirname(__FILE__)))."/public"); to
define("TRAX_PUBLIC", "/var/www/html/my/app");
Prev |
Up |
Next |
Create A Database and User |
PHP On Trax |
The Trax Naming Convention |
|
|