PHP CODEIGNITER INSTALLATION GUIDE

Configure CodeIgniter

A) Set the Base URL:
1. Open application/config/config.php:
Copy code
$config['base_url'] = 'http://localhost/ci_example_project/';
B) Configure the Database:
1. Open application/config/database.php and set your database credentials
Copy code
$db['default'] = array(
'hostname' => 'localhost',
'username' => 'root', // Your MySQL username
'password' => '', // Your MySQL password
'database' => 'ci_example_db',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'autoinit' => TRUE,
'stricton' => FALSE
);
C) Enable URL Rewriting:
1. Add a .htaccess file in the root directory:
Copy code
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
D) Test the Configuration:
1. Open the browser and go to:
Copy code
http://localhost/ci_example_project/
If CodeIgniter is properly set up, you will see the default welcome page.