CodeIgniter is a powerful open source PHP framework with a small footprint that allows PHP developers to create from scratch full-featured web applications thanks to a simple toolkit.
In this tutorial we will help you install CodeIgniter locally in a system running Ubuntu 11.10/12.04, users of older versions of Ubuntu (11.04/10.10) can also follow this tutorial. CodeIgniter requires a web server installed on your system, you can find here how to install LAMP under Ubuntu.
After finishing the installation of the LAMP web server, open the terminal and run the following commands to download and install CodeIgniter (Version 2.1.0) in the /var/www/ directory:
wget -O CodeIgniter_2.1.0.zip http://goo.gl/Jhhjk
sudo unzip CodeIgniter_2.1.0.zip -d /var/www
sudo mv /var/www/CodeIgniter_2.1.0 /var/www/codeigniter
If you intend to use a database, you can edit the database.php file and enter your database settings:
sudo gedit /var/www/codeigniter/application/config/database.php
You can now access the CodeIgniter welcome page by opening one of these URLs:
The user guide is accessible here:
The files for CodeIgniter is stored in the /var/www/codeigniter directory. If you need to edit / move / delete some files inside that folder with root privileges, you can simply access it with the following command in the terminal:
gksudo nautilus /var/www/codeigniter
You may check this video, which is useful for beginners: