Set root to a path higer up in the filesystem hierarchy

492 views
Skip to first unread message

Ruben Solvang

unread,
Apr 15, 2014, 2:44:21 PM4/15/14
to icec...@googlegroups.com
I have placed ICEcoder in; /var/www/"admintoolsfolder"/htdocs/ICEcoder but want to access files further back in the hierarchy, preferably /var/www/ – is this possible with a little 'hacking'?

I use EasyEngine (ee) (https://rtcamp.com/easyengine/) to quickly set up and manage sites, and ee has, quite wisely, separated admin tools in a separate folder that can be controlled by whitelisting IPs, to improve security. It would be great if I could add ICEcoder to this folder, and not to the public site.

I have poked around in the config files – so far without luck.

Brian Currid

unread,
Apr 16, 2014, 2:17:31 AM4/16/14
to icec...@googlegroups.com
In ICEcoder/lib/config____settings.php change the "docRoot" to whatever you want. In your case, I guess it would be /var/www/ but keep in mind that if you are on a shared server then there may be some other folders higher up than that (such as "/home/your acct name/" or something like that. 

Matt Pass

unread,
Apr 16, 2014, 1:42:23 PM4/16/14
to icec...@googlegroups.com
Yep, what Brian said.

By default, $docRoot is set to $_SERVER['DOCUMENT_ROOT']. You can change that to something else and as long as ICEcoder has access permissions for that location, it'll work with that.

On a separate, but related note, I turned ICEcoder into an software style app (see https://groups.google.com/forum/#!topic/icecoder/54krbSiIWAE) and set $docRoot to "c:".

Even tho ICEcoder was situated several subdirs down (so, similar to your desired setup Ruben), all seemed to work great and I was able to open any file on my PC.

No known issues I could find with having a docRoot higher up the path than ICEcoder is.

Ruben Solvang

unread,
Jun 20, 2014, 10:47:20 AM6/20/14
to icec...@googlegroups.com
Thanks, worked like a charm!

I used "/var/www/" without problems :)
Reply all
Reply to author
Forward
0 new messages