I'm developing a webpage and I'm interested in calling
pdflatex to compile a
.tex file in order to generate a PDF report. I test the command in the directory where the
.tex is, then there is no problem.
However if the server executes the command I get the following error:
!pdfTeX error: pdflatex (file ecrm1095): Font ecrm1095 at 600 not found ==> Fatal error occurred, no output PDF file produced!
And this missfont.log file is generated with this single line:
mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 ecrm1095
Now here is the kicker. Whenever I use the command as a regular user it generates a
.texmf-var directory which contains the font somehow. If then I try the compilation with php it works perfectly. But if I erase the folder and try the compilation again it fails with the above error. As far as I can tell it is because the apache user (www-data) does not see the font. And my regular user does.
I have searched the web and have found out that
updmap-sys seems to make different font sets available system wide, but I can't figure out how to use it. Any help would be appreciated.