Web Programming: COde Igniter White Screen of Death

Masalah klasik,..

SUdah ok,.. sempurna dibuat di localhost,. sekarang tiba saatnya ‘unggah’ ke hosting,.. pake program FTP gratisan,. hehehe,..

Jrengg,.. buka website-nya yang muncul error atau malah layar putih menyala tidak menunjukkan website yang sudah kita persiapkan tadinya di localhost.

Ada apakah gerangan ??

Yang paling sering terjadi ialah kekurang-sempurnaan transfer file dari pc kita ke webhosting.

beberapa file yang laik untuk diupload ulang secara terpisah ataupun dipastikan keakuratannya ialah:

  1. .htaccess
  2. route.php (di system/application/config)
  3. config.php (lokasi: idem)
  4. (tambahan) database.php (lokasi:idem)

SEmoga membantu:

salinan .htaccess

#<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|plugin|user_guide|libs|images|resources|themes|uploaded)
RewriteRule ^(.*)$ /index.php/$1 [L]
#</IfModule>

salinan config.php

$config[‘base_url’]    = “http://&#8221;.$_SERVER[‘HTTP_HOST’].”/”;

salinan route.php

$route[‘default_controller’] = “home”;

salinan database.php

$db[‘default’][‘hostname’] = “localhost”;
$db[‘default’][‘username’] = “ajiprabowo_ok”;
$db[‘default’][‘password’] = “ajiprabowo_ok”;
$db[‘default’][‘database’] = “ajiprabowo_ok”;
$db[‘default’][‘dbdriver’] = “mysql”;
$db[‘default’][‘dbprefix’] = “pba_”;
$db[‘default’][‘pconnect’] = TRUE;
$db[‘default’][‘db_debug’] = TRUE;
$db[‘default’][‘cache_on’] = FALSE;
$db[‘default’][‘cachedir’] = “”;
$db[‘default’][‘char_set’] = “utf8”;
$db[‘default’][‘dbcollat’] = “utf8_general_ci”;

NOtes from Rancid:

while in MWN you need to comment the if’s in your .htaccess to make it to work there, CPanel on the other hand needs the if’s to be properly executed to produce the same result as in MWN. Thanks! :-bd

Thanks to Andry_data, Rancid

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s