Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Mengatasi VPS Tiba-Tiba Penuh - User Tidak Bisa Login
By Kang iPunx29 Jan 2019, 07:21:06 WIB Pemrograman
Pagi-pagi ternyata dikagetkan dengan user yang chat dan mengeluhkan gagal login ke sistem yang sudah kita bangun. Padahal tidak ada pemblokiran user maupun penggantian password user. Saat cek ke database juga tidak ada masalah. Melihat ke directory upload file dan gambar juga tidak terdapat kejanggalan. Semua masih biasa biasa saja.
Alangkah terkejutnya ketika mencoba melihat resource VPS dengan perintah df -h Nampak di terminal kapasitas penyimpanan VPS telah penuh 100%. Langsung saja tancap gas ke folder backups, tetapi ternyata di folder tersebut juga tidak nampak ada masalah. ukuran file juga masih seperti biasa. Akhirnya dengan berat harus cek ukuran masing-masing folder di root. dengan perintah :
Akhirnya ketemulah dengan folder /var/ yang kapasitasnya terlalu besar, yakni 15GB. Dengan cara yang sama masing-masing folder di dalam folder /var/ saya cek ukuran foldernya. Ketemulah dengan folder /var/lib/ dilanjutkan dengan cek isi folder /var/lib/ ternyata paling besar ada di /var/lib/php/sessions/
Setelah ketemu biang keroknya ternyata banyaknya file session yang mencapai lebih dari 9 GB. kemudian saya eksekusi dengan menghapus datanya dengan perintah :