Here I am sharing how you can deploy your Codeigniter project to production server using cPanel. For making it live you need to purchase domain and hosting space from provider like Godaddy, bigrock or hostgator. Once you purchase you can deploy your project using cPanel.
Deployment can be devided in two major parts as Database and File deployment.
Step 1: Login to cPanel of your hosting provider.
Step 2: Look for "Mysql Database" link under "Database" section and click it to create one.
Step 3: Now you need to create new user for the Database
Step 4: Assign user created to database.
Step 5: Look for "Phpmyadmin" under Database section and click on it.
Step 6: After navigating to PHPmyAdmin dump tables inside database you have created.
Files & Folder Deployment
Step 1: In cPanel look for "File Manager" under "Files" Section. By Clicking you will navigate to the page where you can upload your files and folders.
Step 2: Make sure that you are in "public_html" folder, on "File Manager" page. Now look for Upload link and click on it.
Step 3: Now zip your local code and upload it and provide permissions.
Step 4: Once uploading is completed, come back to file manager. You can see your zip folder in file listing. Right click on folder and select the extract to unzip.
Step 5: Now you can update your ".htaccess" and other config files like, database.php (update the database name, DB username and DB password you created in Step 2 & 3 in database section) and config.php with path details.
Hope It will help someone!!!!