PHP-How to install or setup CodeIgniter In Xampp Server

How to install or setup CodeIgniter In Xampp Server

codeigniter3 gaurav, gaurav dixit, php, mysql gaurav

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.
  2. URL: Codeigniter 3

    codeigniter3 gaurav, gaurav dixit, php, mysql gaurav
  3. Unzip the file in your htdocs folder.
  4. Set the baseurl by open application/config/config.php file with a text editor.
  5. Example

     $config['base_url'] = ‘http://localhost’;
  6. If you need to change the database details open the application/config/database.php file with a text editor and set your database settings.
  7. 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
    );

To chcek CodeIgniter install successfully or not open the below link in your browser.

http://localhost/Folder name

Here CodeIgniter is my CodeIgniter project folder name.

http://localhost/CodeIgniter


Lets Play with CodeIgniter

Post a Comment

Previous Post Next Post