A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 101
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 127
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$benchmark is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$hooks is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$config is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$log is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$utf8 is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$uri is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$exceptions is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$router is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$output is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$security is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$input is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$lang is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$load is deprecated
Filename: core/Controller.php
Line Number: 78
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$db is deprecated
Filename: core/Loader.php
Line Number: 396
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated
Filename: database/DB_driver.php
Line Number: 371
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_database_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
Filename: drivers/Session_database_driver.php
Line Number: 129
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_database_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 280
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_database_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
Filename: drivers/Session_database_driver.php
Line Number: 151
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_database_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
Filename: drivers/Session_database_driver.php
Line Number: 208
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_database_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
Filename: drivers/Session_database_driver.php
Line Number: 297
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_database_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
Filename: drivers/Session_database_driver.php
Line Number: 335
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 289
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 304
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 314
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 315
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 316
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 317
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 375
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_start(): Session cannot be started after headers have already been sent
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$session is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$mylibrary is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$pagination is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$table is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$form_validation is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$template is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$agent is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property News::$email is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/application/controllers/News.php
Line: 18
Function: __construct
File: /www/wwwroot/sim.uniska-kediri.ac.id/blog/index.php
Line: 294
Function: require_once
Mengatasi Not Found Pada CodeIgniter Di Server Apache
Mengatasi Not Found Pada CodeIgniter Di Server Apache
Web dengan CodeIgniter saat berpindah halaman terjadi error 404 not found ketika berjalan di Apache Server
Ada bebrapa kasus yang terjadi ketika kita membangun sebuah sistem atau website dengan basic framework khusunya di sini adalah CodeIgniter, salah satu kasusnya adalah terjadi error 404 not found padahal ketika dijalankan di XAMPP aplikasi berjalan normal, kenapa di Server Apache bermasalah?
Dari pernyataan tersebut kita bisa tarik kesimpulan bahwa ada yang perlu disesuaikan di Server Apache agar aplikasi yang kita buat bisa berjalan dengan normal. Hal seperti ini biasanya disebabkan oleh file .htaccess yang tidak terproses Server Apache, untuk mengatasinya bisa kita lakukan sedikit penyesuaian di file httpd.conf
Cara mengatasi not found pada CodeIgniter di Server Apache
Ikuti langkah-langkah berikut untuk melakukan penyesuaian file httpd.conf
Baca Lainnya :
1. Masuk ke sistem CentOS dengan user root, di sini saya menyarankan untuk menggunakan puttty agar mudah mencari baris code yang ingin di edit.
2. Cari file httpd.conf, di sini saya menggunakan CentOS 7 biasanya file tersebut terletak di folder /etc/httpd/conf, cek dengan menggunakan perintah berikut.
ls /etc/httpd/conf/
2. Kemudian edit pada file httpd.conf, di sini saya menggunakan editor nano, lakukan dengan perintah berikut.
nano /etc/httpd/conf/httpd.conf
5. Cari baris yang menerangkan tentang konfigurasi "var/www/html" dan edit dengan urutan sebagai berikut.
Option Indexes menjadi Option Indexes FollowSymlinks MultiViews
AllowOverride None menjadi AllowOverride All
Tambahkan Require all granted
Tekan ctrl + o untuk menyimpan
Tekan ctrl + x untuk keluar dari editor nano
6. Dan yang terakhir lakukan restart layanan httpd dengan perintah berikut.
systemctl restart httpd.service
Selesai, konfigurasi file httpd.conf telah dilakukan, sekarang silahkan untuk dicoba akses kembali sistem ataupun websitenya dan lihat perubahannya, selamat mencoba.
Demikianlah pembahasan tentang Cara Mengatasi Not Found Pada CodeIgniter Di Server Apache yang dapat disampaikan dalam artikel ini. Semoga hal tersebut bermanfaat bagi para pembaca sekalian. Sampai jumpa di artikel selanjutnya.
13 Sep 2020
SIM Team Follow
Team Sistem Informasi Manajemen (SIM) Universitas Islam Kadiri (UNISKA) Kediri.