Skip to main content

How can I access my application logs?

To display the application log file (/var/log/app.log file), run the following command:
All the log messages generated by your app are sent to this /var/log/app.log file. This includes language errors such as PHP errors, warnings, notices, as well as uncaught exceptions. The file also contains your application logs if you log on stderr. This log doesn’t include the default laravel.log located in /storage.
Upsun manages the app.log file for you. This is to prevent disks from getting filled and using very fast local drives instead of slower network disks. Make sure your apps always output their logs to stderr.
With Laravel, you can change your logging configuration to use memory and stream php://stderr. In your config/logging.php file, add or update the following configuration:
config/logging.php

Warning

If you log deprecations, make sure you also log them on stderr.

What’s this “Oops! An Error Occurred” message about?

The Oops! An Error Occurred message comes from your app and is automatically generated based on the Laravel error template.

The server returned a “500 Internal Server Error

If your app’s working as expected locally but you see the previous error message on Upsun, it usually means you have a configuration error or a missing dependency. To fix this issue, search your application logs. They likely contain an error message describing the root cause:
If the error occurs on a preview environment, or on the main environment of a non-production project, you can also enable Laravel’s dev/debug mode to inspect the cause of the error via the APP_DEBUG environment variable in your .environment file or via upsun console:
.environment

Other issues

For other issues unrelated to Laravel, see Troubleshoot development.
Last modified on March 12, 2026