On Wed, Jul 20, 2005 at 10:45:14AM +0200, knitti wrote: > On 7/20/05, Thanos Tsouanas <[EMAIL PROTECTED]> wrote: > > The problem is, > > Premature end of script headers > > > > The script runs fine without the User/Group directives, and also runs > > fine if I su to the user and run it by hand. > > > > Any ideas? > > I don't know exactly what suexec does, but if your script is mod 777, try > 755 oder 750.
Solved, but badly. This was no problem. It turns out that suexec looks for scripts in /var/www/htdocs/, and since it's in a chroot, this thing doesn't exist. This dirty hack works, but I dislike it: ln -s /var/www/htdocs /htdocs mkdir -p /var/www/var/www cd /var/www/var/www ln -s /htdocs ./htdocs (I had the first ln all along, since it's needed for the scripts to run both from the server and from console, while testing) Any thoughts for a better way? Actually, a way to tell suexec that it's root is /htdocs and not /var/www/htdocs would be ideal, but I don't think it can be done without recompiling. No? Thanks all. -- Thanos Tsouanas .: My Music: http://www.thanostsouanas.com/ http://thanos.sians.org/ .: Sians Music: http://www.sians.org/

