Welcome Guest, Not a member yet? Register   Sign In
Require help with special installation for production
#1

[eluser]georgefromohio[/eluser]
Hi All,
Just so you know, I'm new to CodeIgniter. I settled on this framework after a great deal of hair pulling, deciding against Zend and Cake. The main factor that influenced my decision was my inability to change permissions on my remote folders. Ok, on to my question.

My site's folders are setup like:

Code:
/htdocs
.../siteA
.../siteB
.../staging

I would only like "/staging" to be controlled by CodeIgniter. My CI installation is under "/_system" and folder "/ci" -it looks like this:

Code:
/htdocs
.../_system/ci/{system>application,cache....}
.../siteA
.../siteB
.../staging

How would I go about setting up config.php and .htaccess so that only everything in "/staging" etc. points to the views.

It's probably the lack of sleep, what am i missing? Is this even possible? I did search the form for similar solutions, couldn't find anything close. Any help would be thoroughly appreciated.
#2

[eluser]t'mo[/eluser]
[quote author="georgefromohio" date="1231567742"]Hi All...
I would only like "/staging" to be controlled by CodeIgniter...How would I go about setting up config.php and .htaccess so that only everything in "/staging" etc. points to the views.
[/quote]

Try the following (make the settings for application and system in index.php point to the right places above htdocs):

Code:
// one dir. above htdocs

/staging_application
/staging_cache
/ci/{system, *not* application}
+--/htdocs
   +--/siteA
   +--/siteB
   +--/staging/index.php
#3

[eluser]georgefromohio[/eluser]
[quote author="t’mo" date="1231666340"]

Code:
// one dir. above htdocs

/staging_application
/staging_cache
/ci/{system, *not* application}
+--/htdocs
   +--/siteA
   +--/siteB
   +--/staging/index.php
[/quote]

Hi t'mo,

Thanks for the reply. I do not have access to create anything above the "/htdocs" folder. Also forgive me, but I don't know how to change the settings for application and system. Couldn't I use the same technique to point to a folder under "/htdocs".
#4

[eluser]georgefromohio[/eluser]
Hi again t'mo,

I just understood what you meant by
Quote:Try the following (make the settings for application and system in index.php point to the right places above htdocs):

but I do not have access to create folders above "/htdocs". I'll send in a request. However how does this prevent the other sites from not being controlled by ci? Is it by changing the ['base_url'] param in config.php to "http://mysite.com/staging/"?




Theme © iAndrew 2016 - Forum software by © MyBB