On Sep 26, 7:40 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Try adjusting the constants in your /var/www/webroot/cake-test/html/
> index.php.
>
> The three values you must have right: ROOT, APP_DIR, and
> CAKE_CORE_INCLUDE_PATH.
>
> I believe these values will work for your setup:
>
> define(ROOT, dirname(dirname(__FILE__)));
>
> define(APP_DIR, ROOT . DS . 'app');
>
> define(CAKE_CORE_INCLUDE_PATH, dirname(ROOT) . DS . 'cake');
>
> Jeff
>
> On Sep 26, 11:13 am, nobrow <[EMAIL PROTECTED]> wrote:
>
> > On Sep 26, 5:45 pm, nobrow <[EMAIL PROTECTED]> wrote:
>
> > > Noob question ...
>
> > > Im trying to work my way through the blog tutorial, but I keep getting
> > > 404s. It may well be related to the way I installed.
>
> > > I have the following setup:
>
> > > /var/www/webroot/cake
> > > /cake
> > > /docs
> > > index.php
> > > /vendors
>
> > > /var/www/webroot/cake-test
> > > /app
> > > /config
> > > /controllers
> > > etc.
> > > /html (previously app/webroot. Now empty)
>
> > > I have a virtual host setup whose address ishttp://cake-test. The
> > > document root is cake-test/html. Serving pages out of the doc root
> > > works, but
>
> > >http://cake-test/posts/index
>
> > > returns 404.
>
> > > php_info() would seem to indicate mod_rewrite is okay.
>
> > > Anyone got a clue?
>
> > Oh. So the contents of app/webroot (cake-test/html in my case) are
> > important then ... Am I right in thinking that I need to have at least
> > the .htaccess and index.php?
>
> > Still doesnt work though, but I wonder if thats because I dont have
> > the .htaccess from app anywhere. Where should this file go in my
> > setup, and do the .htaccesses need modification?
>
> > Thanks.
Thanks Jeff. Have done that already. The index will load okay and the
database connection is there and all that. Its just the generated
pages that dont work.
It must be about URL rewriting. I dont think the .htaccess files are
correct for my installation, and as I mentioned, I dont know where I
should be putting the one that would normally reside in app/. Doesnt
seem to make sense to put it in /var/www/webroot/cake-test/app as that
directory isnt being served!
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---