Bugzilla – Bug 7863
ilohamail installs to DocumentRoot
Last modified: 2007-04-01 01:20:49 UTC
# apache htdoc path auto detection if spell_installed "apache"; then LOC="/usr/share/httpd/htdocs/$SPELL" elif spell_installed "apache-mod_ssl"; then LOC="/usr/share/httpsd/htdocs/$SPELL" elif spell_installed "apache2"; then LOC="/usr/share/apache2/htdocs/$SPELL" that is plain wrong, as some admin may have changed DocumentRoot. Could we use something like that to get the right path: cat /etc/httpd/httpd.conf | grep DocumentRoot\ \" | cut -d\" -f 2 Moer over, i keep getting when casting IlohaMail: /tmp/sorcery/cast/24429/casting.safe: line 29: /etc/init.d/apache.sh: No such file or directory which looks like clearly a bug :-) investigating why...found. in POST_INSTALL, at the end of the file, please change /etc/init.d/apache.sh to /etc/init.d/runlevels/%3/apache thx. Well, last addition: please update that thing: http://sourceforge.net/projects/ilohamail/ shows 0.8.9 as devel, and 0.8.14-RC1 as stable. regards
Would you please too avoid to install it in DocumentRoot, and change ownership of the whole tree ? thx. btw, i'm running right now stable version as indicated in my previous comment, runs fine. regards.
Since one can not play guessing games with things like apache conf files after it's been installed, there's no real way to figure out what DocumentRoot one should place this kind of software in. Hence, the default makes the most sense (and is probably why all the other spells of this type do the same thing - have a look at squirrelmail, or openwebmail). Once the software exists in the 'default' location, the administrator is free to copy away, or simply run it from the default location. At any rate, I've done the version bump to the spell, but don't really see how the rest has any need to be 'fixed'.
Ok, you don't want to check the right location of DocumentRoot. That'll bork tracking if real documentroot is anywhere else, because I suppose the admin would mv and not cp files :( And what about install commands ? Couldn't you install squirrelmail, IlohaMail in a subdirectory of DocumentRoot ? Acting like the spell does currently doesn't take care at all of potentially already present files. That's a shame since it could replace other files etc. And make by the way a couple guys quite upset. All in all, putting it in a subdirectory could save files and avoid the spell to change the ownership of the whole website. Your opinion ?
I'd like to add too that 0.8.14-RC2 is out, (security fixes).
IlohaMail 0.8.14-RC3 Released, security fixes. please update.
CC'ing security team lead, as nothing evolved for months.
I'll have a look on that quickly...
Updated in devel, can someone with php verify? Thomas, can you get it into stable once it's verified?
For DocumentRoot, the packages should probably install themselves to /usr/share/<spell> and the admin can add the proper flags to httpd.conf to include them. Or setup his own symlinks.
The security fix is in test, it needs to go to stable...
Updated in stable, now we can take care of this DocumentRoot problem...
I've changed the Summary and added a dependency on Bug #8671. That is the master bug for spells that use DocumentRoot improperly. I will go through as I have time and file bugs for spells that do this so we can fix them. The bug is filed against stable because I think this is an important issue (managing and changing files in a user's htdocs is a Bad Thing(TM)).
Reassigning these to me, because I don't have the mail@sourcemage.org email alias pointed to me :)
Fixed in test
I can verify this one: It does install to /usr/share/www/ilohamail now
Bug closing time.
reassign to sm-grimoire-bugs