简体   繁体   中英

Laravel 8 ERROR 500 - INTERNAL SERVER ERROR in cpanel

I have successfully used Laravel on my local machine and it worked. But, when I put it on my online cPanel I can access the login page, but any other page behind the login page is producing the error

ERROR 500 - INTERNAL SERVER ERROR

I have checked my online PHP version and it's 7.4.14 , while the local version is PHP 7.4.9 . I believe that it should not make much difference.

I would be grateful for anything that can helpful.

I've also checked the MySQL version:
cPanel version 5.6.41-84.1
local version 5.7.14

The information shared is not enough to provide a solution. You can try generating the error log first. It looks like the permission for your log file is not set.

Can you try these two command to provide permission on laravel storage folder and bootstrap. Go to the application directory and issue following commands.

chmod 777 -R storage
chmod 777 -R bootstrap/cache

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM