This guide aims to install and use
CodeIgniter on an
Ubuntu machine. We will assume you have the default Ubuntu installation.
- Install Apache 2:
sudo apt-get install apache2
- Install MySQL:
sudo apt-get install mysql-server mysql-client
- Install PHP5 and the necessary libraries:
sudo apt-get install php5-cli php5-mysql libapache2-mod-php5
- Download the CodeIgniter framework:
wget http://codeigniter.com/download.php -O ~/CodeIgniter.zip
- Extract the framework to the default Apache2 web directory:
sudo unzip ~/CodeIgniter.zip /var/www/
- You should now be able to navigate to your extracted folder from your web-browser. Hint: you will need to open firefox to http://localhost/<name-of-folder> which you can get by executing the following command:
ls /var/www
References
Excelent post,thanks for share.
ReplyDeleteHmmm... you could use the Rewrite module to map specific controllers. Without more information I can't really help out!
ReplyDelete