0
votes

in my hosting I have a few pages in folders inside of public_html.

So, I need upload a Laravel project in a new folder for access like this: "www.mypage.com/laravelproject". My problem is that I create a folder laravelproject and I put all the laravel project inside this, but give me:

Forbidden

You don't have permission to access /laravelproject/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

And if i try enter to: "www.mypage.com/laravelproject/public" I receive this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

The hosting give me this errors that produce the project. The project name is "eysa", so I want access it like: "www.mydomain.com/eysa":

[Thu Sep 14 14:31:54 2017] [alert] [client 190.19.102.99] /var/www/vhost/example.com/home/html/eysa/public/.htaccess: Option MultiViews not allowed here [Thu Sep 14 14:31:54 2017] [error] [client 190.19.102.99] File does not exist: /var/www/vhost/example.com/home/errors/500.html [Thu Sep 14 14:31:54 2017] [error] [client 190.19.102.99] File does not exist: /var/www/vhost/example.com/home/html/favicon.ico, referer: http://example.com/eysa/public [Thu Sep 14 14:31:54 2017] [error] [client 190.19.102.99] File does not exist: /var/www/vhost/example.com/home/errors/404.html, referer: http://example.com/eysa/public

I need help!

Thanks!

1
What does your error log say? Apache error.log and laravel.log - fubar
Do you have access to ssh? - mwweb
@mwweb hi, the domain/hosting don't have ssh - R. Rio
The public directory should be the document root. The Internal Server Error is likely a config issue such as database connection etc. Check your log files. - GeorgeQ
@fubar hi, these logs are in my hosting? Or I can see it in my ftp? - R. Rio

1 Answers

0
votes

Ok, so let's tear down your log file

Here is your main problem your server configuration does not allow to use MultiViews, removing that from your .htaccess file probably should fix the issue.

[Thu Sep 14 14:31:54 2017] [alert] [client 190.19.102.99] /var/www/vhost/example.com/home/html/eysa/public/.htaccess: Option MultiViews not allowed here

Your server looking for your custom error page but cannot found, you can define yours in .htaccess as well ;

[Thu Sep 14 14:31:54 2017] [error] [client 190.19.102.99] File does not exist: /var/www/vhost/example.com/home/errors/500.html

Your browser tries to get favicon.ico but cannot be found in root.

[Thu Sep 14 14:31:54 2017] [error] [client 190.19.102.99] File does not exist: /var/www/vhost/example.com/home/html/favicon.ico, referer: http://example.com/eysa/public

This is also almost identical error with the one above, same comment applies.

[Thu Sep 14 14:31:54 2017] [error] [client 190.19.102.99] File does not exist: /var/www/vhost/example.com/home/errors/404.html, referer: http://example.com/eysa/public

Seems like your server only allows MultiViews on your root folder, if laravel requires this you can create a sub-domain or create a virtual folder if your hosting allows.