Step 1 : Konfigurasi config & database

Install e-learning

Failed to connect to the server: Access denied for user 'username'@'localhost' (using password: YES)

Ikuti langkah - langkah berikut:

  1. Rename file application/config/database.sample.php menjadi application/config/database.php
  2. Atur koneksi database pada file application/config/database.php, isi bagian - bagian berikut :
    $db['default']['hostname'] = 'localhost';
    $db['default']['username'] = ''; //username user mysql
    $db['default']['password'] = ''; //password user mysql
    $db['default']['database'] = ''; //nama database
    $db['default']['dbprefix'] = 'el_'; //awalan nama tabel
    
  3. Buka file application/config/config.php, atur base_url, encryption_key dan sess_cookie_name menjadi seperti berikut :
    $config['base_url'] = 'https://elearning.smpitmadanitunjungmuli.sch.id/';
    $config['encryption_key'] = 'bd856f046ecffb99c46a7b5c79d5790d';
    $config['sess_cookie_name'] = 'ci_session_6759c2799f57d';