php - How to host laravel4 based app on a shared hosting


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 .

I want to add my laravel app to this like

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

For attaining this do following steps

  1. Create a foldermyappnamebase in your document folder

  2. Put all your contents of the application except the public folder content tomyappnamebase folder

  3. Create new folder inpublic_html namedmyappname

  4. Put all your public folder content inmyappname folder

Then bring the following changes:


instead of

 require __DIR__.'/../bootstrap/autoload.php';


 require __DIR__.'/../../myappnamebase/bootstrap/autoload.php';

instead of

 $app = require_once __DIR__.'/../bootstrap/start.php';


 $app = require_once __DIR__.'/../../myappnamebase/bootstrap/start.php';

Insidemyappnamebase->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',

People are also looking for solutions to the problem: php - What's wrong with my PDO statement?


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.