title: Getting Cakephp to work on a Debian server, but I'm having a missing controller error at the root
body: <p>I've been trying to get a cakePHP app to run on a Debian Server. It works find on localhost, using WAMP. At first I had issues with the rewrite not working. So I attempted to fix that by changing the owner of some of the folders to <code>www-data</code>, from root, as I read in other places on the internet that that would help. I changed the root of the cakephp app to www-data, and everything under that to <code>www-data</code> (recursively). But this still did not fix it.</p>
  
  <p>So I went to instructions for if you can't get url rewriting working, by doing the following...</p>
  
  <p>So I found some other instructions that said to get rid of the <code>./htaccess</code>, <code>/app/.htaccess</code> and <code>/app/webroot/.htaccess</code> files, which I did.</p>
  
  <p>And I uncommented the following lines in my cakephp folder:</p>
  
  <pre><code>Configure::write('App.baseUrl', env('SCRIPT_NAME'));
  Configure::write('App.fullBaseUrl', env('SCRIPT_NAME'));
  Configure::write('App.imageBaseUrl', 'img/');
  Configure::write('App.cssBaseUrl', 'css/');
  Configure::write('App.jsBaseUrl', 'js/');
  </code></pre>
  
  <p>Now I'm getting this error:</p>
  
  <pre><code>Missing Controller
  Error: CakeController could not be found.
  Error: Create the class CakeController below in file: app/Controller/CakeController.php
  &lt;?php
  </code></pre>
  
  <p>class CakeController extends AppController {</p>
  
  <p>}</p>
  
  <pre><code>Notice: If you want to customize this error message, create app/View/Errors/missing_controller.ctp
  Stack Trace
  APP/webroot/index.php line 108 → Dispatcher-&gt;dispatch(CakeRequest, CakeResponse)
  ROOT/index.php line 41 → require(string)
  </code></pre>
  
  <p>I think I have to change the <code>App.baseUrl</code> or the <code>App.fullBaseUrl</code>, to something else, but I am not sure to what.</p>
  
  <p>The root of the application is in <code>/ &lt;root&gt;/home/webdev/webroot/Cake</code>, and the public domain is located in <code>/ &lt;root&gt;/home/webdev/webroot</code>. I think that info may be relevant to solving the problem.</p>
  
  <p>Any help would be much appreciated. Thankyou</p>