Page 1 of 1

Composer/Laravel 403 error. Not the right permission to view page [searching]

Posted: Sun Jun 09, 2019 7:04 pm
by RFlintstone
Hi all,

I just installed laravel and composer and it looks like users that view the webpage don't have the right permission to view the page.
I already tried

Code: Select all

sudo chmod -R 755/home/admin/web/rflintstone.xyz/public_html
but that doesn't seem to work. Is there a solution for this problem?

Kind regards,
Ruben

Re: Composer/Laravel 403 error. Not the right permission to view page [searching]

Posted: Sun Jun 09, 2019 10:30 pm
by RFlintstone
RFlintstone wrote:
Sun Jun 09, 2019 7:04 pm
Hi all,

I just installed laravel and composer and it looks like users that view the webpage don't have the right permission to view the page.
I already tried

Code: Select all

sudo chmod -R 755/home/admin/web/rflintstone.xyz/public_html
but that doesn't seem to work. Is there a solution for this problem?

Kind regards,
Ruben
Ok, so I just might have find the problem in

Code: Select all

/var/log/apache2/domains/rflintstone.xyz.error.log

According to Phpstorm Laravel's 'Arr.php' file located in

Code: Select all

/vendor/laravel/framework/src/Illuminate/Support
haves a line that only can be used with PHP 7.1 so I'm going to try to download a PHP selector for VestaCP and then going to test if that indeed is solving the problem (I already made a backup).

*I also renamed the 'server.php' file to 'index.php', then the error will change to a 500 error instead of a 403 error.

I found the error with:

Code: Select all

sudo tail /var/log/apache2/domains/rflintstone.xyz.error.log