I am trying to compile a latex source file from php, using exec
:
echo shell_exec("/usr/texbin/pdflatex source.tex");
Unfortunately, latex doesn't seem to see all packages when it is called via php.
For example, I get
LaTeX Error: File `customclass.cls' not found
when I try to use customclass
, installed in my local texmf
folder. There is also the same problem for some packages installed elsewhere.
This has certainly something to do with a path variable or something like that to set up, but I haven't been able to find what for an hour.
Has someone an idea ?