How to install or setup CodeIgniter In Xampp Server

If you need to change the database details open the application/config/database.php file with a text editor and set your database settings.

 To install CodeIgniter please follow the below step:

  1. Download the latest CodeIgniter by click on the download link version from the official codeigniter website.

    URL: https://codeigniter.com/


    1. Unzip the file in your htdocs folder.
    2. If you need to change the database details open the application/config/database.php file with a text editor and set your database settings.
    3. Example

      1.  $config['base_url'] = ‘http://localhost’;

    4. Set the baseurl by open application/config/config.php file with a text editor.

      Example

      $db['default'] = array(
      	'dsn'	=> '',
      	'hostname' => 'localhost',
      	'username' => 'root',
      	'password' => '',
      	'database' => 'my_db',
      	'dbdriver' => 'mysqli',
      	'dbprefix' => '',
      	'pconnect' => FALSE,
      	'db_debug' => (ENVIRONMENT !== 'production'),
      	'cache_on' => FALSE,
      	'cachedir' => '',
      	'char_set' => 'utf8',
      	'dbcollat' => 'utf8_general_ci',
      	'swap_pre' => '',
      	'encrypt' => FALSE,
      	'compress' => FALSE,
      	'stricton' => FALSE,
      	'failover' => array(),
      	'save_queries' => TRUE
      );
      
    5. To chcek CodeIgniter install successfully or not open the below link in your browser.


      http://localhost/Folder name

Comments

Popular posts from this blog

Codeigniter Pro Level Tips and Tricks

Login with Facebook in CodeIgniter

PHP - File Uploading