{NL} - 3.3.2 Productie

Om een productie opstelling te maken, heb je rechten nodig om de webroot van je server aan te passen. Bij een productie opstelling is het hele domein één CakePHP applicatie.

De productie opstelling ziet er als volgt uit:

  • /pad_naar_cakephp_installatie/
    • /app
      • /webroot (Deze map moet als webroot aangegeven worden in de configuratie van de server)
    • /cake
    • /docs
    • /index.php
    • /vendors

Zou deze opstelling op een Apache webserver draaien, dan zou de DocumentRoot moeten verwijzen naar:

Documentroot /pad_naar_cakephp_installatie/app/webroot

Om de applicatie te bezoeken ga je naar het geconfigureerde domein. (bijvoorbeeld http://www.example.com)

{EN} - 3.3.2 Production

A production installation is a more flexible way to setup Cake. Using this method allows an entire domain to act as a single CakePHP application. This example will help you install Cake anywhere on your filesystem and make it available at http://www.example.com. Note that this installation may require the rights to change the DocumentRoot on an Apache webservers.

Unpack the contents of the Cake archive into a directory of your choosing. For the purposes of this example, we assume you choose to install Cake into /cake_install. Your production setup will look like this on the filesystem:

  • /cake_install/
    • /app
      • /webroot (this directory is set as the DocumentRoot directive)
    • /cake
    • /docs
    • /vendors
    • /index.php

Developers using Apache should set the DocumentRoot directive for the domain to:

DocumentRoot /cake_install/app/webroot

If your web server is configured correctly, you should now find your Cake application accessible at http://www.example.com.

Differences

Lines: 1-22Lines: 1-31
-<title>Production</title>
<p>A production installation is a more flexible way to setup Cake. Using this method allows an entire domain to act as a single CakePHP application. This example will help you install Cake anywhere on your filesystem and make it available at <kbd>http://www.example.com</kbd&gt;. Note that this installation may require the rights to change the <code>DocumentRoot</code> on an Apache webservers.</p>
<p>Unpack the contents of the Cake archive into a directory of your choosing. For the purposes of this example, we assume you choose to install Cake into <kbd&gt;/cake_install</kbd>. Your production setup will look like this on the filesystem:</p>
+<title>Productie</title>

<p>Om een productie opstelling te maken, heb je rechten nodig om de webroot van je server aan te passen. Bij een productie opstelling is het hele domein één CakePHP applicatie.</p>
<p>De productie opstelling ziet er als volgt uit:</p>
 <ul> <ul>
- <li><kbd>/cake_install/</kbd> + <li>/pad_naar_cakephp_installatie/
/> <ul><br /> <li>/app
  <ul>  <ul>
- <li><kbd>/app</kbd>
<ul>
<li><kbd
>/webroot</kbd> (this directory is set as the <code&gt;DocumentRoot</code> directive) </li>r /> </ul>
+ <li>/webroot (Deze map moet als webroot aangegeven worden in de configuratie van de server)
  </li>  </li>
- <li><kbd>/cake</kbd></li> 
- <li><kbd>/docs</kbd></li> 
- <li><kbd>/vendors</kbd></li> 
- <li><kbd>/index.php</kbd></li> 
  </ul>  </ul>
- </li> + </li>
<li>/cake
</li>
<li>/docs
</li>
<li>/index.php
</li>
<li>/vendors
</li>
</ul>
</li>
 </ul> </ul>
-<br />
<p>Developers using Apache should set the <code>DocumentRoot</code&gt; directive for the domain to:</p>
<pre class="plain">DocumentRoot /cake_install/app/webroot</pre>
<p>If your web server is configured correctly, you should now find your Cake application accessible at <kbd>http://www.example.com</kbd>. </p>
+
<p>Zou deze opstelling op een Apache webserver draaien, dan zou de DocumentRoot moeten verwijzen naar:</p>
<pre class="plain">
Documentroot /pad_naar_cakephp_installatie/app/webroot
</pre>
<p>Om de applicatie te bezoeken ga je naar het geconfigureerde domein. (bijvoorbeeld http://www.example.com)</p> />