ZoD3V's avatar

Laravel Filament server error 500

Hello i wanna ask i deployed my Laravel filament and i have 10 resources in filament and the project using CI/CD and have set the memory limit to 2048M but I still get a 500 server error when trying to access /admin. Does anyone know why?

this is my dockerfile

RUN echo "memory_limit=2048M" > /usr/local/etc/php/conf.d/99-custom.ini

laravel version v11.31 filament version v3.3.47

1 like
6 replies
ZoD3V's avatar

it show Permission denied but i already give access 775

ErrorException: file_put_contents(/var/www/storage/framework/views/187f828346b000af3c7029fb05171792.php): Failed to open stream: Permission denied

martinbean's avatar

I still get a 500 server error when trying to access /admin. Does anyone know why?

@zod3v Not really when a 500 error is a server error (i.e. an exception is being thrown by your application). You need to check your error logs to see what the problem is.

ZoD3V's avatar

it show Permission denied but i already give access storage folder 775

ErrorException: file_put_contents(/var/www/storage/framework/views/187f828346b000af3c7029fb05171792.php): Failed to open stream: Permission denied

JussiMannisto's avatar

0775 gives write permissions to the directory owner and group.

Is storage owned by the web server user? Does it own all of the files and subdirectories too?

martinbean's avatar

@zod3v That’s your views directory, not the logs directory. So it seems you may have incorrect permissions on your server.

Please or to participate in this conversation.