Server troubleshooting
Start with the log: backend/storage/logs/laravel.log. Most errors are explained there. Never turn on APP_DEBUG=true on a live server for longer than it takes to read one error; it shows internal details to visitors.
| Symptom | Likely cause and fix |
|---|---|
| "500 Server Error" on every page | Check the log. Common causes: storage/ or bootstrap/cache/ not writable by the web server (see step 3), a missing APP_KEY, or wrong database details in .env. After editing .env, run php artisan optimize again. |
/admin shows a 404 or a blank page |
The admin panel isn't built. Run npm ci && npm run build in admin/ (step 4). |
| Admin sign-in fails with "Page expired" (419) or keeps returning to the sign-in page | Your domain isn't in SANCTUM_STATEFUL_DOMAINS, or the site runs on HTTP while SESSION_SECURE_COOKIE=true. Use the exact host name, without https://, then php artisan optimize. |
| Photos don't load | Run php artisan storage:link, and check that APP_URL is your real https:// address. With S3 storage, the bucket's public URL must be set and readable. |
| Uploads fail for bigger photos | Raise client_max_body_size in Nginx and upload_max_filesize / post_max_size in PHP (20M is plenty), then reload Nginx and PHP-FPM. |
| Emails, push notifications or thumbnails never arrive | The queue worker isn't running. sudo supervisorctl status should show it as RUNNING. Restart it with php artisan queue:restart after every update. |
| Test email works, sign-up codes don't arrive | Same as above: real emails go through the queue, the test doesn't. |
| Booking requests never expire, no reminders, jobs never auto-confirm | The scheduler cron isn't running. Check the crontab of the web server user (step 6). |
| The app says "We couldn't reach the server" | The app's API address is wrong or not HTTPS, or the certificate is invalid. Open https://your-api-domain/api/v1/config in a phone's browser; it should show JSON. |
| The app ignores changes made in Settings | Apps download settings when they start. Close the app completely and open it again. |
| Shared links open the browser, not the app | See Deep links → Troubleshooting. |
| Push notifications don't arrive | See Push notifications → Troubleshooting. |
| Card payments fail | Use Test connection in Settings → Integrations → Stripe, and check the webhook in Stripe's dashboard. See Stripe payments. |
| Forgot the admin password and email isn't set up | On the server, run php artisan tinker, then App\Models\User::where('email', 'you@example.com')->first()->update(['password' => 'new-password']); (the password is hashed automatically). |