Monday, February 1, 2010

Re: Advanced Installation

Why dont you just use absolute paths for all the constants? Theres no
point in using dirname() over and over again.

Secondly, have you printed our your $_SERVER['DOCUMENT_ROOT"] to see
if its the correct path?

On Feb 1, 2:15 pm, Raydon <raydo...@ymail.com> wrote:
> Hi,
>
> I'm attempting to install cake on my server using the advanced
> installation instructions. When I do a normal install everything
> appears to work correctly. However, when I attempt to move the cake
> folder all I get is a blank screen.
>
> Here is the configuration I am trying to achieve:
>
>     Cake folder: /var/www/vhosts/cake
>     App foler: /var/www/vhosts/site1.com/httpdocs/app
>     Webroot folder: /var/www/vhosts/site1.com/httpdocs/app/webroot
>
> My index folder in the webroot is defined like this:
>
>     define('ROOT', dirname(dirname(dirname(__FILE__))));
>     define('APP_DIR', basename(dirname(dirname(__FILE__))));
>     define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(dirname
> (dirname(__FILE__))))));
>
> I have also tried this:
>
>     define('CAKE_CORE_INCLUDE_PATH', DS.'var'.DS.'www'.DS.'vhosts');
>
> Any help would be greatly appreciated.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: