How to deploy a CodeIgniter framework website in cPanel ?
Silicon House Hosting supports CodeIgniter Framework. CodeIgniter is an application development framework, which can be used to develop websites, using PHP. It is an Open Source framework.
CodeIgniter has a very rich set of functionality, which will increase the speed of website development work.
Server Requirement for CodeIgniter Framework
PHP version 5.6 or newer is recommended.
A database is required for most web application programming. Currently supported databases are:
1) MySQL (5.1+) via the mysql (deprecated), mysqli and pdo drivers
2) Oracle via the oci8 and pdo drivers
3) PostgreSQL via the postgre and pdo drivers
4) MS SQL via the mssql, sqlsrv (version 2005 and above only) and pdo drivers
5) SQLite via the sqlite (version 2), sqlite3 (version 3) and pdo drivers
6) CUBRID via the cubrid and pdo drivers
7) Interbase/Firebird via the ibase and pdo drivers
8) ODBC via the odbc and pdo drivers (you should know that ODBC is actually an abstraction layer)
Silicon House linux reseller hosting package supports both the php version and database versions. Hence it is very easy to host a codeigniter application in Silicon house server.
Deployment of CodeIgniter
CodeIgniter can be either developed in your local environment and uploaded to server or it can be downloaded to a server and worked on server directly.
Step-1 – Download the CodeIgniter from https://www.codeigniter.com/download
Step-2 – Unzip the folder
Step-3 – Upload all files and folders to your server
Step-4 – After uploading all the files to your server, visit the URL of your server, e.g., www.domain-name.com
Directory structure
1) Application
2) System
3) User_guide
1) Application
==========
Application folder contains all the files of your application project. It contains several subfolders,
Cache – This folder contains all the cached pages of your application. These cached pages will increase the overall speed of accessing the pages.
Config – This folder contains various files to configure the application. With the help of config.php file, user can configure the application. Using database.php file, user can configure the database of the application.
Controllers – This folder holds the controllers of your application. It is the basic part of your application.
Core – This folder will contain base class of your application.
Helpers – In this folder, you can put helper class of your application.
Hooks – The files in this folder provide a means to tap into and modify the inner workings of the framework without hacking the core files.
Language – This folder contains language related files.
Libraries – This folder contains files of the libraries developed for your application.
Logs – This folder contains files related to the log of the system.
Models – The database login will be placed in this folder.
Third_party – In this folder, you can place any plugins, which will be used for your application.
Views – Application’s HTML files will be placed in this folder.
2) System
=======
System folder contains CodeIgniter core codes, libraries, helpers and other files, which help make the coding easy. These libraries and helpers are loaded and used in web app development.
This folder contains all the Code Igniter code of consequence, organized into various folders mentioned below:
Core – This folder contains Code Igniter’s core class. Do not modify anything here. All of your work will take place in the application folder. Even if your intent is to extend the CodeIgniter core, you have to do it with hooks, and hooks live in the application folder.
Database – The database folder contains core database drivers and other database utilities.
Fonts – The fonts folder contains font related information and utilities.
Helpers – The helpers folder contains standard helpers (such as date, cookie, and URL helpers).
Language – The language folder contains language files. You can ignore it for now.
Libraries – The libraries folder contains standard CodeIgniter libraries (to help you with e-mail, calendars, file uploads, and more). You can create your own libraries or extend (and even replace) standard ones, but those will be saved in the application/libraries directory to keep them separate from the standard CodeIgniter libraries saved in this particular folder.
3) User_guide
==========
This is your user guide to CodeIgniter. It is basically, the offline version of user guide on CodeIgniter website. Using this, one can learn the functions of various libraries, helpers and classes.
Advantages of choosing CodeIgniter framework for your web application
1. Codeigniter is fast, reliable, lightweight and more capable
2. PHP framework is an easy debug that allows you easily to get out the errors in your development. Codeigniter Development can extend your PHP coding to get the specific functions through frameworks
3. It is secure
4. Codeigniter PHP Development is a most easy way to utilize a modular programs
5. Codeigniter PHP Development is compatible with most web servers like apache,light speed etc, numerous operating systems and hosting platforms
6. Many features are almost the same so that you can describe the same code in different way
7. Codeigniter PHP Development is highly famous and almost every one is preferring, hence support for the same can be easily obtained from web
8. Codeigniter PHP Development is simple to learn and Its initial configuration is very easy
Features of CodeIgniter
Some of the important features are listed below:
1. Model-View-Controller Based System
2. Extremely Light Weight
3. Full Featured database classes with support for several platforms.
4. Query Builder Database Support
5. Form and Data Validation
6. Security and XSS Filtering
7. Session Management
8. Email Sending Class. Supports Attachments, HTML/Text email, multiple protocols (sendmail, SMTP, and Mail) and more.
9. Image Manipulation Library (cropping, resizing, rotating, etc.). Supports GD, ImageMagick, and NetPBM
10. File Uploading Class, FTP Class
11. Localization, Pagination
12. Data Encryption
13. Benchmarking
14. Full Page Caching
15. Error Logging
16. Application Profiling
17. Calendaring Class, User Agent Class, Zip Encoding Class, Template Engine Class, Trackback Class, Unit Testing Class
18. XML-RPC Library
19. Search-engine Friendly URLs
20. Flexible URI Routing
21. Support for Hooks and Class Extensions
22. Large library of “helper” functions
Hope from the above details, you have got idea about Code Igniter development framework.