Installing CakePHP
- Download the Installation Files. The cake installation should contain the following structure:
cake
- app/
- cake/
- docs/
- vendors/ - After downloading the CakePHP installation files, upload all of the files (keeping the same structure) to your webserver.
- There are 4 directory paths you need to know in order to install CakePHP successfully:
- 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/)
- Application Code - This is a relative path from your root path to the cake/app directory
- 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
- The Root of your website which your domain points to e.g. wwwroot
- Grab the contents of cake/app/webroot and put them in the root of your website
- 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):
define('ROOT', Path 1 - Root);define('APP_DIR', Path 2 - Relative Path from root to app folder);define('CAKE_CORE_INCLUDE_PATH',Path 3 - Full path to CakePHP installation folder);