running as apache user does not work, why?

Zdenek Wagner zdenek.wagner at gmail.com
Fri Aug 16 16:50:08 CEST 2019


pá 16. 8. 2019 v 12:40 odesílatel mario chiari <ml at mariochiari.net> napsal:
>
> 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?

Yes, settini inside the bash script ensures that it will work in both.

> >
> > > 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

You might have some TL 2016 related setting somewhere in one of the
/etc/httpd/conf.d/*.conf files

> > >
> > > thanks
> > > mario
> > >

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz



More information about the tex-live mailing list