title: Laravel Uploading online Error index.php require once
body: <p>Hi i am beginner laravel programmer , I created a website its working perfectly on local host , i change server.php to index.php for using root directory </p>
  
  <p>but when i upload it on live it gives me error which is </p>
  
  <p>Warning: require_once(/srv/disk11/2451785/www/hiveminds.dx.am/public/index.php): failed to open stream: No such file or directory in /srv/disk11/2451785/www/hiveminds.dx.am/index.php on line 22</p>
  
  <p>Fatal error: require_once(): Failed opening required '/srv/disk11/2451785/www/hiveminds.dx.am/public/index.php' (include_path='.:/usr/local/php-5.6.31/share/pear') in /srv/disk11/2451785/www/hiveminds.dx.am/index.php on line 22</p>
  
  <p>my local url address is </p>
  
  <p><a href="http://localhost/dataform/" rel="nofollow noreferrer">http://localhost/dataform/</a></p>
  
  <p>my index.php file is </p>
  
  <pre><code>    &lt;?php
  
  /**
   * Laravel - A PHP Framework For Web Artisans
   *
   * @package  Laravel
   * @author   Taylor Otwell &lt;taylor@laravel.com&gt;
   */
  
  $uri = urldecode(
      parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
  );
  
  // This file allows us to emulate Apache's "mod_rewrite" functionality from the
  // built-in PHP web server. This provides a convenient way to test a Laravel
  // application without having installed a "real" web server software here.
  if ($uri !== '/' &amp;&amp; file_exists(__DIR__.'/public'.$uri)) {
      return false;
  }
  
  require_once __DIR__.'/public/index.php';
  </code></pre>