ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Invoking ConTeXt from inside php web appliction
@ 2016-07-09 15:45 Pavneet Arora
  2016-07-09 20:56 ` Henning Hraban Ramm
  0 siblings, 1 reply; 16+ messages in thread
From: Pavneet Arora @ 2016-07-09 15:45 UTC (permalink / raw)
  To: ntg-context

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; output via
ConTeXt).

Anyway, I have updated the Wiki, but am unsure if I missed anything. So
can everyone have a look and let me know:

http://wiki.contextgarden.net/ConTeXt_Standalone#Apache_webserver_installation

Regards.

> Henning Hraban Ramm texml at fiee.net
> Fri Jun 17 20:49:11 CEST 2016
>
>  Please document this in the wiki (I had similar problems, should have
done it at that time…)


-- 
Pavneet Arora       m: 647.406.6843
Waroc Informatik    w: 416.937.9276




___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Invoking ConTeXt from inside php web appliction
@ 2016-06-17 12:16 Pavneet Arora
  2016-06-17 12:21 ` luigi scarso
  2016-06-17 20:06 ` Mojca Miklavec
  0 siblings, 2 replies; 16+ messages in thread
From: Pavneet Arora @ 2016-06-17 12:16 UTC (permalink / raw)
  To: ConTeXt Mailing list

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 $spool_dir; context $full_input_filename";
  system($cmd);

which returns exit status 2, "Incorrect usage".

Then I created a small bash script with the following lines:

  #!/usr/bin/env bash

  . /opt/context/tex/setuptex /opt/context/tex
  context $1

When I trap the output, I get the following error in the log file:

  resolvers       | caches | fatal error: there is no valid writable cache path defined

I also attempted this manually at a bash prompt resulting in the same 
error:

  sudo -u www-data bash -c bin/proccontext.sh $FILENAME

What would be the correct design pattern to invoke ConTeXt from a web 
application?  This is all under Ubuntu 14.04, BTW.

advTHANKSance


-- 
Pavneet Arora           m: +1 (647) 406-6843
Waroc Informatik        t: +1 (416) 937-9276
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-07-11 16:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-09 15:45 Invoking ConTeXt from inside php web appliction Pavneet Arora
2016-07-09 20:56 ` Henning Hraban Ramm
2016-07-09 23:02   ` Pavneet Arora
     [not found]     ` <CAG5iGsD48qgiHcSjXYERcXrP4fo6pYL0SJTkz7JVqS9bLM+8bA@mail.gmail.com>
2016-07-11 16:14       ` Pavneet Arora
  -- strict thread matches above, loose matches on Subject: below --
2016-06-17 12:16 Pavneet Arora
2016-06-17 12:21 ` luigi scarso
2016-06-17 12:25   ` Pavneet Arora
2016-06-17 12:34     ` luigi scarso
2016-07-11 12:50     ` massifr
2016-06-17 12:42   ` Pavneet Arora
2016-06-17 13:25     ` luigi scarso
2016-06-17 13:39   ` Pavneet Arora
2016-06-17 14:15     ` Hans Hagen
     [not found]     ` <CAG5iGsBpLw8uTFyH7E5MCqcEoaK82qbyakfJA3teeUkSinQEgg@mail.gmail.com>
2016-06-17 14:57       ` Pavneet Arora
2016-06-17 18:49         ` Henning Hraban Ramm
2016-06-17 20:06 ` Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).