EllisLab text mark
Advanced Search
     
how to setup code igniter so it’s outsid public_html?
Posted: 20 July 2007 07:20 PM   [ Ignore ]
Joined: 2007-07-18
92 posts

Hi, I’m not sure which paths or variables I need to change in order to make code igniter work outside the public_html folder

I want to have a directory structure like this:

classes
lib
 
CodeIgniter_1.5.4
   
code igniter files
public_html
 
Images
 
JS
 
CSS
 
index.php 

I have no idea how to set this up.

 Signature 

Check it out: Critique Computer Products

 
Posted: 20 July 2007 08:07 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2007-07-18
92 posts

I think I found a solution, I haven’t even started using code igniter yet, so I’m not sure if this screws up anything else. So far I moved everything except the index.php file outside the public_html directory. I then changed the system and applications paths and wrote in a full path.

Ex:

$system_folder "S:/site_name/CodeIgniter_1.5.4/system";
$application_folder "S:/site_name/CodeIgniter_1.5.4/system/application"

when I load up the index.php it loads up the welcome controller, so it seems to work.

 Signature 

Check it out: Critique Computer Products

 
Posted: 21 July 2007 05:08 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2006-02-06
117 posts

You don’t need to change anything, just move everything outside the web root and include the index.php in an index.php file in the web root - explained on my site here: CodeIgniter Installation  grin

 Signature 

My Blog, I work at Erskine Design