Re: CakePHP + nginx + VPS
Ive done this many times, here's my nginx setup: domain1.com/ ---public/ --app/ ---private/ ---logs/ domain2.com/ ---public/ --app/ ---private/ ---logs/ The public folder contains the cake/php app files. Private contains anything that's shouldn't be accessible, and logs is logs. The nginx root should point to /public/app/webroot/. My cake folder is set outside of all these folders and is setup like so: /cake/cake (primary) /1.3/cake /1.3.5/cake This way anytime theres a new version, you just update the core cake folder instead of having to update the constants in the php files. If you need different apps to use different versions, you still can. On Jan 5, 4:44 pm, Jon Bennett wrote: > > Just curious if any one has set this type of install up. Cake on nginx? > > > So far just getting everything set up and ended up with > > srv/www/domain.com/public_html/app => all my files > > > I want to keep cake folder outside web access so I was going to use > > lib/{cakeversions}/cake > > > Any tips / pointers. I will deal with the absence of htaccess files after. > > Just for now getting the proper structure. > > I do: > > project (svn repository) trunk > - libs > - - cakephp > - - - cakephp-version > - app (named after the project usually) > - - webroot <- this is the nginx doc root. > > All you need in webroot/index.php for the above to work is to point > cake at the correct version, eg: > > define('CAKE_CORE_INCLUDE_PATH', ROOT.'/libs/cakephp/cakephp-1.3.1'); > > My good pal Andy has a blog post with an nginx conf on > ithttp://andy-gale.com/cakephp-view-memcache.html > > hth, > > J > > -- > jon bennett -www.jben.net- blog.jben.net 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
RE: CakePHP + nginx + VPS
Right on thanks. Will check his blog to. Dave I do: project (svn repository) trunk - libs - - cakephp - - - cakephp-version - app (named after the project usually) - - webroot <- this is the nginx doc root. All you need in webroot/index.php for the above to work is to point cake at the correct version, eg: define('CAKE_CORE_INCLUDE_PATH', ROOT.'/libs/cakephp/cakephp-1.3.1'); My good pal Andy has a blog post with an nginx conf on it http://andy-gale.com/cakephp-view-memcache.html hth, J -- jon bennett - www.jben.net - blog.jben.net 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP + nginx + VPS
> Just curious if any one has set this type of install up. Cake on nginx? > > > > So far just getting everything set up and ended up with > srv/www/domain.com/public_html/app => all my files > > > > I want to keep cake folder outside web access so I was going to use > lib/{cakeversions}/cake > > > > Any tips / pointers. I will deal with the absence of htaccess files after. > Just for now getting the proper structure. I do: project (svn repository) trunk - libs - - cakephp - - - cakephp-version - app (named after the project usually) - - webroot <- this is the nginx doc root. All you need in webroot/index.php for the above to work is to point cake at the correct version, eg: define('CAKE_CORE_INCLUDE_PATH', ROOT.'/libs/cakephp/cakephp-1.3.1'); My good pal Andy has a blog post with an nginx conf on it http://andy-gale.com/cakephp-view-memcache.html hth, J -- jon bennett - www.jben.net - blog.jben.net 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en