Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Laravel 5.2.45 with VestaCP 0.9.8-18

General questions about VestaCP
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
martin_yi
Posts: 3
Joined: Fri Mar 10, 2017 1:04 pm

Laravel 5.2.45 with VestaCP 0.9.8-18
  • Quote

Post by martin_yi » Fri Mar 10, 2017 1:20 pm

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
Top

martin_yi
Posts: 3
Joined: Fri Mar 10, 2017 1:04 pm

Re: Laravel 5.2.45 with VestaCP 0.9.8-18
  • Quote

Post by martin_yi » Fri Mar 10, 2017 3:08 pm

Guys, I really need help. Anyone, if you understand the issue and have the solution please help me. :(
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Laravel 5.2.45 with VestaCP 0.9.8-18
  • Quote

Post by mehargags » Fri Mar 10, 2017 6:33 pm

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 ?
Top

martin_yi
Posts: 3
Joined: Fri Mar 10, 2017 1:04 pm

Re: Laravel 5.2.45 with VestaCP 0.9.8-18
  • Quote

Post by martin_yi » Sat Mar 11, 2017 7:34 am

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?
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Laravel 5.2.45 with VestaCP 0.9.8-18
  • Quote

Post by mehargags » Sun Mar 12, 2017 6:27 am

did you care to read what I said and follow it ?
Top

tilicar43v3r
Posts: 2
Joined: Sun Mar 12, 2017 3:54 pm

Re: Laravel 5.2.45 with VestaCP 0.9.8-18
  • Quote

Post by tilicar43v3r » Mon Mar 13, 2017 5:37 am

Did you follow the install instruction and system req ?

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

xjlin0
Posts: 22
Joined: Fri Dec 30, 2016 2:22 pm

Re: Laravel 5.2.45 with VestaCP 0.9.8-18
  • Quote

Post by xjlin0 » Fri Mar 17, 2017 1:21 pm

where did you install 0.9.8-18? Isn't the current latest 0.9.8-17?
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password