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'] = 'bd26b858d6355488a75c9edd24fa935f';
    $config['sess_cookie_name'] = 'ci_session_664f6f9435eb1';