Welcome Guest, Not a member yet? Register   Sign In
how to setup code igniter so it's outsid public_html?
#1

[eluser]chobo[/eluser]
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:

Code:
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.
#2

[eluser]chobo[/eluser]
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:

Code:
$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.
#3

[eluser]Glen Swinfield[/eluser]
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 :-)




Theme © iAndrew 2016 - Forum software by © MyBB