CodeIgniter Forums

Full Version: Separating the main "/system" folder out of WWW root for multiple web apps?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]taewoo[/eluser]
Hi all.
I have multiple web applications (that do totally different, unrelated things) written in CI. It seems to me the main CI "plumbing" should be removed from the WWW root since this stuff doesn't change (unless official versions of CI are released in which case update is done - but this occurs rarely).

Is there a "clean" way to host multiple applications using one CI copy/instance on my web server?

El Forum

El Forum

[eluser]fesweb[/eluser]
I do it this way:
Code:
* the public url
/myapp/

* the actual application
/code/ciapps/myapp/

* the system folder
/code/CI_1.6.3/mysystemfolder/
This allows me to:
1. easily upgrade and downgrade any application independently from the others, in case something doesn't work with newer version of CI.
2. run variants of the same application at two different public urls (ex: "/myapp2/" could point to the same app).

El Forum

[eluser]taewoo[/eluser]
sweet. thanks guys