According to the error it looks like it is looking for cake inside of your 
app. Because you have control of apache you can change what it considers 
your webroot or since security isn't a huge issue in a flash drive I would 
just toss your cake folder inside your htdocs, leave your app folder inside 
the cake folder, and then move your apps webroot outside into htdocs as 
well. Then modify your index.php file inside your webroot file to point to 
your cake folder. That way you can just reference localhost/myapp and it 
should work(or add whatever port it runs on).
It would look like this
-htdocs
--myappwebroot
--cake
---lib
---myapp

--myappwebroot
---index.php

index.php 

if (!defined('ROOT')) {
        define('ROOT', dirname(dirname(__FILE__)) . DS . 'cake');
    }
/**
 * The actual directory name for the "app".
 *
 */
    if (!defined('APP_DIR')) {
        define('APP_DIR', 'myapp');
    }

On Saturday, March 10, 2012 12:26:53 PM UTC-8, gaz wrote:
>
> Hi! 
>
> I have been trying to install cakephp on USB. I figured hey how hard 
> could it be. I r stuck :(. Goggled a lot but not much on the topic so 
> here is what i did i hope someone could give some points on how to 
> continue. 
>
> Until now i : 
>
> 1. 
> used zip usb version of xampp 1.7.7. -> "g:\myapp\htocs" , is how it 
> looks 
> ran the setup xampp bat 
> ran the start xampp and mysql bat files 
> and is XAMPP 1.7.7 up and running 
>
> 2. 
> configured my mysql with user passwords ..general stuff 
>
> 3. Cakephp -> internal server error  when executing the index.php in 
> the root folder 
>
> From the logfile of the php could be seen that the paths are totally 
> wrong. The error repeats for a lot of stuff. 
>
> Example: 
> [10-Mar-2012 21:06:48] PHP Warning:  include(C:\xampp\htdocs\cakephp 
> \lib\Cake\Error\ErrorHandler.php) [<a 
> href='function.include'>function.include</a>]: failed to open stream: 
> No such file or directory in G:\myapp\htdocs\myapp\lib\Cake\Core 
> \App.php on line 505 
>
>
> So any insights on how to configure the cake to use relative paths or 
> at least the right ones? As the setup_xampp.bat was run the paths 
> should be ok. 
>  Or maybe point me to what paths i should check for in the phpinfo(). 
>
> Thanks in advance

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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

Reply via email to