php - unable to live site in server laravel5 -


iam getting error after uploaded project server. when visited link somedomain.com/demo got following error. error? how can solve please me.

warning: require(/home/siddins/public_html/demo/project/app/http/helpers/backend/helpers.php): failed open stream: no such file or directory in /home/siddins/public_html/demo/project/vendor/composer/autoload_real.php on line 54  fatal error: require(): failed opening required '/home/siddins/public_html/demo/project/app/http/helpers/backend/helpers.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/siddins/public_html/demo/project/vendor/composer/autoload_real.php on line 54 

my index.php this:

<?php /**  * laravel - php framework web artisans  *  * @package  laravel  * @author   taylor otwell <taylorotwell@gmail.com>  */  /* |-------------------------------------------------------------------------- | register auto loader |-------------------------------------------------------------------------- | | composer provides convenient, automatically generated class loader | our application. need utilize it! we'll require | script here don't have worry manual | loading of our classes later on. feels nice relax. | */  require __dir__.'/project/bootstrap/autoload.php';    /* |-------------------------------------------------------------------------- | turn on lights |-------------------------------------------------------------------------- | | need illuminate php development, let turn on lights. | bootstraps framework , gets ready use, | load application can run , send | responses browser , delight our users. | */  $app = require_once __dir__.'/project/bootstrap/app.php';  /* |-------------------------------------------------------------------------- | run application |-------------------------------------------------------------------------- | | once have application, can handle incoming request | through kernel, , send associated response | client's browser allowing them enjoy creative | , wonderful application have prepared them. | */  $kernel = $app->make('illuminate\contracts\http\kernel');  $response = $kernel->handle(     $request = illuminate\http\request::capture() );  $response->send();  $kernel->terminate($request, $response); 

project main folder . inside projetc have app,vendor,bootstrap,config,database,resources etc

here of best practices while launching laravel app on server. try them out. might solve issues. these steps have solved every problem have faced till while launching site on server.

1.enable mod_rewrite

a2enmod rewrite 

2.install php 5.6

sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php5-5.6 sudo apt-get update sudo apt-get upgrade sudo apt-get install php5 
  1. while returning views, use foldername.viewname instead of foldername\viewname

  2. use public_path() while including files

  3. chmod -r 777 "storage folder path"


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -