I have created a Laravel 2 project and uploaded it to a web host, but the website gives a 500 error. I have given 777 permmisions to storge and subfolders. I cleared the views cache but that didn't solve the problem.
I want to know, why is this problem occurring? the error
the public/.htacess file Options -MultiViews
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Could be a number of issues. Check the following:
composer install
to install the vendor files required for Laravel to run? chmod -R 777 storage
(as you have already tried) chmod -R 777 bootstrap/cache
Hopefully these steps will help you resolve the issue. If you still have issues, see if you can locate the error_log
file on your server and see if it points to the issue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.