[ Index ]
 

Code source de PHPonTrax 2.6.6-svn

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/doc/tutorials/PHPonTrax/ -> advbuild.pkg (source)

   1  {@toc}
   2  <refsect1 id="{@id advbuild}">
   3   <title>Advanced Application Build Topics</title>
   4   <para>Some application building situations are more complicated than that
   5   described {@tutorial simpleapp.pkg#simpleapp above}:</para>
   6   <refsect2 id="{@id advbuild-nonroot}">
   7   <title>Application Not At Apache Document Root</title>
   8   <para>Let's assume that the Apache
   9   {@link http://httpd.apache.org/docs/2.0/mod/core.html#documentroot DocumentRoot}
  10   directory is set to <literal>/var/www/html/</literal> as above, and
  11   you are building a Trax application in
  12   <literal>/var/www/html/my/app/</literal>.  Make the following changes
  13   to the
  14   {@tutorial simpleapp.pkg#simpleapp simple application build procedure}:
  15   <orderedlist>
  16    <listitem>Move the files in <literal>/var/www/trax/public/</literal> to
  17     <literal>/var/www/html/my/app/</literal> (instead of
  18     <literal>/var/www/html/</literal>).</listitem>  
  19    <listitem>Edit file
  20     <literal>/var/www/html/my/app/.htaccess</literal> to change
  21     <literal>dispatch.php</literal> to
  22     <literal>/my/app/dispatch.php</literal>.</listitem> 
  23    <listitem>Edit file
  24     <literal>/var/www/trax/config/environment.php</literal> to change
  25     the line <literal>define("TRAX_URL_PREFIX",<entity>&nbsp;</entity>null);</literal> to
  26     <literal>define("TRAX_URL_PREFIX",<entity>&nbsp;</entity>"/my/app");</literal> and change
  27     the line <literal>define("TRAX_PUBLIC",<entity>&nbsp;</entity>dirname(dirname(dirname(__FILE__)))."/public");</literal> to 
  28     <literal>define("TRAX_PUBLIC",<entity>&nbsp;</entity>"/var/www/html/my/app");</literal>
  29    </listitem>
  30   </orderedlist>
  31   </para>
  32   </refsect2>
  33  <!--
  34  Local variables:
  35  mode: xml
  36  c-basic-offset: 1
  37  indent-tabs-mode: nil
  38  End:
  39  -->
  40  
  41  </refsect1>


Généré le : Sun Feb 25 20:04:38 2007 par Balluche grâce à PHPXref 0.7