Let's suppose your host do have a setup like this, when you do an ftp:

/                     < your root, you cannot go to parent folder
/public_html     < the docroot folder


no you create a 'cakeapps' folder and a 'cake' folder
/
/public_html
/cakeapps
/cake


now, you copy your whole app folder to /cakeapps
and the original 'cake' folder to the /cake
the *contents* of the webroot folder go inside /public_html


/
/public_html   (index.php , /js,  /css , etc)
/cakeapps (/app)
/cake (/cake , /docs , /vendors)

now the 'complicated' part:
open '/public_html/index.php'  and edit the following paths to
something like this:


define('ROOT', '/cakeapps');

define('APP_DIR', 'jcl_clients');

define('CAKE_CORE_INCLUDE_PATH', '/cake');


 And that's it. Users will NOT have direct access to any of your
application archives, nor cake files, therefore it's harder to exploit
some security problem (with cake, apache/IIS or OS)

 I hope so :)

 spark


On 1/26/07, beetlecube <[EMAIL PROTECTED]> wrote:
>
> HI,
>   I have a question about folder organization of a CakePHp
> installation.
>
>   I'm about to upload my cakephp files to my Hostgator "baby croc"
> Shared server space.
>
>  In the CAkePHP manual, the suggested folder structure is:
>
> ../path_to_cake_install
>     /app
>         /controllers
>         /models
>         /webroot <-- Should be DocumentRoot
>         .htaccess
>         index.php
>
> Should I send a Support Email to Hostgator that I need to have the
> httpd.conf changed for rmy account, so that my webroot is
> "Mydomain.com/app/webroot"      ?
>
> I really have no particular way that I prefer the folder organization
> to be.
>
> I just want it to work, basically,  and preferably with the mod_rewrite
> enabled, so that I don't have to stick that "index.php" in the middle
> of everything.    But if I do have to use the "index.php" inside the
> URL,  no big deal even.
>
> ( if anyone has a method by which I need to rely on H.G. support as
> little as possible, please let me know. )
>
> Thanks, Steve
>
>
> >
>


-- 
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br/mp3

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to