Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-07-11 Thread massifr
> That is what I suspect as well. How do I find out which cache path is > being used? > I'm using Debian+ConTeXt+Apache+PHP. I've struggled a bit to make it work, but now it works. It works even inside a docker container. In my PHP code I've put this:

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-07-11 Thread Pavneet Arora
In principle this is workable up to the point that the output PDF needs to be handed off to the user. In my case, it is the (authenticated) parent who is requesting their child’s report card in one of two forms each of which is created dynamically at any point along the school “term”. The

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-07-09 Thread Pavneet Arora
I believe that public in this case refers to public assets such as CSS, js, etc., where one puts custom files rather than publicly accessible, e.g., wp-uploads for WordPress. In the case of most frameworks, URL access is limited to specified routes only which point to controller methods.

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-07-09 Thread Henning Hraban Ramm
Am 2016-07-09 um 17:45 schrieb Pavneet Arora : > Sorry that this has taken me so long. The report card application has > been deployed, and although I am still going through and resolving minor > bugs, it is very much in use (350 students leaving on Tu who already have >

[NTG-context] Invoking ConTeXt from inside php web appliction

2016-07-09 Thread Pavneet Arora
Dear Hraban, Sorry that this has taken me so long. The report card application has been deployed, and although I am still going through and resolving minor bugs, it is very much in use (350 students leaving on Tu who already have their foundation work marked and commented within the system;

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Mojca Miklavec
On 17 June 2016 at 14:16, Pavneet Arora wrote: > I am stuggling with getting ConTeXt to run from inside a php script > under Apache. First off, let me say that the installation works fine > from the command line as a logged in user. > > Initially, I tried to do it inline: > > cmd = ".

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Henning Hraban Ramm
Am 2016-06-17 um 20:57 schrieb Pavneet Arora : > $ chmod -R www-data:www-data context > > So ConTeXt is installed in .../www/public/context. > > Now I can source: > > $ . .../www/public/context/tex/setuptex .../www/public/context/tex > > and it all works. Please

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
Ah, we were thinking along the same lines! ;) I had just initiated a local install inside .../www/public when I received your email, which is in fact the DocumentRoot for this website, and did: $ chmod -R www-data:www-data context So ConTeXt is installed in .../www/public/context. Now I can

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Hans Hagen
On 6/17/2016 3:39 PM, Pavneet Arora wrote: That is really the crux of the issue, since www-data does *not* have a login shell. It is used only by apache. Can setuptex be made to point to the home directory explicitly where the website is housed, e.g., '/home/wwwuser' with user 'wwwuser'? On

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
That is really the crux of the issue, since www-data does *not* have a login shell. It is used only by apache. Can setuptex be made to point to the home directory explicitly where the website is housed, e.g., '/home/wwwuser' with user 'wwwuser'? On 17Jun16, luigi scarso wrote: > Is

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread luigi scarso
On Fri, Jun 17, 2016 at 2:42 PM, Pavneet Arora wrote: > Unfortunately, while the mtxrun command works for a shell user: > > $ mtxrun -script base --variables | grep cache > resolvers | lists | env: $SELFAUTOPARENT/texmf-cache > resolvers | lists |

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
Unfortunately, while the mtxrun command works for a shell user: $ mtxrun -script base --variables | grep cache resolvers | lists | env: $SELFAUTOPARENT/texmf-cache resolvers | lists | var: $SELFAUTOPARENT/texmf-cache resolvers | lists | exp:

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread luigi scarso
On Fri, Jun 17, 2016 at 2:25 PM, Pavneet Arora wrote: > That is what I suspect as well. How do I find out which cache path is > being used? > > Thanks. > > $ mtxrun --script base --variables |grep cache -- luigi

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
That is what I suspect as well. How do I find out which cache path is being used? Thanks. On 17Jun16, luigi scarso wrote: > On Fri, Jun 17, 2016 at 2:16 PM, Pavneet Arora > wrote: ... > > > When I trap the output, I get the following error in the log file: > > > >

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread luigi scarso
On Fri, Jun 17, 2016 at 2:16 PM, Pavneet Arora wrote: > I am stuggling with getting ConTeXt to run from inside a php script > under Apache. First off, let me say that the installation works fine > from the command line as a logged in user. > > Initially, I tried to do

[NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
I am stuggling with getting ConTeXt to run from inside a php script under Apache. First off, let me say that the installation works fine from the command line as a logged in user. Initially, I tried to do it inline: cmd = ". /opt/context/tex/setuptex /opt/context/tex/setuptex; cd