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 .
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
Answer
Solution:
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 folderPut all your contents of the application except the public folder content to
myappnamebase
folderCreate new folder in
public_html
namedmyappname
Put all your public folder content in
myappname
folderThen bring the following changes:
Inside
public_html->myappname->index.php
instead of
add
instead of
add
Inside
myappnamebase->bootstrap->paths.php
do editting so that it looks like following