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
while returning views, use
foldername.viewname
instead offoldername\viewname
use
public_path()
while including fileschmod -r 777
"storage folder path"
Comments
Post a Comment