Showing posts with label lampp. Show all posts
Showing posts with label lampp. Show all posts

How to Install & Run CodeIgniter

How to install codeigniter by following some steps are explained below:
1. Download the zip file from this Url https://github.com/bcit-ci/CodeIgniter/archive/3.1.9.zip.
2. Unzip the files and put them to your webserver 'htdocs folder' where you want to. lets assume that you put it at codeigniter folder of your web server.
3. Open the application/config/config.php file with a text editor and set your base URL. lets asumme that your base URL is set like this:
$config[‘base_url’] = “http://localhost/codeigniter/projectName";
4. If you intend to use a database, open the application/config/database.php file with a text editor and set your database settings. Set the following variables according to your setup.
$db[‘default’][‘hostname’] = “localhost”;
$db[‘default’][‘username’] = “admin”;
$db[‘default’][‘password’] = “*****”;
$db[‘default’][‘database’] = “projectone”;
$db[‘default’][‘dbdriver’] = “mysql”;
$db[‘default’][‘dbprefix’] = “”;
$db[‘default’][‘active_r’] = TRUE;
$db[‘default’][‘pconnect’] = TRUE;
$db[‘default’][‘db_debug’] = TRUE;
$db[‘default’][‘cache_on’] = FALSE;
$db[‘default’][‘cachedir’] = “”;
5. Now you can run installed codeigniter software by following below urls
Kindly note in below url codeigniter is your project folder name. so, when you are going to run than check once that if your project folder name is codeigniter than you can follo below link else you can change your url as per your project folder name.
After run of your project in browser you will see this output
“Welcome to Code Igniter!”
codeigniter
Now you are ready to work with Code Igniter.

Accessing php project over the network

                              Here we are going to see the setting of php project accessing over the network it can be of any i.e wampp,xampp and lampp. For accessing the project you have to make some mandatory changes in configuration files of your wampp or xampp or lampp etc.

Filename where we are going setting up something i.e. (http.conf) file which located in apache folder.

Common full path of httpd.conf file is 

C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf


Changes which you have to make in the file i.e find Require local and change it to Require all granted

After making the changes just save all file and restart all services once. then go to other pc and open browser enter ip address of project accessing pc i.e. ip_address/project_name 

Then hit enter button you can view the php project of other pc into your pc over the same network.

And if you are having any query realted to this setup you can clear your doubt by commenting on post we definitely revert you.