Getting a 500 Internal Server Error (Require() Failed Opening Required Path) on Laravel 5+ Ubuntu 14.04

Getting a 500 Internal Server Error (require() failed opening required path) on Laravel 5+ Ubuntu 14.04

Finally Overcame the problem

  • It was not the .htaccess file that was the problem nor the index.php. The problem was on accessing the files and requiring permissions.

For solving the problem i ran the following commands through terminal.

sudo chmod -R 755 laravel_blog

and then type below to allow laravel to write file to storage folder

chmod -R o+w laravel_blog/storage

This two commands solved the problem.

Getting a 500 Internal Server Error (require() failed opening required path) on Laravel 5+ Ubuntu 14.04

Finally Overcame the problem

  • It was not the .htaccess file that was the problem nor the index.php. The problem was on accessing the files and requiring permissions.

For solving the problem i ran the following commands through terminal.

sudo chmod -R 755 laravel_blog

and then type below to allow laravel to write file to storage folder

chmod -R o+w laravel_blog/storage

This two commands solved the problem.

Error 500 with laravel

The link you provided redirects to http://mechamou.com.br/blog/public/
I manually remove the /blog section of the url (so it becomes http://mechamou.com.br/public) and it works perfectly. So, you need to config your apache so it has the correct path to the public folder in your app.

New Laravel Project Throwing 500 Error: require(): Failed opening required autoload.php

It turns out that I was doing everything right, but when I went to run composer install I didn't see that it was throwing an installation error due to my server not having enough memory. Increasing my server's memory fixed the problem.

Laravel returning server error 500 on CentOS 7

Seems like you miss the Laravel environment configuration file.

In a fresh Laravel installation you should have a .env.example file. Duplicate that one and rename it to .env then run the php artisan key:generate command.

php - Laravel in shared hosting give me Internal Server Error

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.



Related Topics



Leave a reply



Submit