avatar Protobit Pro Apr 30. 2009. 6:32 am
Hi,

Is it possible to have a directory structure like this for activecollab?

ac
|-activecollab
|-cache
|-compile
|-config
|-error
|-import
|-logs
|-stats
|-tasks
|-thumbnails
|-upload
|-work
web
|-api.php
|-assets
|-avatars
|-brand
|-captcha.php
|-chat.php
|-index.php
|-logos
|-projects_icons
|-restore.php
|-thumb.php
|-upgrade
|-work

Here, web is the public folder, accessible through http://our-domain.tld/

Thanks,
Jure
avatar Ilija Studen Staff Apr 30. 2009. 6:57 am
It's not possible to do it the way you described it, but there are two options to have clean URL-s:

1. Use /public as document root and have the rest of the application behind document root.

2. Use mod_rewrite to have clean URL-s.
avatar Protobit Pro Apr 30. 2009. 7:24 am
Ilija Studen:
It's not possible to do it the way you described it, but there are two options to have clean URL-s:

1. Use /public as document root and have the rest of the application behind document root.

2. Use mod_rewrite to have clean URL-s.


Hi, Ilija,

Sorry for not making myself clear in my first post. I already have clean (human readable) URLs through mod_rewrite. I just want to move the non-public files and folders out of the public folder, without cluttering the parent folder, which already contains other stuff, such as maildir, logs, etc.

What I'm asking is if it's possible to set a custom root dir. In my case I would like to set it to '../ac/', instead of the default '../'.
avatar Ilija Studen Staff Apr 30. 2009. 7:35 am
Yes, it's possible and it's approach explained with #1 text - /public folder as document root (/public can also be renamed so it does not have to be /public). Check that article for details and note that in that case all non-public files need to go one level behind document root.
avatar Protobit Pro Apr 30. 2009. 7:52 am
Ilija Studen:
Yes, it's possible and it's approach explained with #1 text - /public folder as document root (/public can also be renamed so it does not have to be /public). Check that article for details and note that in that case all non-public files need to go one level behind document root.


I think you misunderstood what I wish to achieve. In my case, the parent folder (one level behind document root) already contains other stuff and therefore I wouldn't like to clutter it with lots of files and folders from activecollab. I would like to move the non-public files to a subdirectory of the parent folder. This way, they would be isolated from all the other stuff, making it easier to upgrade or move activecollab in the future.

I hope I was clear enough now. :)
avatar Ilija Studen Staff Apr 30. 2009. 8:01 am
Protobit:
I think you misunderstood what I wish to achieve. In my case, the parent folder (one level behind document root) already contains other stuff and therefore I wouldn't like to clutter it with lots of files and folders from activecollab. I


It's not possible because activeCollab depends on its folder structure (/public folder can be renamed, but everything else needs to be exactly as it's in installation package).

What is possible are the two approaches listed in comment #2.
avatar Protobit Pro Apr 30. 2009. 8:18 am
Ilija Studen:
It's not possible because activeCollab depends on its folder structure (/public folder can be renamed, but everything else needs to be exactly as it's in installation package).

What is possible are the two approaches listed in comment #2.


OK, thanks for your answer.

This could be an idea for a future version. All you would have to do is have a setting specifying the root directory, and make all the includes relative to that path.
avatar Ilija Studen Staff Apr 30. 2009. 8:21 am
Thanks, we'll consider it.