Page 1 of 1

Laravel 5.2.45 with VestaCP 0.9.8-18

Posted: Fri Mar 10, 2017 1:20 pm
by martin_yi
Hi,

I encounter a problem which didn't happen in the previous versions of VestaCP, it returns HTTP Error 500. I try to upload my Laravel files to /private/app_data/ except public I put it in public_html. The index.php path I have changed to:

Code: Select all

require __DIR__.'/../private/app_data/bootstrap/autoload.php';
and

Code: Select all

$app = require_once __DIR__.'/../private/app_data/bootstrap/app.php';
$app->bind('path.public', function() {
    return __DIR__;
});
I have also

Code: Select all

chmod -R 777
to both folder

Code: Select all

/private/app_data/bootstrap
and

Code: Select all

/private/app_data/storage
but it's still not working.

I transfer my file through WinsCP FTP Port 21, which only have the access the path

Code: Select all

/domain.com/*
The page return HTTP Error 500 for index.php, but index.html is working perfectly. I try to put

Code: Select all

phpinfo();
at the very beginning of index.php and it's working. Then I could guess there must be some kind of permissions that prevent index.php in public_html to access files in private folder. And again I tried the last clue I could guess

Code: Select all

chmod -R 755
to private folder, it's still not working.

I am so clueless now, please help!

NB: I'm using Debian 8.7 64bit

Re: Laravel 5.2.45 with VestaCP 0.9.8-18

Posted: Fri Mar 10, 2017 3:08 pm
by martin_yi
Guys, I really need help. Anyone, if you understand the issue and have the solution please help me. :(

Re: Laravel 5.2.45 with VestaCP 0.9.8-18

Posted: Fri Mar 10, 2017 6:33 pm
by mehargags
watch your domains "apache2 error log" in /var/log/apache2/domains/

tail it to see what errors it gives. May be some basedir restriction is not letting modules load properly ?

Re: Laravel 5.2.45 with VestaCP 0.9.8-18

Posted: Sat Mar 11, 2017 7:34 am
by martin_yi
mehargags wrote:watch your domains "apache2 error log" in /var/log/apache2/domains/

tail it to see what errors it gives. May be some basedir restriction is not letting modules load properly ?
Hi, thank you, really appreciate your will to help me. I currently using Nginx + php-fpm as my server. I somehow fix the HTTP Error 500 issue by uploading my files with root. I know this is not appropriate, perhaps there's another better solution?

And now I have a new problem, all my laravel pages return

Code: Select all

Nginx "404 - Not Found"
except the homepage. Does anyone know how to fix it?

Re: Laravel 5.2.45 with VestaCP 0.9.8-18

Posted: Sun Mar 12, 2017 6:27 am
by mehargags
did you care to read what I said and follow it ?

Re: Laravel 5.2.45 with VestaCP 0.9.8-18

Posted: Mon Mar 13, 2017 5:37 am
by tilicar43v3r
Did you follow the install instruction and system req ?

https://laravel.com/docs/5.4#installing-laravel

Re: Laravel 5.2.45 with VestaCP 0.9.8-18

Posted: Fri Mar 17, 2017 1:21 pm
by xjlin0
where did you install 0.9.8-18? Isn't the current latest 0.9.8-17?