---
title: 'CakePHP: Central cake core install with multiple apps'
url: 'https://maxwesten.nl/blog/articles/cakephp-central-cake-core-install-with-multiple-apps'
markdown: 'https://maxwesten.nl/blog/articles/cakephp-central-cake-core-install-with-multiple-apps.md'
date: '2007-05-08'
description: "When developing on my system I like to use only one version of the core files. If I update the core files from svn it gets updated for all apps I'm working on. The way I'm using this is explained below: In my web-roo"
taxonomy:
  category:
    - OSX
    - PHP
  tag:
    - CakePHP
    - OSX
    - PHP
    - Terminal
  archives_month:
    - may_2007
  archives_year:
    - '2007'
---

# CakePHP: Central cake core install with multiple apps

[Home](https://maxwesten.nl/)  [Blog](https://maxwesten.nl/blog)  [Articles](https://maxwesten.nl/blog/articles)  CakePHP: Central cake core install with multiple apps 

## [ CakePHP: Central cake core install with multiple apps](https://maxwesten.nl/blog/articles/cakephp-central-cake-core-install-with-multiple-apps)

    8th May 2007   [CakePHP](https://maxwesten.nl/tag:CakePHP#body-wrapper) [OSX](https://maxwesten.nl/tag:OSX#body-wrapper) [PHP](https://maxwesten.nl/tag:PHP#body-wrapper) [Terminal](https://maxwesten.nl/tag:Terminal#body-wrapper)  

When developing on my system I like to use only one version of the core files. If I update the core files from svn it gets updated for all apps I'm working on.

The way I'm using this is explained below:

In my web-root I do an svn export of cake latest:

```
cd /Users/mwesten/Sites
svn export https://svn.cakephp.org/repo/branches/1.2.x.x/ cake1.2.x.x

```

Now we have the latest core files on our system.

If I like to create an app I'll do the following:

```
cp -R /Users/mwesten/Sites/cake1.2.x.x/app /Users/mwesten/Sites/dev/myapp

```

Then I change the following file to point to the correct core files:

```
mate /Users/mwesten/Sites/dev/myapp/webroot/index.php

```

Then add the line

```
define('CAKE_CORE_INCLUDE_PATH', '/Users/mwesten/Sites/cake1.2.x.x');

```

before the part saying:

```
/**
 * Do not change
 */

```

If you go to the page **<http://localhost/dev/myapp/>** it then shows the cakephp welcome page.

 [ Previous Article](https://maxwesten.nl/blog/articles/cakephp-calling-bake-from-every-dev-app-install-folder) [Next Article ](https://maxwesten.nl/blog/articles/cakephp-on-osx-problem-using-bakephp-script)

#### Related Posts

- 100 

     [Easiest local development environment on OSX](https://maxwesten.nl/blog/articles/easiest-local-development-environment-on-osx "Easiest local development environment on OSX")
- 100 

     [Setting up MockSMTP on OSX 10.7(Lion) for local PHP development](https://maxwesten.nl/blog/articles/setting-up-mocksmtp-on-osx-10-7lion-for-local-php-development "Setting up MockSMTP on OSX 10.7(Lion) for local PHP development")
- 100 

     [Mod\_security settings for Wordpress 3.x](https://maxwesten.nl/blog/articles/mod_security-settings-for-wordpress-3-x "Mod_security settings for Wordpress 3.x")
- 100 

     [Developing in PHP with NetBeans 6.8](https://maxwesten.nl/blog/articles/developing-in-php-with-netbeans "Developing in PHP with NetBeans 6.8")
- 100 

     [Installing xDebug 2.0.4 or 2.1 on OSX](https://maxwesten.nl/blog/articles/installing-xdebug-204-or-21-on-osx "Installing xDebug 2.0.4 or 2.1 on OSX")

[←](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/previous)An IndieWeb Webring 🕸💍 [→](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/next)

---

## Navigation

- Parent: [Articles](https://maxwesten.nl/blog/articles.md)
- Previous: [CakePHP on OSX: Problem using Bake.php script](https://maxwesten.nl/blog/articles/cakephp-on-osx-problem-using-bakephp-script.md)
- Next: [CakePHP: Calling bake from every dev-app install folder](https://maxwesten.nl/blog/articles/cakephp-calling-bake-from-every-dev-app-install-folder.md)
