How to create a project with CodeIgniter?
The CodeIgniter framework is installed in the "frameworks" folder in the installation directory. To run any command, it is necessary to start the BitNami Console. If you are using a Virtual Appliance or AMI, you can run the commands below directly.
These are the folders that you can find in the codeigniter folder:
application conf htdocs license.txt system
In the "conf " folder, you can find the Apache configuration files. You can modify those to change the URL for accessing your project. In the "application" and "system" folders are the CodeIgniter files. The "htdocs" folder will be the only available on the web site.
If you intend to use encryption or sessions, change your encryption key in the "application/config/config.php" file:
$config['encryption_key'] = '';
If you are going to use a database, you can specify the settings in the "application/config/database.php" file.
To enable the sample application, you should uncomment the following line at the end of the installdir/apache2/conf/bitnami/bitnami-apps-prefix.conf file:
Then restart the Apache server and point your browser at http://mydomain/codeigniter.
./ctlscript.sh restart apache
The sample application ships the CodeIgniter user guide where you can find more information about it. You can also see online at http://codeigniter.com/user_guide.
How to move CodeIgniter to the root URL?
The framework is available at http://YOUR_IP/codeigniter by default. If you want to have CodeIgniter in the root URL, you should change the file that apache is lo following lines in the installdir/frameworks/codeigniter/conf/hppd-prefix.conf file:
DocumentRoot "installdir/frameworks/codeigniter/htdocs" # Alias /codeigniter "installdir/frameworks/codeigniter/htdocs" # Alias /codeigniter/ "installdir/frameworks/codeigniter/htdocs/"
Comment the Alias options and add the "DocumentRoot" option to point to the htdocs folder. You may also want to change the "AllowOverride None" to "AllowOverride All" in the /installdir/frameworks/codeigniter/conf/httpd-app.conf file to remove the "index.php" from the URL.