Hi again, I finally managed to get it resolved. Your tip of looking into the error logs clarified the problem for me. The errors I was receiving was that bootstrap could not be loaded due to the paths not being correct (They where relative instead of absolute). So I then added the absolute directory paths again and it started to work! Phew. A whole day just to get the configuration right :) Ah well at least its gona take me a while until I forget it :P
Thanks for your help. // Ville On Jul 7, 11:29 pm, majna <[email protected]> wrote: > Please paste htaccess files in /htdocs (if any) > and in /Blog > > Blank page? Set debug to 1, and check apache error log, > you can even debug apache rewrite engine (google on that. > > On Jul 7, 5:21 pm, Villeit <[email protected]> wrote: > > > Thanks for the advice, Majna. But unfortunately it didn't work: > > I entered following code on each line (And all kinds of combinations > > with absolute and relative paths to these directories) in the Blog/ > > webroot/index.php > > > /** > > * The full path to the directory which holds "app", WITHOUT a > > trailing DS. > > */ > > if (!defined('ROOT')) { > > define('ROOT', 'C:'.DS.'Program Files'.DS.'Apache > > Software Foundation'.DS.'Apache2.2'.DS.'htdocs'); > > } > > /** > > * The actual directory name for the "app". > > */ > > if (!defined('APP_DIR')) { > > define('APP_DIR', 'C:'.DS.'Program Files'.DS.'Apache > > Software Foundation'.DS.'Apache2.2'.DS.'htdocs'.DS.'Blog'); > > } > > /** > > * The absolute path to the "cake" directory, WITHOUT a trailing DS. > > */ > > if (!defined('CAKE_CORE_INCLUDE_PATH')) { > > define('CAKE_CORE_INCLUDE_PATH', > > 'C:'.DS.'Program Files'.DS.'Apache Software > > Foundation'.DS.'Apache2.2'.DS.'htdocs'.DS.'cakeroot'); > > } > > > Could there be something else that I could be missing? > > Thanks, > > Ville > > > On Jul 7, 7:59 pm, majna <[email protected]> wrote: > > > > define('CAKE_CORE_INCLUDE_PATH', 'htdocs'.DS.'cakeroot'); > > > use full path, like > > > /home/htdocs... > > > c:/htdocs,... > > > > On Jul 7, 10:51 am, Villeit <[email protected]> wrote: > > > > > Hi, I am completely new to CakePHP and I have just finished the first > > > > tutorial of building the Blog website. It worked well under my CakePHP > > > > installation, however I realised that having this structure means I > > > > need a Cake framework for each app. Not so good on my dev machine. > > > > So I decided I am going to configure my standard CakePHP installation > > > > so I can use the same framework for multiple Cake applications. > > > > > My current structure is as follows: > > > > > /htdocs (My Apache DocumentRoot) > > > > /cakeroot (contains the CakePHP installation. Version 1.2.3.8166) > > > > /app > > > > /cake > > > > /vendors > > > > /Website1 (Not using Cake) > > > > /Blog (a renamed copy of the /app directory) > > > > /config > > > > /controllers > > > > /locale > > > > /models > > > > /plugins > > > > /tests > > > > /tmp > > > > /vendors > > > > /views > > > > /webroot > > > > > So if I understand things correctly, I am supposed to configure the 3 > > > > sections in > > > > /Blog/webroot/index.php as to get the application running from another > > > > directory path. > > > > Below is my configuration in this file: > > > > > // The full path to the directory which holds "app", WITHOUT a > > > > trailing DS. > > > > if (!defined('ROOT')) { > > > > define('ROOT', 'htdocs'); > > > > > } > > > > > //The actual directory name for the "app". > > > > if (!defined('APP_DIR')) { > > > > define('APP_DIR', 'Blog'); > > > > > } > > > > > //The absolute path to the "cake" directory, WITHOUT a trailing DS. > > > > if (!defined('CAKE_CORE_INCLUDE_PATH')) { > > > > define('CAKE_CORE_INCLUDE_PATH', 'htdocs'.DS.'cakeroot'); > > > > > } > > > > > But my problem is that when I try to access "http://localhost/Blog" I > > > > get a blank page! > > > > > The current /cakeroot/app directory contains the same application as > > > > the Blog directory and that > > > > one works fine on my browser as "http://localhost/cakeroot" (I > > > > configured the routing to make the URL neater) > > > > > What am I missing? > > > > > Thanks, > > > > Ville --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---
