RamziNotes
Tambah Catatan

Edit Catatan

Perbarui isi catatan, tag, dan file attachment di sini.

Karena Laravel juga menulis session ke database, maka folder `database/` dan file `database.sqlite` harus writable oleh user `www` di aaPanel.


Jalankan ini di server:


cd /www/wwwroot/notes.sebatam.com/mynotes

chown www:www database/database.sqlite
chmod 664 database/database.sqlite

chown www:www database
chmod 775 database

chown -R www:www storage bootstrap/cache
chmod -R 775 storage bootstrap/cache


Kalau masih error, set lebih aman seluruh folder `database` ke `www`:


chown -R www:www /www/wwwroot/notes.sebatam.com/mynotes/database
chmod -R 775 /www/wwwroot/notes.sebatam.com/mynotes/database


Lalu bersihkan cache Laravel:


php artisan optimize:clear


Cek juga file SQLite memang ada:


ls -l /www/wwwroot/notes.sebatam.com/mynotes/database/database.sqlite


Kalau file belum ada, buat:


touch /www/wwwroot/notes.sebatam.com/mynotes/database/database.sqlite
chown www:www /www/wwwroot/notes.sebatam.com/mynotes/database/database.sqlite
chmod 664 /www/wwwroot/notes.sebatam.com/mynotes/database/database.sqlite


Intinya untuk error ini, minimal yang harus writable oleh `www`:

- `database/database.sqlite`

- folder `database`

- `storage`

- `bootstrap/cache`


note: permission untuk file dan folder setelah clone atau pull dari github

Jangan lupa simpan perubahan Anda.
Batal