title: Laravel from localhost to server error
body: <p>My laravel 4 project was created on localhost. Now i am trying to put it on the server (shared hosting) but i am running in to an error. First let me explain how i uploaded my laravel project.</p>
  
  <pre><code>mydomain.nl
  
  mydomain.nl--public_html
  mydomain.nl--public_html--dev
  mydomain.nl--public_html--packages
  mydomain.nl--public_html--index.php
  mydomain.nl--public_html--.htacces
  mydomain.nl--public_html--all other contents form public laravel folders 
  
  mydomain.nl--project
  mydomain.nl--project--bootstrap
  mydomain.nl--project--vendor
  mydomain.nl--project--app
  mydomain.nl--project--all other folders and files wich were not in laravel public folder
  </code></pre>
  
  <p>Then i changed my mydomain.nl/project/bootstrap/paths.php to:</p>
  
  <pre><code>'public' =&gt; __DIR__.'/../../public_html',
  </code></pre>
  
  <p>And my mydomain.nl/public_html/index.php to</p>
  
  <pre><code> require __DIR__.'/../project/bootstrap/autoload.php';
   $app = require_once __DIR__.'/../project/bootstrap/start.php';
  </code></pre>
  
  <p>If i go to my domain i get the following error</p>
  
  <p>Error in exception handler: The stream or file "/hostingvariables/project/app/storage/logs/laravel.log" could not be opened: fopen(/hostingvariables/project/app/storage/logs/laravel.log) [function.fopen]: failed to open stream: Permission denied in /hostingvariables/project/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:77</p>
  
  <p>I tryd everyting i could imagine but i can not solve this error, if someone could help me solve this error that would be great?</p>