0

I am trying to deploy my app on a shared host. I followed the instructions on this page:

http://driesvints.com/blog/laravel-4-on-a-shared-host

I believe it is set up ok, however, I get the following error:

ErrorException include(app/views/layouts/question.blade.php) [href='function.include'>function.include]: failed to open stream: No such file or >directory (View: /home/d*/**/app/views/questionairres/create.blade.php)

I did check and the file exists in this exact location. Does anybody have any idea why this error may be coming up? Any ideas on how to fix?

Thanks!

1 Answer 1

1

Usually this happens when the file exists, but it's not readable by the webserver, because it might not have the proper permissions to read the script file:

-rw-rw----  1 root root         182 Jan 16 18:24 question.blade.php

So you need to make it be

-rw-rw-r--  1 root root         182 Jan 16 18:24 question.blade.php

using

chmod +r question.blade.php

or

-rw-rw-r--  1 root www-data     182 Jan 16 18:24 question.blade.php

by

chown root:www-data question.blade.php

And the user www-data in some distros might have another name: httpd, apache...

Sign up to request clarification or add additional context in comments.

9 Comments

Thanks for the reply. I'm not sure that I understand. What will I be editing exactly?
File permissions. If you're not on a Unix, Linux or Mac OS server, you have to check the permissions for your kind of server. Just edited to clarify.
Ok. I'm actually on a shared server. Would I have to speak to support in order to access this?
How did you uploaded your files?
You can change the permissions using Filezilla itself: dummies.com/how-to/content/…
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.