Re: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-05 Thread [EMAIL PROTECTED]

Hoo boy.  This is a big one for Mac users to look out for!  Macs are
Unix and like Unix systems, hidden files are hidden (i.e. .htaccess
files)  If you download the Cake distro and then upload it to your
server in the GUI, you may not copy all of the .htaccess files and
that will lead to all the hairpulling nonsense just recently posted
here.

Argh.

On Mar 5, 10:23 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> WAITAMINUTE!!!
>
> Ok.  Now I'm totally baffled--not your fault at all, hydra12.  I did
> everything we discussed and it all worked like a charm, sort of.  I
> could add controller files and models and see them, but still no css.
> And still no direct URL calls to the controllers.  So since you kindly
> established for me already that putting the cake core files in my main
> web directory won't bother wordpress, I decided to scrap the whole
> subdomain junk and just build a development directory like in the
> manual.  I mean, c'mon, all I wanna do is play with cake, not
> repeatedly try to install it in different ways for a week now.  So, I
> set up the development directory, *exactly* as specified in the
> manual.  i.e. this:
>
> /wwwroot
> /cake
> /app
> /cake
> /vendors
> .htaccess
> index.php
>
> No more subdomain, so no more problem, right?  Guess what?  After I
> add my controller and my model and get a note that the database config
> is fine, STILL no css, STILL no direct calls to the models.  WTF!?
> Clearly something is missing from the manual.  Why can't I see css/
> cake.generic.css without dialing it directly?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-05 Thread [EMAIL PROTECTED]

WAITAMINUTE!!!

Ok.  Now I'm totally baffled--not your fault at all, hydra12.  I did
everything we discussed and it all worked like a charm, sort of.  I
could add controller files and models and see them, but still no css.
And still no direct URL calls to the controllers.  So since you kindly
established for me already that putting the cake core files in my main
web directory won't bother wordpress, I decided to scrap the whole
subdomain junk and just build a development directory like in the
manual.  I mean, c'mon, all I wanna do is play with cake, not
repeatedly try to install it in different ways for a week now.  So, I
set up the development directory, *exactly* as specified in the
manual.  i.e. this:

/wwwroot
/cake
/app
/cake
/vendors
.htaccess
index.php

No more subdomain, so no more problem, right?  Guess what?  After I
add my controller and my model and get a note that the database config
is fine, STILL no css, STILL no direct calls to the models.  WTF!?
Clearly something is missing from the manual.  Why can't I see css/
cake.generic.css without dialing it directly?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-03 Thread hydra12

Sorry if I wasn't quite clear.  Sometimes things are really obvious to
me, and I just assume everyone else will understand :-)

> When you say 'root' here you mean the root for all web activities
> right? ('public_html' as opposed to /root?)

Yes, I mean the place where all of your html files live.  For me, it's
c:\web\projects.  For you, it looks like it's public_html.

> > Now put your app in it's own folder in the root (dev, in your case).
>
> When you say put my app in it's own folder, does this mean the 'app/'
> folder or just the webroot folder?  Wouldn't the first option create a
> duplicate app folder different from the one in the first step?

Put the whole app folder in your public_html folder.  I use bake.php a
lot of times, and I just tell it to bake my project in the right
place.  For me, I use: c:\web\projects>php bake.php -project c:\web
\projects\dev (or whatever the project name is).  This is essentially
the same as copying the app folder from cake and pasting it into c:\web
\projects and then changing the name to dev.

> > Now your root should have something like the following:wp-admin, 
> > wp-content, wp-includes, cake, dev.
>
> OK!  This is definitely the case.
>
> In fact the whole thing, just to be clear looks like this
> public_html/
>wp-admin
>wp-content
>wp-includes
>cake
>   app/
>   cake/
>   docs/
>   vendors/
>dev/
>webroot/
>
> Does that look right?

dev should also have controllers, config, models, views, etc.

> > In your dev folder, in webroot, edit your index.php file.  Change this line:
> >  define('CAKE_CORE_INCLUDE_PATH', ROOT.DS);
> > to look like this:
> >  define('CAKE_CORE_INCLUDE PATH', ROOT.DS.'cake');
>
> Yup. Did this.

Now it should work.  My guess is, you just copied the webroot folder
and not the whole app folder.

I hope that helps!
hydra12


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-02 Thread [EMAIL PROTECTED]

Thanks a lot for your help!  I've been frustrated with this all week!
Unfortunately, this didn't work.  I assume its because I followed one
of these instructions wrong, so to clarify:

> Try this - first, make a cake folder inside your root folder and put cake in 
> it (app, cake, etc).

When you say 'root' here you mean the root for all web activities
right? ('public_html' as opposed to /root?)

> Now put your app in it's own folder in the root (dev, in your case).

When you say put my app in it's own folder, does this mean the 'app/'
folder or just the webroot folder?  Wouldn't the first option create a
duplicate app folder different from the one in the first step?

> Now your root should have something like the following:wp-admin, wp-content, 
> wp-includes, cake, dev.

OK!  This is definitely the case.

In fact the whole thing, just to be clear looks like this
public_html/
   wp-admin
   wp-content
   wp-includes
   cake
  app/
  cake/
  docs/
  vendors/
   dev/
   webroot/

Does that look right?

> In your dev folder, in webroot, edit your index.php file.  Change this line:
>  define('CAKE_CORE_INCLUDE_PATH', ROOT.DS);
> to look like this:
>  define('CAKE_CORE_INCLUDE PATH', ROOT.DS.'cake');

Yup. Did this.

> Now you can browse tohttp://yourdomain/devand see your app without
> having to alter your .htaccess rules.  If you want to add a new app,
> make a new folder in your root, put your app in, and edit it's webroot/
> index.php file.

At this point I'm just getting this:
Warning: main(cake/basics.php): failed to open stream: No such file or
directory in /home/tropedc/public_html/dev/index.php on line 54


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-02 Thread hydra12

Try this - first, make a cake folder inside your root folder and put
cake in it (app, cake, etc).  Now put your app in it's own folder in
the root (dev, in your case).  Now your root should have something
like the following:wp-admin, wp-content, wp-includes, cake, dev.

In your dev folder, in webroot, edit your index.php file.  Change this
line:
 define('CAKE_CORE_INCLUDE_PATH', ROOT.DS);
to look like this:
 define('CAKE_CORE_INCLUDE PATH', ROOT.DS.'cake');

Now you can browse to http://yourdomain/dev and see your app without
having to alter your .htaccess rules.  If you want to add a new app,
make a new folder in your root, put your app in, and edit it's webroot/
index.php file.

I hope that helps!
hydra12

On Mar 1, 7:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> The documentation over at the CakePHP manual is far too complex for
> what I think I'm trying to do.  I have an account on a shared server
> and the top level domain is already running wordpress.  If I put Cake
> in the top level, that will break Wordpress, right?  So I created a
> subdomain "dev" and installed Cake there.  And I created a .htaccess
> file like this:
>
> 
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /app/webroot/ [L]
> 
>
> Weird.  This only *partly* works.  For instance, the CSS files are not
> being included.  When called directly, i.e. dev.domain.com/css/
> cake.generic.css I only get back the index.php file in webroot.  Also,
> I set up a controller called "notes" and can call it only through the
> app directory, i.e. dev.domain.com/app/notes and it works (no css).
> However,  dev.domain.com/notes only returns me to the index.php


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---