Welcome Guest, Not a member yet? Register   Sign In
which things are remember when hosting site for on web

Hi all,
I want to knw about the Codeigniter site hosting on web: Which file/thing are always remember to update.
Plz help me. :roll:


.htaccces file
base_url in config file
make folder rights 777 where are file writing
database configuration (login, password...)

Don't know more at the moment at least.

Change index.php to point to your system and application folders!


Thanks to all.
It work properly but database not loaded.
I change system/application/config/database.php

$active_group = "default";
$active_record = TRUE;
$db['default']['hostname'] = "myhost";
$db['default']['username'] = "dbusername";
$db['default']['password'] = "dbpassword";
$db['default']['database'] = "dbname";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$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";

is it correct or some other changes also do.

Check out the user guide.

Make sure you load the database library. I usually autoload it, you can put it in your application/config/autoload.php file. Or you can manually load it as needed by running


You still need to load the model for the db table wherever you are needing to work it:
$data['something'] = $this->table_name->run_some_model_function();

Check with your hosting provider for your database host name.

Like mine is still localhost!


Theme © iAndrew 2016 - Forum software by © MyBB