In trying to bring up an installation on our development server I ran
into a few problems with missing CSS, JS, and Images thanks to improper
references in the redered HTML.  One thing that threw me off is that on
the wiki:

http://wiki.cakephp.org/tutorials:alternative_installation_locations

The variable WEBROOT_DIR is shown up above that DO NOT EDIT comment but
in the latest version that I pulled off the site (1.1.7.336) that
variable is shown below the comment.

Anyway, I read through a number of posts wondering how to set up Cake
with Aliases, so here's how I got it to work:

I put all of the cake files into
/usr/developer/cake/cake/

And all of my webroot files into:
/usr/developer/cake/www/

Setup http://www.site.com with an Apache Alias:

Alias  /cakedev  /usr/developer/cake/www

So that http://www.site.com/cakedev loads files from
/usr/developer/cake/www.

Now, for the settings in index.php in your webroot folder (for me
that's: /usr/developer/cake/www/index.php):

define('ROOT', '/usr/developer/cake/cake/');
define('APP_DIR', 'app');
define('CAKE_CORE_INCLUDE_PATH', '/usr/developer/cake/cake');
define('WEBROOT_DIR', 'cakedev');

Most installation instructions leave off that last one (WEBROOT_DIR)
and I have no idea why it is appearing in the DO NOT EDIT zone on the
latest release, but without that line all of your page references will
be prefaced with a simple '/' instead of '/cakedev/'.

To round everything out, don't forget to update your .htaccess file
with 'RewriteBase /cakedev' so that you don't break MOD_REWRITE.

This is my first installation, so take this advice with a grain of salt
- but it worked for me.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to