CodeIgniter Forums
Is it necessary to put the system folder under webroot? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Is it necessary to put the system folder under webroot? (/showthread.php?tid=8808)



Is it necessary to put the system folder under webroot? - El Forum - 06-01-2008

[eluser]mattalexx[/eluser]
Right now I have it set up like this:

Code:
+ sitefolder
   + logs
   + webroot
      + system

Would this be okay to do as long as I edited the index.php file??

Code:
+ sitefolder
   + logs
   + system
   + webroot



Is it necessary to put the system folder under webroot? - El Forum - 06-01-2008

[eluser]Pascal Kriete[/eluser]
That's fine. Actually, many people here will suggest it as it's a) safer and b) allows you to run several applications on one core, making it easy to update.


Is it necessary to put the system folder under webroot? - El Forum - 06-01-2008

[eluser]mattalexx[/eluser]
That's good to hear, thanks.


Is it necessary to put the system folder under webroot? - El Forum - 06-02-2008

[eluser]MCrittenden[/eluser]
So how do you tell index.php to reach the system folder? Change the path to "../system"?


Is it necessary to put the system folder under webroot? - El Forum - 06-02-2008

[eluser]mattalexx[/eluser]
I gave it a full path and it worked like a charm. Like this on a lot of computers:

Code:
/var/www/sitename/system



Is it necessary to put the system folder under webroot? - El Forum - 06-02-2008

[eluser]gunter[/eluser]
yes that should work... and donĀ“t forget to change the application path, too...