RE: [Nottingham] Apache 1.3 + CGI/Perl + suEXEC

From: Raphael Gangneux <nlug(a)domainarena.net>
Date: Thu 05 Oct 2006 - 12:58:02 BST

>> Now as Graeme said I have read that the only way to get that changed
>> is to re-compile the bugger

>Not quite. As long as your new docroot string is not longer than the
current one, you can just change the string in the binary (don't forget the
>trainling \0).
>It works, but it's also a "quick fix", with all that entails though
(including, but not limited to, mysteriously breaking CGI scripts after the
next
>apache upgrade).

Thanks Jo,
I carried on reading up on this and found some interesting suggestions
however they all require a fair amount of work (which is fair enough i
suppose ;-) ) with no real guarantee that things aren't gonna break. Your
suggestion seems pretty simple indeed. I actually managed to fix it by
opting for the 'logical' solution: I moved the site in question to the
suexec docroot and updated the vhost file to reflect that! :-)
It all works fine now.
I will keep your posts for future reference. Thanks again.

Regards,

Raph

_______________________________________________
Nottingham mailing list
Nottingham@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/nottingham
Received on Thu Oct 05 13:03:16 2006