how codeigniter project host on to live server ?

how-codeigniter-project-host-on-to-live-server

In this tutorial i would like to show how codeigniter project host on to live server. It is very easy to move your codeigniter project to the live server from local system. Just you need a valid domain and hosting to upload files. Follow me i will show step by step.

1. Get your domain and hosting from service provider.Many of service provider gives domain and hosting services at a reasonable price like godaddy, hostgator or others.

2. Make zip of all folders and files inside of your codeigniter project folder in your local system.

Zip of Codeigniter Project folder

3. Now, login to cpanel with your cpanel credentials and go to the File Manager>>public_html and upload your zip file through upload option and extract it. To extract the zip file just right click on zip file and you can see the Extract option.

Cpanel Interface

Cpanel View

File Manager View

File Manager View

 

4. Next create database through Cpanel Mysql databases option.

My sql Databases

My sql Databases

Create new database.

Database creation

Database creation

Create new User.

Database user

Database user

Add user to the database. Just select User and Database you have created already and click add.

Add_user_to_database

Add_user_to_database

Select privileges that you want to give to that user.

User privileges

User privileges

5. Next, setup your base_url and site_url inside application/config/config.php.just write your domain for Ex: http://www.techalltype.com/.This is required to pointing index file of root folder while running domain.

5. Change database configuration inside application/config/database.php. Database, User and password already created.Just put all details in the database config file.

Thats all, Now go to your browser and run your domain Ex: www.techalltype.com. You can see your index page.

 

Thank you for reading this post. we hope you like this Post, Please feel free to comment below, your suggestion. if you face any issue with this example let us know. We’d love to help!

 

I am Hitesh from Jamshedpur (India). I have been working as a Web Application Developer from last 4+ years. I love diverse and attention catching web presence for a variety of users. Also I love to learn new things in Web Development.

Tags: , ,