title: CakePhp 2.4 "Error: Shell class HelloShell could not be found." Paths mess?
body: <p>I have found several answers on that topic, but none did help me.</p>
  
  <p>So here is the situation. I work on a ubuntu system and my default cakephp 2.4.4 installation is under:</p>
  
  <pre><code>/var/www/myproject/
    /gkm-be (this is my app)
    /lib/Cake
  </code></pre>
  
  <p>So all  paths here are default and the gkm_be app in general is working smoothly.</p>
  
  <p>In my .bashrc I have the following setting:</p>
  
  <pre><code>PATH=$PATH:$HOME/bin
  export PATH="$PATH:/var/www/myproject/lib/Cake/Console/"
  </code></pre>
  
  <p>When I open a new shell and go to the directory /var/www/myproject/gkm-be and type
      Console/cake 
  I get the error
      bash: Console/cake: File or directory not found
  after
      cd /var/www/myproject/gkm-be/Console/
  if I enter cake then I get the core cake with following output</p>
  
  <pre><code>Welcome to CakePHP v2.4.4 Console
  ---------------------------------------------------------------
  App : Console
  Path: /var/www/myproject/gkm-be/Console/
  ---------------------------------------------------------------
  Current Paths:
  
  -app: Console
  -working: /var/www/myproject/gkm-be/Console
  -root: /var/www/myproject/gkm-be
  -core: /var/www/myproject/lib
  
  Changing Paths:
  
  Your working path should be the same as your application path. To change your path use the '-app' param.
  Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp
  
  Available Shells:
  
  [CORE] acl, api, bake, command_list, console, i18n, schema, server, test, testsuite, upgrade
  </code></pre>
  
  <p>Note the paths for -app and -working</p>
  
  <p>Not to mention of course that my HelloShell located under </p>
  
  <pre><code>/var/www/myproject/gkm-be/Console/Command/HelloShell.php
  </code></pre>
  
  <p>is neither listed nor can be called.</p>
  
  <p>Were did I set a path wrong? Can anybody spot the mistake?</p>
  
  <p>Calamity Jane</p>
  
  <p>PS: The code from the shell:</p>
  
  <pre><code>class HelloShell extends AppShell
  {
  
      public function main()
      {
          date_default_timezone_set('Europe/Berlin');
          $this-&gt;out('Hello world.');
      }
  
  }
  </code></pre>