Upload
rismunandar-winata
View
2
Download
0
Embed Size (px)
DESCRIPTION
Install Codeigniter
Citation preview
How to install codeigniter
Codeigniter is a php framework. This is very usefull for web developers. Because codeigniter provide
many library that they can use and make their project finish faster. For learn how to use codeigniter,
you don’t have to worry, because codeigniter provide userguide with complete explanation with the
example in each topic. So that you know how to feel using codeigniter you can download it from
here http://codeigniter.com/ .
If you have downloaded it, follow this step. Before you can install codeigniter make sure that you
have installed webserver in your local computer. If you have not installed it and have not known
how to installed it you can see previous post with title How To Install Server Locally. Currently I
consider you have understood. Following the instruction.
First extract codeigniter to your local webserver, because in this example we use XAMPP so we place
it to folder C:\xampp\htdocs\ . you can copy and paste folder codeigniter to that folder.
Here we rename the folder codeigniter so we get good url. We rename the folder become
sisfo_akademik. Now we have C:\xampp\htdocs\ sisfo_akademik\ .
Then config your database in database.php file. The file located in the folder C:\xampp\htdocs\
sisfo_akademik\application\config\database.php . open that file then find this word
$db['default']['hostname'] = 'localhost';$db['default']['username'] = '';$db['default']['password'] = '';$db['default']['database'] = '';$db['default']['dbdriver'] = 'mysql';
Change to be like this,
$db['default']['hostname'] = 'localhost';$db['default']['username'] = 'root';$db['default']['password'] = '';$db['default']['database'] = 'sisfo_akademik';$db['default']['dbdriver'] = 'mysql';
As a note for that configuration means we use host with localhost with username root with no
password and with database name : sisfo_akademik in our database.
Then you can config your base url, you can edit file config.php that located in C:\xampp\htdocs\
sisfo_akademik\application\config\config.php. Then find this words.
$config['base_url'] = '';
The change to be like this,
$config['base_url'] = ' http://localhost/sisfo_akademik/ ';
Right now you have finished to configure your codeigniter. And you can access it in browser with url
http://localhost/sisfo_akademik/ then you can see user guide to make your own website in
http://localhost/sisfo_akademik/user_guide/ .