File and Folder Permissions
Laravel permissions
- storage must be writable.
- bootstrap/cache must be writable.
- public uploads must be writable if local file storage is enabled.
- Do not make the full application 777 unless your hosting provider explicitly requires it.
Common Linux commands
- chown -R www-data:www-data storage bootstrap/cache
- chmod -R 775 storage bootstrap/cache
Node server permissions
- The Node process must be able to write session files.
- If QR login succeeds but sessions disappear after restart, check the WhatsApp server storage path permissions.