<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Ninja vs Penguin - Latest Comments in CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://ninjavspenguin.disqus.com/</link><description></description><atom:link href="https://ninjavspenguin.disqus.com/cakephp_install_multiple_subdirectories_038_500_error/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 28 Feb 2011 14:11:27 -0000</lastBuildDate><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-157788785</link><description>&lt;p&gt;Thanks alot, but what is the index.php file supposed to look like in the root directory? There still must be one there, but you only detail what to do with the index.php in /blog. Can you elaborate further?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">obert</dc:creator><pubDate>Mon, 28 Feb 2011 14:11:27 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-51585417</link><description>&lt;p&gt;Ups, solved&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland</dc:creator><pubDate>Sun, 23 May 2010 09:59:25 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-51585086</link><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;Thx for the post, helped me a lot!&lt;br&gt;now everything works, expect that I don't have a clue on where to find the logs.&lt;br&gt;Where should the tmp folder be.&lt;br&gt;There are no logs written to /apps/blog/tmp/logs nor http/tmp nor http/blog/tmp :-/&lt;/p&gt;&lt;p&gt;Any tipps?&lt;/p&gt;&lt;p&gt;thx&lt;br&gt;Roland&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland</dc:creator><pubDate>Sun, 23 May 2010 09:52:38 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-32203972</link><description>&lt;p&gt;I can't thank you enough, I have been stuck trying to get my cake app onto a test site for weeks and this post helped me solve the problem. Thanks a million!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Phil</dc:creator><pubDate>Sun, 31 Jan 2010 06:37:08 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-29333267</link><description>&lt;p&gt;Your blog is very much useful and rocking dear. you have provided detailed knowledge and information about today's latest technologies, online communications and other businesses. If you want to get the knowledge of latest technologies, then you must take a latest information. For the some developing success, you can get information about &lt;a href="http://www.hostcue.com" rel="nofollow noopener" target="_blank" title="http://www.hostcue.com"&gt;cheap web hosting&lt;/a&gt;. Thanks a lot for your great post. I really enjoy your post and also wait for your latest posts. Well done.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mariojulia4</dc:creator><pubDate>Mon, 11 Jan 2010 07:14:56 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354755</link><description>&lt;p&gt;Hey there,&lt;/p&gt;&lt;p&gt;Just a short note for CakePHP 1.2: If you want to solve the 500 Error with least changes possible just add the appropriate RewriteBase command to the app/webroot/.htaccess file. This is where any request lands somewhere during the "bootstrap process" anyway and it is easy to remove once an application goes live on a single domain.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Caffeine</dc:creator><pubDate>Fri, 18 Jul 2008 08:00:10 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354754</link><description>&lt;p&gt;Damn, I wish I had found this post two weeks ago. I would have saved so much configuration time. My .htaccess files had all disappeared, so copying and pasting the Apache code from this post still saved the day.&lt;/p&gt;&lt;p&gt;Awesome job.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">spamguy</dc:creator><pubDate>Sat, 07 Jun 2008 17:33:50 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354751</link><description>&lt;p&gt;Hi rollins,&lt;/p&gt;&lt;p&gt;That's some nice .htaccess ninja you got going.  I'm glad you were able to find a solution that works for you :)&lt;/p&gt;&lt;p&gt;-Penguin&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NinjaVsPenguin</dc:creator><pubDate>Thu, 08 May 2008 01:01:18 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354750</link><description>&lt;p&gt;Thanks for the tips.  I ended up just sticking the entire cake directory into ~/public_html, and named it for my application.  Then I took Alun's advice and added RewriteBase /~user/application to each of the .htaccess files.  Then I just stuck a redirect from ~user to ~user/applicaiton an I was good to go.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rollins</dc:creator><pubDate>Thu, 08 May 2008 00:58:52 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354753</link><description>&lt;p&gt;Hi Scott,&lt;/p&gt;&lt;p&gt;I never actually got Bake to work, not even in the "normal" configuration.  So, unfortunately, I can't be of any help.&lt;/p&gt;&lt;p&gt;Good luck with your projects!&lt;br&gt;-Penguin&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NinjaVsPenguin</dc:creator><pubDate>Wed, 02 Apr 2008 16:23:52 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354752</link><description>&lt;p&gt;I changed my setup to match this configuration and ALMOST everything was working. I couldn't get the bake console script to work. It wouldn't copy files when creating a project or write the models files.&lt;/p&gt;&lt;p&gt;I moved the app files below the webroot and bake starting working again.&lt;/p&gt;&lt;p&gt;Any idea why?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scott</dc:creator><pubDate>Wed, 02 Apr 2008 16:21:07 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354749</link><description>&lt;p&gt;The locations of the three files are&lt;/p&gt;&lt;p&gt;root/&lt;br&gt;root/app&lt;br&gt;root/app/webroot&lt;/p&gt;&lt;p&gt;not cake as you suggested above ;)&lt;/p&gt;&lt;p&gt;Thanks for the articel though it's helped me sort my problem out.  I had to add RewriteBase / to each .htaccess and it all works great now :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alun</dc:creator><pubDate>Mon, 06 Aug 2007 10:57:19 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354748</link><description>&lt;p&gt;addition :&lt;br&gt;due to posting the ’ needs to be changed to ' (the single apos next to enter)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">joren</dc:creator><pubDate>Wed, 25 Jul 2007 17:25:39 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354747</link><description>&lt;p&gt;Thanks, Joren!  It looks great!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NinjaVsPenguin</dc:creator><pubDate>Wed, 25 Jul 2007 16:02:38 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354746</link><description>&lt;p&gt;hey thanks alot for the help to start, i have made some modifications that might help alot of people ..&lt;/p&gt;&lt;p&gt;these small modifications will save you lots of works!!&lt;/p&gt;&lt;p&gt;what they do are the following :&lt;br&gt;generate on-the-fly the ROOT-location and more!!!&lt;/p&gt;&lt;p&gt;i have tested it and i loved it myself :)&lt;/p&gt;&lt;p&gt;===========================&lt;/p&gt;&lt;p&gt;so what you need to do is, open the original /app/webroot/index.php&lt;br&gt;go to line 41 and replace the following lines with the original!&lt;/p&gt;&lt;p&gt;	chdir("../../");&lt;br&gt;	$root = getcwd();&lt;/p&gt;&lt;p&gt;	if (!defined('ROOT')) {&lt;br&gt;		//define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';&lt;br&gt;		//You should also use the DS define to seperate your directories&lt;br&gt;		define('ROOT', $root.DS.'apps');&lt;br&gt;	}&lt;br&gt;	if (!defined('APP_DIR')) {&lt;br&gt;		//define('APP_DIR', 'DIRECTORY NAME OF APPLICATION';&lt;br&gt;		define('APP_DIR', basename(dirname(__FILE__)));&lt;br&gt;	}&lt;br&gt;/**&lt;br&gt; * This only needs to be changed if the cake installed libs are located&lt;br&gt; * outside of the distributed directory structure.&lt;br&gt; */&lt;br&gt;	if (!defined('CAKE_CORE_INCLUDE_PATH')) {&lt;br&gt;		//define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';&lt;br&gt;		//You should also use the DS define to seperate your directories&lt;br&gt;		define('CAKE_CORE_INCLUDE_PATH', $root);&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">joren</dc:creator><pubDate>Wed, 25 Jul 2007 16:00:20 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354745</link><description>&lt;p&gt;Nice article. Very helpful.  Can you attach your htaccess per your article?  Since you moved your webroot dir you can't be using:&lt;/p&gt;&lt;p&gt;RewriteEngine on&lt;br&gt;RewriteRule ^$ app/webroot/ [L]&lt;br&gt;RewriteRule (.*) app/webroot/$1 [L]&lt;/p&gt;&lt;p&gt;I am a newbie to working with rewrite rules and I can't figure out how to path it properly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave</dc:creator><pubDate>Sun, 22 Jul 2007 05:05:09 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354744</link><description>&lt;p&gt;Thanks for this post. Part 2 should be included into cake manual! :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Blackie</dc:creator><pubDate>Thu, 05 Jul 2007 03:16:35 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354743</link><description>&lt;p&gt;Yes, the solution to problem 2 is complete.  You shouldn't have to edit the .htaccess files.  The only one you might have to edit is the first one:&lt;/p&gt;&lt;p&gt;First: in the core cakephp directory&lt;br&gt;/cake&lt;/p&gt;&lt;p&gt;contents of .htaccess (unedited)&lt;/p&gt;&lt;p&gt;RewriteEngine on&lt;br&gt;RewriteRule ^$ app/webroot/ [L]&lt;br&gt;RewriteRule (.*) app/webroot/$1 [L]&lt;/p&gt;&lt;p&gt;This tells cakePHP where you webroot is.  If you have a basic install, then this shouldn't need to change.  If you have a different directory for your apps, then you'll need to change the directories accordingly.&lt;/p&gt;&lt;p&gt;HTH.&lt;/p&gt;&lt;p&gt;-Penguin&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NinjaVsPenguin</dc:creator><pubDate>Mon, 23 Apr 2007 08:38:58 -0000</pubDate></item><item><title>Re: CakePHP Install: Multiple Subdirectories &amp;#038; 500 Error</title><link>http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/#comment-1354742</link><description>&lt;p&gt;Hi. Is the solution for problem 2 complete? I can't seem to find the edited versions of the 3 .htaccess files? Can I have the link if it's posted someplace else? Thanks! =)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jahypee09</dc:creator><pubDate>Mon, 23 Apr 2007 04:11:47 -0000</pubDate></item></channel></rss>