in reply to Re: system call to pdflatex
in thread system call to pdflatex

the "system" perl call uses / as its working dir, not the working dir of the perl script
Not true. Check
perl -e 'system q{/bin/pwd}'
Somehow you are setting the script's working directory to /.

Replies are listed 'Best First'.
Re^3: system call to pdflatex
by Corion (Patriarch) on Nov 24, 2011 at 12:35 UTC

    ... it may also be that Apache is launching the Perl script with a working directory of /.

      Counts as "somehow" for me :-) Yes, it is highly probable. And it should be configurable, too.