I have read lots of tutorial on hosting laravel 4 based app on shared hosting .But I am not able to deploy it successfully . I am getting following error
Warning: require(__DIR__/../bootstrap/autoload.php) [function.require]: failed to open stream: No such file or directory in D:\Hosting\10588605\html\healthscape\ideconnect\public\index.php on line 41
Fatal error: require() [function.require]: Failed opening required '__DIR__/../bootstrap/autoload.php' (include_path='.;C:\php5\pear') in D:\Hosting\10588605\html\healthscape\ideconnect\public\index.php on line 41
I have website in which I want to deploy my app . For example I have this website .
http://healthscapeseries.com
I want to add my laravel app to this like
http://healthscapeseries.com/myappname/public/
it should point to my app. Can any one help me out with this .
Thanks in advance
It will be better if you point to your app like
http://healthscapeseries.com/myappname
For attaining this do following steps
Create a folder myappnamebase
in your document folder
Put all your contents of the application except the public folder content to myappnamebase
folder
Create new folder in public_html
named myappname
Put all your public folder content in myappname
folder
Then bring the following changes:
Inside public_html->myappname->index.php
instead of
require __DIR__.'/../bootstrap/autoload.php';
add
require __DIR__.'/../../myappnamebase/bootstrap/autoload.php';
instead of
$app = require_once __DIR__.'/../bootstrap/start.php';
add
$app = require_once __DIR__.'/../../myappnamebase/bootstrap/start.php';
Inside myappnamebase->bootstrap->paths.php
do editting so that it looks like following
'app' => __DIR__.'/../../myappnamebase/app',
'public' => __DIR__.'/../../public_html/myappname',
'base' => __DIR__.'/../../myappnamebase',
'storage' => __DIR__.'/../../myappnamebase/app/storage',