running as apache user does not work, why?

mario chiari ml at mariochiari.net
Fri Aug 16 12:40:07 CEST 2019


On Fri, 2019-08-16 at 09:54 +0200, Zdenek Wagner wrote:
....
> 
> > I have a .php script
> > 
> > <?php
> > ......
> > 
> > $test2 = `/usr/local/texlive/2019/bin/x86_64-linux/pdflatex  --interaction
> > batchmode myFile.tex`;
> > $test21 = `sudo -u root /usr/local/texlive/2019/bin/x86_64-
> > linux/biber   myFile.bib`;
> > $test22 = `/usr/local/texlive/2019/bin/x86_64-linux/pdflatex  --interaction
> > batchmode myFile.tex`;
> > .....
> > ?>
> > 
> > How would you define the necessary variables therein?
> > 
> You cannot do it directly within PHP. When I do it, I have a small
> bash script started from PHP and everything is set in this bash script

 would it work by either cli or webserver php?
> 
> > Note: everything works fine, even from within the .php script, if I call a
> > older
> > 2016 version of texlive.

it puzzles me why I do not need anything special to compile when I call the 2016
texlive
> > 
> > thanks
> > mario
> > 
> 
> Zdeněk Wagner




More information about the tex-live mailing list