Jenski

Jenski's Corner of the Web

Installing CakePHP

  1. Download the Installation Files. The cake installation should contain the following structure:

    cake
    - app/
    - cake/
    - docs/
    - vendors/

  2. After downloading the CakePHP installation files, upload all of the files (keeping the same structure) to your webserver.
  3. There are 4 directory paths you need to know in order to install CakePHP successfully:
    1. The Root where your web services are e.g. /var/www/( or if you are on a shared hosting account, this is the highest level of the server you can access e.g. /home/)
    2. Application Code - This is a relative path from your root path to the cake/app directory
    3. The Core CakePHP Libraries - This is the full path to your cake installation folder e.g. /usr/lib/cake/ (shared hosting accounts might be: e.g. cake/app
    4. The Root of your website which your domain points to e.g. wwwroot
  4. Grab the contents of cake/app/webroot and put them in the root of your website
  5. Edit index.php in the root of your website and change these variables to the paths described above (don't forget to use DS instead of '/'s):
    1. define('ROOT', Path 1 - Root);
    2. define('APP_DIR', Path 2 - Relative Path from root to app folder);
    3. define('CAKE_CORE_INCLUDE_PATH',Path 3 - Full path to CakePHP installation folder);

References: