Hello Monks,
I have a perl web application (now CGI, soon mod_perl) that depends on an external search engine I am connecting to. There are three mirrors of the search engine and what I need is something like a semi automatic failover.
So I need some place where to store the IP of the instance the application should use. If I know beforehand about maintenance going on I want to change the setting by hand but I also want the application itself to change the setting after it encounters connection problems.
This last requirement makes it necessary to save it where apache has write access - but where?
the temp-dir comes to mind but that might be cleaned by other processes (like a server restart). If I use other places I need another config variable where to find the config file. Something relative to the application dir wouldn't work with mod_perl. Putting it in the lib dir and "require"-ing it from my application is good for reading but not for writing.
So I am a bit lost with this seemingly easy task. Any ideas?
In reply to Where to store config info? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |