This page isn’t working laraproject.com is currently unable to handle this request. HTTP ERROR 500 I deployed my Laravel-5.8 to Digital ocean. The Landing page works, but when I clicked on the Login Page I got this error:
This page isn’t working laraproject.com is currently unable to handle this request.
HTTP ERROR 500
I have moved all my files away from public so I don't need to type laraproject.com/public but laraproject.com.
This is my .htaccess:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Also I have configured the server (DigitalOcean) to HTTPS
How do I resolve this issue?
Thank you
What webserver are you running? Nginx or apache?
Check the log in /var/log/nginx/error.log (or apache2)
These is the Error log in: /var/log/nginx/error.log
2020/03/16 16:48:11 [notice] 11121#11121: signal process started
2020/03/16 17:03:19 [notice] 12342#12342: signal process started
2020/03/16 17:03:52 [notice] 12389#12389: signal process started
2020/03/16 17:08:40 [error] 12390#12390: *44 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/laraproject/storage/framework/views/f764736db595e50c021eae4708d13a1fdd1d77bd.php): failed to open stream: Permission denied in /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents()
#2 /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(140): Illuminate\Filesystem\Filesystem->put()
#3 /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler->compile()
#4 /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/View/View.php(142): Illuminate\View\Engines\CompilerEngine->get()
#5 /var/www/html/laraproject...PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/laraproject/storage/framework/views/f764736db595e50c021eae4708d13a1fdd1d77bd.php): failed to open stream: Permission denied in /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents()
#2 /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(140): Illuminate\Filesystem\Filesystem->put()
#3 /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler->compile()
#4 /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/View/View.php(142): Illuminate\View\Engines
2020/03/16 17:08:48 [error] 12390#12390: *44 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/laraproject/storage/framework/views/f764736db595e50c021eae4708d13a1fdd1d77bd.php): failed to open stream: Permission denied in /var/www/html/laraproject/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
Looks like you need to give the right permission to your directories. Try this and let me know if it works.
chmod -R 775 /var/www/laravel/app/storage
If it doesn’t try setting the permissions to the bootstrap/ cache folder as well 775 or 777.
Finally I would try php artisan view:clear
The error is too generic and does not tell you exact problem. What you need is to find out what is the real issue. If your site is serving a Internal Server Error, this can be caused by a number of things, such as:
Errors in .htaccess files
Server permission
Server timeout
Script timeout
Or some other Web Server Issues
Normally, a permissions issue on the file (or files) would be one cause of the 500 Internal Server Error. The simple solution is to run chmod 644 on the problem file(s) or chmod 755 on the directories.
$ sudo chmod -R 777 /"your files location"
The best way to debug the error depends upon the server and what’s actually running at the time. Consider some debugging tips to help diagnose and fix common causes of this problem.
http://net-informations.com/q/mis/500.html
Please sign in or create an account to participate in this conversation.