Re: Apache suEXEC problem
On Sat, 19 May 2001, Hector Castillo wrote:
> that pages are in "/var/www", and we have them into "/home/webftp". So
> My question is: żdoes anybody know how to recompile the Debian source
> of apache-ssl and which files would be necessary to change?
I have came across this problem many times (and it is one of the few
things I dislike about packaged systems). Anyways, I have fixed this
problem two different ways:
- fetch the original Apache source for the same version of
Apache; configure suexec to your liking and then build
it with suxec support; then simply copy just the suexec binary and chmod
it to be setuid. (No need to install everything.)
- easier still is to actually edit the binary suexec file itself; I have
done this successfully a few times on different servers (different OSs) by
using sed; change the "/var/www" to "/home^@^@^@". The sed expression I
used last time was:
s/\/home\/httpd\/html/\/home^@^@^@^@^@^@^@^@^@^@^@/
(where ^@ is ASCII 0, null).
Hope these ideas help. (Maybe there is now an easier Debian way?)
Jeremy C. Reed
http://www.reedmedia.net/
http://bsd.reedmedia.net/ -- BSD news and resources
http://www.isp-faq.com/ -- find answers to your questions
Reply to: