To begin, download the most current version of CodeIgniter. As of this writing, the current version is 1.7.0. In a typical installation, you will find a system folder (which contains all the brains of CI as well as the application folder, where you will store your files.), the user guide folder, the license, and the index.php. What we are going to do is alter the structure in a way that will allow you to reference one code base (system folder) from many installs of your custom code (controllers, models, views...anything you will find in the application folder). Follow the steps below (NOTE: you will need access to directories above the web root.)
Steps to Install CodeIgniter above the root
- Cut the application folder out of the system folder and paste is somewhere you can remember (lets say the desktop for now)
- Log into your web server (I use WinSCP for this) and navigate to a directory above your web root and create a folder to hold your CI system folder. (On my server I call this /ci/)
- Copy your entire system folder (the one without the application folder...remember, we cut that out in step 1) to this directory. This directory should now look something like "/ci/system1.7.0"
- Now, copy the application folder (the one we pasted to the desktop) to the web root of the site you are installing. Along with this, copy your index.php as well as license.txt.
- The final step is to alter your index.php file to point to your newly installed codebase. Open index.php in your favorite text editor (I'm a Dreamweaver fan....i know i know...boo) and find this line:
$system_folder = "system";
Change this line to be the path to your your installation, in the example above I would change it to:
$system_folder = "/ci/system1.7.0";
Now browse to the root of your codeigniter site and you should be seeing your welcome controller. Now, all future installs of CodeIgniter all you will need to do is install the application folder and the index.php. It's that simple!
Please feel free to leave comments is I've missed something.


