Installing Codeigniter on your local development environment

<?php
phpinfo();
$ unzip Codeigniter-3.X.zip
$ sudo apt-get install unzip
$ mv Codeigniter-3.X.X /var/www/html/
$ cd /var/www/html
$ mv Codeigniter-3.X.X testapp
$config['base_url'] = 'http://localhost/testapp/';
RewriteEngine On
RewriteBase /testapp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1

--

--

Thinker, Scholar, Teacher, problem solver, and a self-made web developer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store