Cakephp Classroom image

Anil  Bist / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10|Last
Lessons:-Getting Started

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 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)
lib/
plugins/
vendors/
.htaccess
index.php
README
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.
Advanced Installation and server specific configuration
Advanced Installation
There may be some situations where you wish to place CakePHP’s directories on different places on the
filesystem. This may be due to a shared host restriction, or maybe you just want a few of your apps to share
the same Cake libraries. This section describes how to spread your CakePHP directories across a filesystem.
First, realize that there are three main parts to a Cake application:
1. The core CakePHP libraries, in /lib/Cake.
2. Your application code, in /app.
3. The application’s webroot, usually in /app/webroot.
Each of these directories can be located anywhere on your file system, with the exception of the webroot,
which needs to be accessible by your web server. You can even move the webroot folder out of the app
folder as long as you tell Cake where you’ve put it.
To configure your Cake installation, you’ll need to make some changes to the following files.
• /app/webroot/index.php
• /app/webroot/test.php (if you use the Testing feature.)
There are three constants that you’ll need to edit: ROOT, APP_DIR, and CAKE_CORE_INCLUDE_PATH.
• ROOT should be set to the path of the directory that contains your app folder.
• APP_DIR should be set to the (base)name of your app folder.
• CAKE_CORE_INCLUDE_PATH should be set to the path of your CakePHP libraries folder.

 
 
 
image
Anil  Bist

Skills    Cakephp

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore

 

  Students (0)