PHPonTrax
[ class tree: PHPonTrax ] [ index: PHPonTrax ] [ all elements ]
Prev Next

Advanced Application Build Topics

Some application building situations are more complicated than that described above:

Application Not At Apache Document Root

Let'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:

  1. Move the files in /var/www/trax/public/ to /var/www/html/my/app/ (instead of /var/www/html/).
  2. Edit file /var/www/html/my/app/.htaccess to change dispatch.php to /my/app/dispatch.php.
  3. 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

Documentation generated on Thu, 04 May 2006 19:46:54 -0600 by phpDocumentor 1.3.0RC4