DMiller
DMiller

Reputation: 263

laravel error when deployed on shared host

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!

Upvotes: 0

Views: 370

Answers (1)

Antonio Carlos Ribeiro
Antonio Carlos Ribeiro

Reputation: 87719

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...

Upvotes: 1

Related Questions